swap space not enabled on start up

Asked by ibob63

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,

James

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
ibob63
Solved:
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for the question.

In order to be enabled after bootup there needs to be an entry for it in the file

/etc/fstab

If you like you can paste the contents of this file here that we can have a look at it.

I hope this helps

Revision history for this message
ibob63 (james-tuthill) said :
#2

Thanks for your help. Here is the output of less /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1 -- converted during upgrade to edgy
UUID=f9039623-2a7f-4ce2-8684-61949c9b8d89 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5 -- converted during upgrade to edgy
UUID=de98eba9-9c39-410c-ae8f-a9986cac5cb4 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

James

Revision history for this message
Ralph Janke (txwikinger) said :
#3

Do you have a line similar to this

kernel: [ 1202.067360] Adding 6289436k swap on /dev/disk/by-uuid/092ef8b1-94a6-49d7-a773-57d935ef84ed. Pri
ority:-1 extents:1 across:6289436k

in your the file

/var/log/kern.log

(or its rotated logs /var/log/kern.log.0 etc.)

Thanks.

Revision history for this message
ibob63 (james-tuthill) said :
#4

Hi,

Yes I have a some activity regarding the swap files.

Apr 16 09:33:00 localhost kernel: [ 1861.325049] Adding 1494004k swap on /dev/hda5. Priority:-1 extents:1 across:1494004k

This is when I have activated the swap file from Gnome Partition Editor. Once I have done this the computer speeds up alot.

Thanks for your help,

James

Revision history for this message
Ralph Janke (txwikinger) said :
#5

Could you look if the UUID for the swap partition in the /etc/fstab file is the same as the one you get for /dev/hda5 when you execute

blkid

Thanks

Revision history for this message
ibob63 (james-tuthill) said :
#6

Here is the output from blkid:

james@james-laptop:~$ blkid
/dev/evms/hda5: TYPE="swap" UUID="10f2ebd3-6bcd-4cfc-b69f-fda6b0cbe61e"
/dev/evms/hda1: UUID="f9039623-2a7f-4ce2-8684-61949c9b8d89" SEC_TYPE="ext2" TYPE="ext3"
/dev/hda1: UUID="f9039623-2a7f-4ce2-8684-61949c9b8d89" SEC_TYPE="ext2" TYPE="ext3"
/dev/hda5: UUID="10f2ebd3-6bcd-4cfc-b69f-fda6b0cbe61e" TYPE="swap"
/dev/mapper/hda5: TYPE="swap" UUID="10f2ebd3-6bcd-4cfc-b69f-fda6b0cbe61e"
james@james-laptop:~$

I guess that is the answer! I am going to update the fstab with UUID and restart :)
I'll let you know how it goes...

James

Revision history for this message
Best ibob63 (james-tuthill) said :
#7

Restarted just fine and now the swap is enabled. Thank you for your help, it was much appreciated.

James