Page 1 of 2
Booting at the last state
Posted: Wed Sep 03, 2008 3:18 am
by Jeko
What do you think about saving all the RAM memory in a file before the shutdown of the computer and load it in the next boot? With this method you can save the state of your computer, with all the applications running... Is it a stupid idea?
Re: Booting at the last state
Posted: Wed Sep 03, 2008 5:03 am
by Brendan
Hi,
Jeko wrote:What do you think about saving all the RAM memory in a file before the shutdown of the computer and load it in the next boot? With this method you can save the state of your computer, with all the applications running... Is it a stupid idea?
It's called "
hibernate"...
Cheers,
Brendan
Re: Booting at the last state
Posted: Wed Sep 03, 2008 5:55 am
by Jeko
Brendan wrote:Hi,
Jeko wrote:What do you think about saving all the RAM memory in a file before the shutdown of the computer and load it in the next boot? With this method you can save the state of your computer, with all the applications running... Is it a stupid idea?
It's called "
hibernate"...
Cheers,
Brendan
Wow! So it's not a stupid idea...
Re: Booting at the last state
Posted: Wed Sep 03, 2008 8:43 am
by Brendan
Hi,
Jeko wrote:Wow! So it's not a stupid idea...
Hehe - Microsoft thinks it's a good idea.
I'm not so sure - I think Microsoft likes it because their OS initialization is far too slow, so recycling everything (including most of the OS initialization) from the previous boot speeds it up heaps (and not needing to re-open applications, etc was an accident).
Cheers,
Brendan
Re: Booting at the last state
Posted: Wed Sep 03, 2008 9:49 am
by AJ
@OP: Remember that if there is a memory leak or something was about to crash, that will also be carried forward to the next session - unless your OS is "memory leak proof"
Cheers,
Adam
Re: Booting at the last state
Posted: Wed Sep 03, 2008 9:51 am
by Jeko
AJ wrote:@OP: Remember that if there is a memory leak or something was about to crash, that will also be carried forward to the next session
Yes, you're right. So for Windows the hibernate function isn't a good thing... Windows is about to crash starting from the bootloader
Re: Booting at the last state
Posted: Thu Sep 04, 2008 11:35 am
by salil_bhagurkar
Somehow though my hibernate button worked in windows a few years ago, now it has been disabled by windows... Can't find the reason.. Tried reinstalling windows.. I have not changed my hardware also...
Re: Booting at the last state
Posted: Fri Sep 05, 2008 1:32 am
by AJ
Hi,
In some versions of windows, you have to specifically enable this. See Control Panel -> Power Options -> Hibernate -> Enable Hibernation.
Cheers,
Adam
Re: Booting at the last state
Posted: Sat Sep 06, 2008 12:27 am
by JackScott
I have found that running Disk Cleanup (cleanmgr) and deleting the temporary hibernation file (which I did in an effort to save some space needed for grabbing files at a LAN party) turns off hibernation. Doing what AJ suggests turns it back on again.
Re: Booting at the last state
Posted: Sat Sep 06, 2008 9:13 am
by AJ
JackScott wrote:...which I did in an effort to save some space needed for grabbing files at a LAN party...
Re: Booting at the last state
Posted: Sat Sep 06, 2008 10:41 am
by Troy Martin
I use hibernate all the time on my laptop since my desktop is messy and vista's time from login to usability is about 3 minutes. And this is a really good computer.
If you have a configuration file designed and a FAT12 (or 16 or 32) driver that can save files, you can write the OS up to save the RAM onto disk, set the config file to "yes, boot from the hiberfile next time please!" and write the bootloader to do the loading!
Re: Booting at the last state
Posted: Tue Sep 23, 2008 1:13 am
by Love4Boobies
I think it's similar to hibernating, but it can't be done as you describe it. The moment you "hibernate", there may be network connections or devices connected to the PC, applications that have to deal with time, etc. All those could get corrupted. Sure, closing all network connections first could be done. But if you start unmounting devices, closing network devices and even closing applications, we're getting close to normal shut down.
EDIT: think that if you have to unmount a USB drive, you have to close all applications that use that specific USB drive.
Re: Booting at the last state
Posted: Tue Sep 23, 2008 3:12 pm
by tetsujin
Love4Boobies wrote:I think it's similar to hibernating, but it can't be done as you describe it. The moment you "hibernate", there may be network connections or devices connected to the PC, applications that have to deal with time, etc. All those could get corrupted. Sure, closing all network connections first could be done. But if you start unmounting devices, closing network devices and even closing applications, we're getting close to normal shut down.
EDIT: think that if you have to unmount a USB drive, you have to close all applications that use that specific USB drive.
Well a lot of those issues apps have to deal with anyway. An app would normally not be put to sleep for three days while running - but under a pre-emptive multi-tasking (non-realtime) OS programs basically have to cope with whatever time slices they get - as well as any delays in between...
The open network connections essentially come back closed after the resume - network apps always need to be prepared for the fundamentally inherent nature of their connection, so if nothing else they should recognize they've lost the link...
As for apps accessing files on a removable drive (or a non-removable drive, for that matter...) - presumably the apps would be shut down before the filesystem is unmounted. How much you do to safeguard those apps from various scenarios (like swapping the drive for another one, etc.) is I guess up to the designer to decide...
Re: Booting at the last state
Posted: Tue Sep 23, 2008 9:10 pm
by PatrickV
some one told me that hidernation can cause your hard drive to screw up. Plus the up side it loads the os much faster
Re: Booting at the last state
Posted: Tue Sep 23, 2008 11:07 pm
by Love4Boobies
PatrickV wrote:some one told me that hidernation can cause your hard drive to screw up.
That's absolutely not true. It's just writing a chunk of data on the hard drive. It's as risky as installing programs or copying files.