On 17/10/14 14:39, J Fernyhough wrote:

Check free -m:

me@pc ~> free -m
              total       used       free     shared    buffers     cached
Mem:          7680       4660       3019        221          3       1141
-/+ buffers/cache:       3515       4164
Swap:         9398          0       9398

That says Swap:   0        0       0

Check also your /etc/fstab (run e.g. cat /etc/fstab). Mine has a line:

# swap was on /dev/sdb6 during installation
UUID=a156e2ed-db18-4064-9d6f-9bd310328c80 none            swap    sw
            0       0

Yours should show as /dev/ubuntu-vg/swap_1.

The result of cat/etc/fstab  is:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type> <options>       <dump>  <pass>
/dev/mapper/ubuntu--vg-root /               ext4 errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=ba8d370e-f29c-4c18-ae93-650b7fe5f2a2 /boot ext2 defaults 0 2
/dev/mapper/cryptswap1 none swap sw 0 0

  If it's present but not
active, type:

sudo swapon /dev/ubuntu-vg/swap_1

This should get it to show as active. If it's not present, add it in.
Two choices:

1) Find its UUID by running:

sudo blkid

Mine shows:

/dev/sda6: UUID="a156e2ed-db18-4064-9d6f-9bd310328c80" TYPE="swap"

Output of blkid:

/dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"

/dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"

/dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB" TYPE="LVM2_member"

/dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4" TYPE="ext4"





Then you can use a line similar to my /etc/fstab in your own.

2) Specify it by /dev instead, e.g.:

/dev/ubuntu-vg/swap_1   none   swap  sw   0   0


J


I'm now confused!
-- 
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to