LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Suspend/hibernate on Ubuntu 8.04 fails even with s2both (uswsusp) (http://www.linuxquestions.org/questions/linux-software-2/suspend-hibernate-on-ubuntu-8-04-fails-even-with-s2both-uswsusp-688139/)

brianpbarnes 12-03-2008 06:00 PM

Suspend/hibernate on Ubuntu 8.04 fails even with s2both (uswsusp)
 
Hi,
Suspend and hibernate with Ubuntu 8.04 on my Asus P5Q3 never wakes up. At best, I get a black screen with some a garbled corner on it. Researching it shows it is apparently a common problem. My mobo has Intel's newest (bleeding edge) P45, DDR3 chipset.

I found one solution, installing uswsusp and trying s2both. It complains:
s2both: Could not stat the resume device file. Reason: No such file or directory

When I installed it, it asked if I wanted to install it "without a valid swap device". I have 3 swap devices on 3 separate hard drives totaling 25 GB:
root@godzilla2:/tera/nt.snap# grep swap /etc/fstab
UUID=7356e42c-2aa3-46ca-aacf-6efdd1cfec18 none swap sw 0 0
UUID=8e4a7444-6e14-49f7-81ee-190534eeacb5 none swap sw 0 0
UUID=9152f370-051a-497f-a4bf-3f5a679acb7e none swap sw 0 0

The reason I had to go to the weird UUID method for fstab was that on almost every boot, my SD A, B, C and D devices were randomly scrambled. I took careful notes and any one of my 4 drive subsystems would be SDA. I have a Velociraptor as the main system drive, a 1 TB deathstar for backup, a 640 GB data/windoz drive and a 3TB RAID 5 deep storage drive.

Most of the times I tried to boot with the standard /dev/sd{ABCD} in fstab, the boot would fail and I had to go in as ROOT and reassign the SD a, b, c and d devices in fstab to suit the random allocation of the day by looking at gparted /dev/sd?. The UUID fstab trick gives me consistent boots and mounts.

Is there a way to have s2both recognize the UUID disk or to have the boot sequence not randomly assign my hard drive devices?

Thank you,

Brian


root@godzilla2:/home/brianp# cat /etc/uswsusp.conf
# /etc/uswsusp.conf(8) -- Configuration file for s2disk/s2both
resume device = UUID=7356e42c-2aa3-46ca-aacf-6efdd1cfec18
<< this swap is on my boot drive and is 8 GB with 4 GB RAM >>
splash = y
compress = y
early writeout = y
image size = 1909767618
RSA key file = /etc/uswsusp.key
shutdown method = platform

root@godzilla2:/home/brianp# cat /etc/fstab
UUID=1561BA463BD6DC0F /mnt/ntsys ntfs-3g defaults 0 0
UUID=7077647804C17F45 /mnt/ntdat ntfs-3g defaults 0 0
#UUID=909803B698039A3C /extera ntfs-3g defaults 0 0

//vulcan/home_brianp /home/brianp/vulcan cifs user=brianp,uid=1000,gid=100 0 0
#//fractal/viper_d /home/brianp/fractal smbfs defaults 0 0
#//viper/Viper_C /home/brianp/viper smbfs defaults 0 0
#//godzilla/godzilla_d /home/brianp/godzilla smbfs defaults 0 0

proc /proc proc defaults 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
none /proc/bus/usb usbfs devgid=132,devmode=664 0 0

UUID=c06dd2cb-1a34-4133-8f74-582893877c42 /boot ext3 relatime 0 2
UUID=6779b8c1-b2a5-40ec-9a7f-94fc5358837f / ext3 relatime,errors=remount-ro 0 1
UUID=7356e42c-2aa3-46ca-aacf-6efdd1cfec18 none swap sw 0 0
UUID=58d7f5e8-5cf9-486a-bb61-44b7037b1cbe /home ext3 relatime 0 2
UUID=392ca003-984b-43d0-88e9-297500ebedf0 /home2 ext2 relatime 0 0
UUID=8e4a7444-6e14-49f7-81ee-190534eeacb5 none swap sw 0 0
UUID=c5ce8459-295b-418d-b4ea-826983440c42 /r5 ext3 relatime 0 0
UUID=d16c80ec-73b1-4744-a60f-24bfc6e3f696 /sys3 ext3 relatime 0 0
UUID=c3c17b83-bb07-42f8-9e1c-a198102006c2 /tera ext2 relatime 0 0
UUID=9152f370-051a-497f-a4bf-3f5a679acb7e none swap sw 0 0


All times are GMT -5. The time now is 05:06 PM.