[ubuntu-uk] Swap area not created on install

J Fernyhough j.fernyhough at gmail.com
Fri Oct 17 13:39:44 UTC 2014


On 17 October 2014 14:26, Gordon Burgess-Parker <gordonbp at mail.com> wrote:
>
> Can anyone tell me what the 1.1 GB partition is, and as presumably I do need
> a Swap area, how do I create one?
>

That's your swap device.

Check free -m:

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

Note the "Swap:" line. If you have that swap is active; if you don't, it's not.

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. 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"

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



More information about the ubuntu-uk mailing list