Hi Folks,
Suppose we have two machines, A and B, each dual-boot
Linux/Windows. Suppose that Linux is the "default" OS
on reboot -- i.e. if you switch the machine on and do
nothing, Linux is what you get.
Let's start with both in Linux. Now, sitting at A,
I want B to reboot into Windows, but without going to B.
One solution which has occurred to me is that, while at A,
I can log in to B, su root, edit the LILO or GRUB config
so that the boot order is reversed, and then tell B to
reboot.
So far so good. I can even make this into a script, so that
when logged into B I can issue something like "boot Windows".
But then, how to restore the original boot order without
having to go to B, choose Linux from the boot menu, boot
Linux, and re-edit the config file? I somehow doubt that
you can do this while B is in Windows ... and I basically
want the whole thing to be remote, from A.
If there were some capability in the boot loader itself that
could restore a default boot configuration prior to actually
booting the OS which is currently "on top", this would make
the whole thing scriptable.
To be precise about this:
1. A & B running Linux.
2. At A, tell B to "boot Windows".
3. B reboots.
4. LILO/GRUB sees that Windows is "on top" and selects this
as the OS to boot into.
5. LILO/GRUB *also* restores the original config file with
Linux "on top".
6. LILO/GRUB then boots into Windows.
The effect would be that the next re-boot would be into Linux.
Any ideas or comments?
With thanks,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding(a)nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 21-Jul-05 Time: 13:37:10
------------------------------ XFMail ------------------------------