Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
Just wanted to link my question, since its same question name, but your question is changing default entry, I want to change just "one time".… Sorry I can't comment, so I answered. – FreeSoftwareServers Nov 23 '15 at 6:30
@FreeSoftwareServers - Why are you submitting an answer to this question if you don't have an answer to this question? On what world do you think that is appropriate? – Ramhound Nov 23 '15 at 13:47

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .