On Tuesday 17 April 2007 11:33, Jon Steel wrote:
> Hi
>
> Im trying to find a way to do a sort of very soft reboot. For example
> I want to boot up the computer into a kernel on one drive, and then
> after saying reboot, the computer loads up a kernel from a second
> drive.
>
> I have gotten this to work with the use of a file to pass information
> between boots, but that is not an ideal solution. What I really want
> is either a way to pass a parameter to the BIOS so that it can pass
> it to boot upon restarting, or a way to reload the boot loader into
> memory and then execute it.
>
> It would even be fine to use another operating system on the first
> boot. So it boots up into say Gentoo, and then when Im done with
> that, I want to load OpenBSD.
>
> Does anybody have an idea how I can approach this?
>
> Thanks
>
> Jonathan Steel

man 8 boot

You can do all sorts of cool things while booting and 
with /etc/boot.conf, including what you want (assuming your are booting 
instances of OpenBSD on each drive). The ``image'' is a combination of 
a device and a file name.

You can also change your boot device on some i386 systems through your 
CMOS settings or your SCSI controller settings. Other archs are much 
better at this (Sun, PARISC, Alpha, ...), and you don't need to fiddle 
with stuff.

Of course you can also net-boot, and make the desired change from one 
kernel/config to another at the server.

Kind Regards,
JCR

Reply via email to