[TriLUG] [newbie][swap] why does `mount` not match /etc/fstab?

Tom Roche Tom_Roche at pobox.com
Mon Aug 3 18:29:36 EDT 2009


David Black Sun Aug 2 21:17:56 EDT 2009
> This thread may be of help - sounds like almost exactly the same
> problem:

> http://ubuntuforums.org/archive/index.php/t-915659.html

Doh! that it does. I shoulda searched site:ubuntuforums.org instead of
site:ubuntu.com.

> Your hibernation config file may still point to your old wubi swap file.

Indeed--but fixing that does not enable hibernation:

tlroche at tlrZ61t:~$ ls -al /etc/initramfs-tools/conf.d/
> total 12
> drwxr-xr-x 2 root root 4096 2009-08-01 01:05 .
> drwxr-xr-x 5 root root 4096 2009-04-20 10:51 ..
> -rw-r--r-- 1 root root   49 2009-08-01 01:05 resume
tlroche at tlrZ61t:~$ cat /etc/initramfs-tools/conf.d/resume 
> RESUME=UUID=a2aed1eb-0801-4780-bcdf-48fcd8f164b8
tlroche at tlrZ61t:~$ ls /dev/disk/by-uuid -alh | fgrep -e 'sda7'
> lrwxrwxrwx 1 root root  10 2009-08-02 07:12 2e73b542-1cb7-439a-b6a7-046dc4011372 -> ../../sda7
tlroche at tlrZ61t:~$ sudo fdisk -l | fgrep -ie 'swap'
> /dev/sda7           12019       12296     2101648+  82  Linux swap / Solaris
tlroche at tlrZ61t:~$ cat /etc/fstab | fgrep -ie 'swap'
> UUID=2e73b542-1cb7-439a-b6a7-046dc4011372  none           swap     sw                              0      0
tlroche at tlrZ61t:~$ sudo cp /etc/initramfs-tools/conf.d/resume /etc/initramfs-tools/conf.d/resume.0
tlroche at tlrZ61t:~$ sudo chmod a-w /etc/initramfs-tools/conf.d/resume.0
tlroche at tlrZ61t:~$ sudo emacs -nw /etc/initramfs-tools/conf.d/resume
tlroche at tlrZ61t:~$ cat /etc/initramfs-tools/conf.d/resume 
> RESUME=UUID=2e73b542-1cb7-439a-b6a7-046dc4011372
tlroche at tlrZ61t:~$ sudo update-initramfs -u
> update-initramfs: Generating /boot/initrd.img-2.6.28-14-generic

But when I try to hibernate, I fail with the same error. Even after a
restart! and I get the same error from `sudo pm-hibernate` from tty1.

Is there anything else that could be hosing my swap partition? or PM?
Alternatively, is there something I can run besides pm-hibernate?

TIA, Tom Roche <Tom_Roche at pobox.com>



More information about the TriLUG mailing list