I currently dual boot Windows 7 and Fedora 14, using GRUB, with Windows 7 as my default. I know that from Fedora, I can set GRUB to boot into Fedora, overriding the default, on the next reboot. Is there a way to do this from Windows? That is, can I change the GRUB configuration permanently or semi-permanently from Windows so I don't have to be in front of my computer to boot into Fedora?
-
This is a thanks to Michael and an extension. There is a free driver by Paragon in public interest, which can access (with read and write permissions) to Ext2, Ext3, Ext4 partitions from Windows: https://www.paragon-software.com/home/extfs-windows/ – Apr 23 '15 at 09:49
6 Answers
The hard part is editing your Linux filesystem from Windows. FS Driver supports writing ext2, but I don't know of any good tools for ext3 or 4 (and these SU and SF questions aren't encouraging), let alone any other filesystems you may have used on your boot partition
But if you do manage to get write support for your boot partition from Windows, actually changing the saved default is easy. First you need to do some prep work in /boot/grub.conf
. Change default
to saved
, and add savedefault 0
(where 0 is Fedora's index in the GRUB configuration) to the Windows block so booting into Windows will reset the saved default back to Fedora
Then from Windows you can edit /boot/grub/default
. Delete the line that's there (it'll be default
or 0
most likely), and change it to 1
or whatever the index of your Windows install is. When you restart, GRUB will read that file (since your default is saved
) and boot into Windows, and the savedefault
line will change that file back to 0
for future boots

- 93,103
- 40
- 240
- 233
-
3Someone's written a GUI for that: grub-choose-default (Grub 1), grub-choose-default (Grub 2). – Gilles 'SO- stop being evil' Apr 16 '11 at 12:55
-
This worked for me. I had to set my
/boot
partition asext2
(it wasext4
) and my limited experience doing that made that process take longer than it should have. It looks like these instructions set Fedora as the default (which I don't really want, I just want the ability to control the next boot) so I didn't follow them to the letter, but being able to edit/boot/grub.conf
is good enough. – Jimmy Sawczuk Apr 16 '11 at 21:25
If you have a /boot
partition formatted as FAT32, you'll be able to edit grub's config file from both OS(es).

- 647

- 7,964
Mixing different hints:
- Under Ubuntu I changed
GRUB_DEFAULT=0
toGRUB_DEFAULT=saved
and ranupdate-grub
, thus making GRUB use /boot/grub/grubenv file, but I am not settingGRUB_SAVEDEFAULT=true
(as it serves another purpose) - I checked available GRUB entries using this command:
awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
- Later I ran
grub-editenv - set saved_entry="Windows 10 (on /dev/sdb1)"
choosing one of the available options, so I made Windows start next time as default - Under Windows I mounted Linux (ext4) filesystem using Ext2Fsd
- I edited /boot/grub/grubenv manually, commented out with
#
the previously created line# saved_entry=Windows 10 (on /dev/sdb1)
and added a new onesaved_entry=Ubuntu
. - Under Ubuntu I do it vice-versa, switching between the settings, commenting out the respective line.
I think it's a neater solution than manually editing grub.cfg file directly and menu.lst has been deprecated already some time ago.

- 159
-
1this worked fine for me except the Ext2Fsd with my Ext4 partition. I installed the 0.70 beta 3 Ext4 filesystem driver for Windows from http://www.accum.se/~bosse/, enabled the testsigned driver, rebooted windows and boom: read/write Ext4 access. :) – István Siroki Apr 26 '23 at 21:01
Find the 'grub' folder in the hard disk and then open menu.lst with notepad now edit default=0 to default=x, where x is one less than the position of the os you want to make default. For Ex. there are three os in a system and you wanted to make the third in the list as default so you will edit it as default=2, as 3-1=2. For second os, default=1.

- 56,709
- 26
- 150
- 232

- 11
- 1
I created a /boot device and selected it as Device for boot loader installation
and it worked.

- 101