I'd like to be able to boot into Windows from Ubuntu and into Ubuntu from Windows with grub.
Can I edit my /boot/grub/grub.cfg where there's the following:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="3"
and only change from time to time the set default = "x" where x is the operating system on the grub list I want to boot on?
Is this going to work?
update-grub
doesn't get run in between shutdown of one OS and startup of the subsequently booted OS. That is not to say editing that file is necessarily the best way to achieve that, though. (Or even that that's what this question is necessarily asking for...) – Eliah Kagan Sep 06 '13 at 03:11