Reboot from windows to linux with grub

3

1

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?

psztucz

Posted 2010-05-06T13:35:52.780

Reputation: 31

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". http://superuser.com/questions/1004199/reboot-from-windows-to-linux-with-grub-reboot-but-something-cmd-accepts Sorry I can't comment, so I answered.

– FreeSoftwareServers – 2015-11-23T06:30:03.390

@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 – 2015-11-23T13:47:39.217

Guess not possible from windows – ukanth – 2010-05-06T13:43:47.077

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 – 2010-05-06T14:37:26.027

Answers

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

ukanth

Posted 2010-05-06T13:35:52.780

Reputation: 9 930

4well.... 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 – 2010-05-06T14:27:52.423