swap partition won't mount
Alex Janssen
alex at ourwoods.org
Sun Mar 4 18:45:52 UTC 2007
Hello to all,
Some time back I remember noticing that my swap partition was not being
mounted anymore. This started after some update had occured. I've read
the mkswap and swapon manual pages, checked that the UUID link in
/dev/disk/by-uuid is also in fstab and pointing to the proper partition,
/dev/hdc6 in my case.
Output of uname -a:
Ubuntu Linux di1100u 2.6.17-11-386 #2 Thu Feb 1 19:50:13 UTC 2007 i686
GNU/Linux.
The output of swapon -a:
swapon: /dev/disk/by-uuid/5cd2d5dc-09ba-426b-95d7-796a5bb462f7:
Invalid argument
Output of fdisk shows the partition is type 0x82:
$ sudo fdisk -l
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1926 15470563+ 7 HPFS/NTFS
/dev/hdc2 1927 6005 32764567+ c W95 FAT32 (LBA)
/dev/hdc3 6006 8045 16386300 c W95 FAT32 (LBA)
/dev/hdc4 8046 9729 13526730 5 Extended
/dev/hdc5 * 8046 9656 12940326 83 Linux
/dev/hdc6 9657 9729 586341 82 Linux swap /
Solaris
Contents of /etc/fstab:
# /dev/hdc6 -- converted during upgrade to edgy
UUID=5cd2d5dc-09ba-426b-95d7-796a5bb462f7 none swap sw 0 0
Directory listing of /dev/disk/by-uuid:
lrwxrwxrwx 1 root root 10 2007-03-04 11:21
5cd2d5dc-09ba-426b-95d7-796a5bb462f7 -> ../../hdc6
If I run mkswap -c /dev/hdc6 it assigns a new UUID which I use to make a
link by that name pointing to ../../hdc6 and put in fstab. Then running
swapon -a mounts it properly, but on a subsequent reboot,
/etc/rcS.d/S35mountall.sh fails to automatically mount it and I cannot
manually mount it, either.
I have not found anything specifically about this situation on the wiki
pages, yet.
Has anyone had this problem and fixed it or just know how to fix it?
Thanks for your help,
Alex
--
Ourwoods.org
Charlottesville, Virginia
More information about the ubuntu-users
mailing list