LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 12-27-2010, 09:46 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Hibernate one distro, de-hibernate another


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?

Last edited by Ulysses_; 12-27-2010 at 11:52 AM.
 
Old 12-27-2010, 02:05 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
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.
 
Old 12-27-2010, 02:11 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
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.
 
Old 12-27-2010, 03:03 PM   #4
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by business_kid View Post
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?
 
Old 12-27-2010, 03:11 PM   #5
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by jefro View Post
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.
 
Old 12-27-2010, 03:15 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
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
 
Old 12-27-2010, 03:27 PM   #7
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by frieza View Post
i would agree that virtualization of some form is what you need, perhaps a Hypervisor in specific is what you need
That's the thing, except hosts (see #5) cannot be virtualized and even if they could, such nested virtualization would be too slow.

Last edited by Ulysses_; 12-27-2010 at 03:29 PM.
 
Old 12-27-2010, 09:50 PM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 12-28-2010, 09:34 AM   #9
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by catkin View Post
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.

Last edited by Ulysses_; 12-28-2010 at 09:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hibernate hectorDUQUE Fedora 3 06-27-2010 02:57 AM
13.1 Beta1 :: KDE SC 4.4.3 :: pm-hibernate works, KDE hibernate just locks the screen zordrak Slackware 7 05-12-2010 03:55 AM
help with hibernate please bines Linux From Scratch 3 01-03-2009 08:50 AM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM
hibernate in new distro demmylls Linux - General 0 04-21-2004 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration