I have a dual Windows 7/Ubuntu system which I almost always boot into Windows.
When I boot into Ubuntu it makes memtest the default boot menu option. While this is annoying, I could live with it if I were able to change the default back from the GRUB command line available from the boot menu. I don't want to have to boot into Ubuntu to fix this problem every time.
I am able to find the GRUB configuration file and can see the contents (sort of) by using:
cat (hd0,5)/boot/grub/grub.cfg
(although this only shows me the 'tail', not the whole file).
And the command
configfile (hd0,5)/boot/grub/grub.cfg
executes this configuration (again).
Is it possible to edit this file from the GRUB command line?
The GRUB (1.99) manual suggests that I can use the Environment Block to:
set the default menu entry based on what was selected the last time
which may fix my problem, but I can't find any examples of their use... Can I somehow use the save_env
and load_env
commands?
Note: I have GRUB version 1.98