Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is it possible to have two linux distros installed on a pc and to switch between them using a script that automatically hibernates one distro and de-hibernates the other?
Can this work without any of the reboot phases occurring at all?
Can this exclude unused memory so the hibernation files are smaller than the 2 GB of memory a pc might have and therefore faster to read or write?
No. all the drives come up hung in the wrong places, and it reboots. It's silly if it doesn't.
There are things you can do to speed up the boot process, like initng instead of syslog.
Hibernate is getting really intertwined with bios.
I doubt you would be able to select but you can try.
I use virtual machines for this sort of reason. They are just too fast and stable and easy now not to. Just a supported system and some extra ram and let it rip.
No. all the drives come up hung in the wrong places, and it reboots. It's silly if it doesn't.
I was hoping it can be done with a script or other executable. Are you saying it cannot be done manually either? Can't delete the hibernation file and put another one in its place?
I use virtual machines for this sort of reason. They are just too fast and stable and easy now not to. Just a supported system and some extra ram and let it rip.
Using VMs too. Considering switching between different hosts on the fly, because I need both hosts - one host is secure and leaves a lot of memory for VMs, the other is feature rich with many paid-for apps installed. But reboot is too slow and you lose anything that was open so this hibernate thing, if only it could be used to switch between operating systems.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
no i seriously doubt that since if i'm not mistaken hibernate saves the state of memory and programs to hard drive, then sets the hardware into power save mode, but this is done in bios, not the OS
i would agree that virtualization of some form is what you need, perhaps a Hypervisor in specific is what you need
If you configured a different swap partition for each OS then yes it should work using the usual multiboot mechanisms -- GRUB, lilo etc. For 100% robustness you need a "swap" partition for each OS only used for hibernating in addidition to the one for swapping.
I don't understand how a script can/needs to be used except for any of the resume "patch up" work that might be required for a single OS.
I don't understand how a script can/needs to be used except for any of the resume "patch up" work that might be required for a single OS.
What sort of patch up did you have in mind?
Ideally I'd like to press a button and a minute later to be working with the other distro from where I was the previous time. The script might do the grub equivalent of selecting another active partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.