Review your favorite Linux distribution.
Go Back > Blogs > sumeet inani
User Name


Rate this Entry

changing order in grub2

Posted 06-13-2011 at 04:50 AM by sumeet inani
Updated 06-13-2011 at 04:54 AM by sumeet inani

i have ubuntu 10.04(lucid)
grub-install -v
grub-install (GNU GRUB 1.98-1ubuntu5)
I tried

cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=4#Did not help ?
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

# Uncomment to disable graphical terminal (grub-pc only)

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux

# Uncomment to disable generation of recovery mode menu entries

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
sudo update-grub
[color=red]grep menuentry /boot/grub/grub.cfg[color]
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry "Memory test (memtest86+)" {
menuentry "Memory test (memtest86+, serial console 115200)" {
menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
sudo  grub-set-default 4;sudo update-grub
Still the default entry that boots is not windows xp !!!

Finally I copied 30_os-prober to 07_custom in same folder (/etc/grub.d) & made 30_os-prober non executable followed by 'sudo update-grub' to have xp as default boot.
Posted in Uncategorized
Views 714 Comments 1
« Prev     Main     Next »
Total Comments 1


  1. Old Comment
    Now I have debian 6.0.2 in which I played with file "30_otheros"
    Posted 11-26-2011 at 08:16 AM by sumeet inani sumeet inani is offline


All times are GMT -5. The time now is 03:44 AM.

Main Menu

Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration