Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Guess not possible from windows –  ukanth 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

1 Answer 1

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

share|improve this answer
4  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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