Re: Gnu Grub to boot last used os
as far as i know there is no option to boot the "last used" os. But i can show you how to edit the grub configuration file on what the default OS is to be booted. Important here is how many grub entries you have, by default it should look like this for a normal dualboot:
Originally Posted by pigmentty
making it a total of 5 entries, starting at 0. Thus the last entry, in this example windows, would have the entry number 4. Now once we are booted into ubuntu you can open a terminal and type
Linux headers (recovery)
to open the configuration file. There you edit the line that says there you change the number to the entry number of which OS you would like to boot by default (change it to 4 if you want windows like shown in the example). You can also edit the line on how many seconds the Grub bootloader is supposed to "wait" for input before loading the default OS.
gksu gedit /etc/default/grub
After you are done with the changes, save the settings.
type the command in the terminal for the changes to take effect.
i5 2500k @ 4.4 GHz | MSI Z68A-GD65 (G3) | Gigabyte GTX 570 (OC) 1280 MB GDDR5 | Alpenföhn Himalaya | Corsair Vengeance 1600MHz 8GB CL9 RAM | Be quiet! Straight Power BQT-E9 700W | NZXT Lexa S | Monitor - ASUS ML248H 24"