Set grub options from within windows
I have a dual boot machine with Ubuntu linux (which i mainly use) on one partition and windows XP on the other.
I have some servers running on my ubuntu, so i like to keep it running 99% of the time, and so i pretty much neglected using Windows, unless I really have to.
Recently I realized I might be needing to use Windows more than usual, especially while at work (for testing Windows software purposes, mostly).
The only problem is - my Grub's default OS is ubuntu - so if i boot the machine remotely, it will automatically boot up linux.
If i connect to my ubuntu, i can edit the menu.1st file and switch the default to Windows, so it'll boot up windows - but I can't edit it while on Windows to boot my ubuntu back up... :cry:
I've used LTools before, but it seemed such a messy way for editing linux files over Windows, and also a bit risky...
Isn't there any other program which will allow Windows to interface with the grub menu? :confused:
I think that there is a way to set it to boot windows only one time. Then when it reboots, grub will make linux the default again.
Found it! http://www.gnu.org/software/grub/man...-once_002donly
The "default saved" option doesn't seem to be working for some reason...
At first, i realized i didn't even have the grub-set-default command, so i installed grub from source (and boy, what a mess that was...).
At least now i got grub working the just like before, but it seems like the "default" file under /boot/grub isn't having any affect - it still loads ubuntu as a default.
my menu.1st file looks like this:
I even tried setting savedefault 2 under the first entry, to get grub to boot windows on second boot, and it still loaded ubuntu up when i rebooted next.
It's a shame, cause it seemed like a cool solution :(
Any idea why it's not working for me?
No idea... (I'm not really a grub expert, it seems more useful than lilo but I haven't taken the plunge to install it).
Did you ever get the grub-set-default command to work?
Yes. grub-set-default did actually create the "default" file - but grub seemed to ignore it - or at least that's what i thought untill i actually tried to boot my windows back a few mins ago...
For some reason, it won't boot up :(.
I guess it has something to do with the re-installation of grub - something must have gotten screwed up. :((
Here is something that should be bomb proof.
Put Grub into a Primary partition. Say if your Ubuntu is in hda3 (only hda1 to hda4 are primaries and one of them can be converted to the extended partition). You can do it while in Ubuntu issuing a root terminal command
If your Ubuntu has been installed in logical partition you can still installed Grub in a data-only primary partition. Just follow Section C of my 2nd link in the signature.
You can then restore Windows MBR overwriting the current Grub so that the PC is booted to Windows on a reboot.
Any time you want to switch back to Ubuntu you can click start/my computer/storage/manage/disk management and ask Windows to make the Grub partition hda3 active (it will not be called hda3 but you should be able to identify it with a label). On a reboot the Windows MBR will boot up Grub.
After you have enough of Ubuntu and want Windows back then just use Grub to make Windows partition active, assuming it is in hda1 and so known to Grub as (hd0,0) because it counts from 0, by the command
After explaining this bomb proof method, which I have used myself, I could not understand why can't you would just add couple of "0" to the timeout command to give me loads of time to click between Ubuntu and Windows, like
|All times are GMT -5. The time now is 03:47 AM.|