Showing posts with label grub. Show all posts
Showing posts with label grub. Show all posts

change Ubuntu default boot sequence

If you have dual-boot as me, Ubuntu and Windows 7, and wish to have Windows 7 as default boot.
Edit /etc/default/grub file, and change the value below to the line of your Windows 7.

For example, my Windows 7 was at line 5, you need to put it as "4", as the numbering starts at 0.

GRUB_DEFAULT=4

Save and exit, remember to run below to make it effective.

$ update-grub

Now reboot and it should have Windows 7 selected by default.

Ubuntu Change Preferred Default Boot Order

You have dual boot system; Ubuntu and Win7.
And you like to auto boot into the previous booted system.

Change GRUB_DEFAULT to "saved" and GRUB_SAVEDEFAULT to "true"

$ sudo vi /etc/default/grub
#GRUB_DEFAULT=0
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""


$ sudo update-grub
 
Now do a reboot and give it a try