I have machine with Windows and Linux with GRUB, only with remote access. Is there any way to chage default OS in grub from windows? I know how to achieve it from linux, something like

echo "savedefault --default=2 --once" | grub --batch; sudo reboot

should work.

Is there any way to achieve it from windows?

link|improve this question
Guess not possible from windows – TuxGeek May 6 '10 at 13:43
1  
you might look into Grub4DOS which can be installed onto FAT32/NTFS drives. then grub-set-default or your savedefault commandline could work. – quack quixote May 6 '10 at 14:37
feedback

1 Answer

One way is to install Ext2 IFS Drivers and access menu.lst files from windows and change it. This solution works only for Ext2 file system

link|improve this answer
3  
well.... sorta. (1) this only works for Grub1; (2) the only thing you can change in menu.lst is the default entry; (3) instead, you'd want to use grub-set-default, which just sets a value in /boot/grub/default, so that's what you'd need to change (but be careful to only change the entry #). back to (1): for Grub2 you'd need to alter (2) grub.cfg or (3) /boot/grub/grubenv, but that's less simple (at least in Ubuntu 10.04, grubenv seems to save the label of the menu entry, not the entry #). – quack quixote May 6 '10 at 14:27
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.