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.
-
So, ever wonder what all those TIME_WAITs are doing in your netstat listing? Okay, for those of you who don't spend all your waking hou...
-
If you are serving a high traffic web/DNS server, and recently having PING loss to the server and not all HTTP request were successful to i...
-
How to show my NIC MTU value, and how do I change it to use Jumbo Frame? list current value $ lsattr -E -l en0 -a mtu ...
Showing posts with label grub. Show all posts
Showing posts with label grub. Show all posts
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
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
Subscribe to:
Posts (Atom)