Swap Space

Asked by Adnan Iftekhar

Hi,

For some reason or other my swap space doesn't enable on start up, so i load up gnome partition editor to enable it every time I load the

 anyone know how i can set it so that it loads at startup?

Thanks,

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Elfy (elfy) said :
#1

Can you post your fstab and fdisk -l please, run these 2 commands from a terminal (Accessories menu) and then paste the results here.

cat /etc/fstab
sudo fdisk -l

Revision history for this message
Adnan Iftekhar (0000-inbox-deactivatedaccount) said :
#2

 livenicely@DigitalMedia:~$ sudo fdisk -l
[sudo] password for livenicely:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cd3ce

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 622 4996183+ 83 Linux
/dev/sda2 623 9729 73151977+ 5 Extended
/dev/sda5 623 9664 72629833+ 83 Linux
/dev/sda6 9665 9729 522081 82 Linux swap / Solaris
livenicely@DigitalMedia:~$

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=79031c1f-f3b0-4f85-83b0-ff2efd1ef512 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=2b61aced-5b83-4327-a0bc-020e24a28769 /home ext3 relatime 0 2
# /dev/sda5
UUID=13f1894d-63e8-468c-b66a-09ec43ad57b0 none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0

Revision history for this message
Elfy (elfy) said :
#3

Ok - run this command

sudo blkid

Check the list for the sda5 entry - does it match
13f1894d-63e8-468c-b66a-09ec43ad57b0

Before using gparted does

sudo swapon -a

turn swap on or report an error, if it reports an error it is likely that the UUID is incorrect. IF that is the case you can change the UUID to suit that which blkid returns

gksudo gedit /etc/fstab

Change this line
UUID=13f1894d-63e8-468c-b66a-09ec43ad57b0 none swap sw 0 0

replacing old number with new, save and close.

Run

sudo swapon -a

IF all correct should return no error

Can you help with this problem?

Provide an answer of your own, or ask Adnan Iftekhar for more information if necessary.

To post a message you must log in.