Roel Schroeven wrote:
MAL wrote:
I have a remote machine with both Gentoo and Windows installed. It's currently in Linux, but I need to reboot it to Windows, do some things (via RemotelyAnywhere), then boot it back to Linux.
I can cause the reboot via RemotelyAnywhere, but how can I tell grub to boot Windows one time, then Linux next time?
It could be done if you could run grub under Windows, to set another default. Is it possible to compile grub under Windows? Somehow I doubt it, but I would be glad to be proven wrong.
Maybe it could be, but wouldn't I need to use a whole new grub.conf and boot from the windows partition... not sure how linux would react to /boot not being the boot partition.
Ah yes, grub reads the configuration from /boot every time, I didn't think of that. I have somewhat more experience with lilo, and lilo doesn't do that.
I was thinking maybe I could backup the current boot sector to a file on the windows partition, replace the boot sector with windows' default one, boot into windows, then replace the grub boot sector via some windows dd replacement :)
That wouldn't work I think, for the very same reason: the default is stored in /boot, not in the boot sector. I think grub can read FAT; if so, you can put /boot on a small FAT partition and write to it both from Windows and Linux. Then you can change the grub configuration file and hence the default.
Another possibility would be to use lilo instead of grub and use the technique you described, but I don't know of any Windows dd-equivalent that can write to the MBR.
-- "Codito ergo sum" Roel Schroeven
-- [EMAIL PROTECTED] mailing list
