As usual, there are several ways to do what you want, of which I will describe 1.
Note that I am using a 13.04 machine, but I think 12.10 uses grub 2.00 also. It might be a little different for grub 1.99.
First, save your current copy of /etc/default/grub:
Code:
doug@test-smy:/etc/default$ sudo cp grub grub.original.2
doug@test-smy:/etc/default$ ls -l grub*
-rw-r--r-- 1 root root 1233 Feb 20 14:21 grub
-rw-r--r-- 1 root root 1225 Feb 3 08:18 grub.original
-rw-r--r-- 1 root root 1233 Feb 20 14:36 grub.original.2
Now edit grub. I prefer nano:
Code:
doug@test-smy:/etc/default$ sudo nano grub
find this area:And change that line and add one new line:
Code:
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
You might want to increase the default timeout, to give yourself more time to actually notice the menu:What this will do is make it so that grub will default to whatever you did last time.
Then update grub
Code:
doug@test-smy:/etc/default$ sudo update-grub
Now re-boot and manually select the kernel you want to run. Then re-boot again and it should be the default.
You can observe the default:
Code:
doug@test-smy:~$ cat /boot/grub/grubenv
# GRUB Environment Block
saved_entry=gnulinux-advanced-1bfeb1e4-5228-4e17-9ee0-87ab695fbe79>gnulinux-3.8.0-5-generic-advanced-1bfeb1e4-5228-4e17-9ee0-87ab695fbe79
###############################...
And here is is after I have gone back to the latest kernel as the default (but still using the whatever I did last time method):
Code:
doug@test-smy:~$ cat /boot/grub/grubenv
# GRUB Environment Block
saved_entry=gnulinux-simple-1bfeb1e4-5228-4e17-9ee0-87ab695fbe79
################################...
Hope this helps
Reference: https://help.ubuntu.com/community/Grub2#Saved
Bookmarks