Hi bussard vago,
I concur with you that being able to suspend to disk in Linux and reboot in another operating system is important!
And I claim it is easily possible and safe.
The reason why by default it does not work is that the pm-utils utilities modify the GRUB loader upon suspension, in order to have the suspended system rebooted automatically the next time.
This is done by a script that can be modified.
Here is the procedure
- Become super-user.
- Go to the directory /usr/lib/pm-utils/sleep.d
- Locate a file called something like 99Zgrub
- Make a copy of this file for security, NOT in the same directory.
- Edit the file and locate in it the function
grub-once()
{
....
}
- Comment all the code of the function using # characters
- Write below another grub-once() function as follows:
grub-once()
{
echo -e "savedefault --stage2=/boot/grub/stage2 --default=$1 --once\nquit" | grub --batch
}
- Save the file.
You can now suspend to disk. Upon reboot, you will be offered the GRUB menu and be able to choose Linux again (and the system will resume from disk) or to choose another operating system.
Disclaimer: I tested this solution under OpenSuse 10.3; I am not sure it works also under version 10.2; but it should.
Cheers