> Hi,
> 
> To all you low-level kernel and bootloader hackers: what would it take to
> save and restore a running system image (presumably from dedicated raw
> partition) so that the system would continue where it left before reboot?
> 
> It doesn't sound that difficult to me - after all, laptops somehow do it -
> but I know too little low-level stuff to try implementing it myself...

It's quite difficult, in that it requires intimate low-level knowledge 
of the hardware in order to save/restore its state correctly.

In the case of laptops it's much easier because the hardware can't be 
changed under the image, and the BIOS knows all about the hardware.

To do it "right" in the generic case, you'd virtually have to go 
through the entire boot process again.

It might make more sense to try an alternative arrangement whereby you 
paged _everything_ out to swap, then saved the entire kernel data and 
bss segments somewhere.  You'd have fun at the restore's cutover point 
though, and any stateful hardware would still be a bitch to deal with.

-- 
\\  The mind's the standard       \\  Mike Smith
\\  of the man.                   \\  [EMAIL PROTECTED]
\\    -- Joseph Merrick           \\  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to