Re: Hibernate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-04-13 at 19:26 +0800, Nigel Cunningham wrote:
> Hi Allan.
> 
> On Wednesday 12 April 2006 22:50, Cleaveland, AJ Allan @ IS wrote:
> > I'm trying to get hibernate to work on CentOS 4.  What I really want to do
> > is use hibernate to start-up the machine every time.  To do this I would
> > create an "image" to come out of hibernate with and set the machine to
> > always think it's coming out of hibernate, no matter how it was actually
> > shut down.  It would always use my "image", even if it was placed in
> > hibernate when it shut down.  Without rewriting other people's code does
> > anyone know of a way to do this?
> >
> > Thank you,
> > Allan
> 
> I'm not sure I understand what you're saying correctly, but it sounds to me 
> like you want something like the KeepImage feature in Suspend2. This feature 
> lets you suspend once, and subsequently simply powerdown rather than 
> rewriting the image. To use this mode reliably, any filesystems mounted when 
> the image is created have to be immutable. This is because the image will 
> include information about the filesystems such as superblocks, inodes, 
> dentries and so on, and these data structures must match the data on disk.
We could have file in memory for the snapshot kernel before we mount any
hardisk filesystem, and then create a new initrd including the snapshot
image after boot. Later we always use the new initrd. This way even the
hardisk is touched, the kernel can still resume.

Thanks,
Shaohua 


-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux