Change Default Boot Order for Grub 2 in Ubuntu 11.04 Natty or 10.10, 10.04 etc
- Sunday, May 15, 2011, 2:12
- How To?, Linux
- Views: 114,447
- 31 comments
Ubuntus 9.10, 10.04, 10.10, 11.04 etc. use Grub2 so if your are using any of these versions of Linux then this trick should work for you. This post discusses the standard command line approach as well as GUI approach, discussed at the end of this post.
With Grub 2 you can no longer edit grub.conf or menu.lst files located in /boot/grub folder. The file to be edited is now “grub” located in /etc/default/ folder, you can edit it by running the following command from terminal (sudo gedit /etc/default/grub). The contents would look like this:
If you change this file, run ‘update-grub’ afterwards to update
# /boot/grub/grub.cfg.GRUB_DEFAULT=0
#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=””# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console# 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’
#GRUB_GFXMODE=640×480# Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true# Uncomment to disable generation of recovery mode menu entrys
#GRUB_DISABLE_LINUX_RECOVERY=”true”
To change the default boot option, you just need to change the GRUB_DEFAULT parameter. 0 is the first entry, so if you want windows to be your default boot option which is, say at, 6th position in the grub menu, then you just need to change the GRUB_DEFAULT value to 5 and save the file and close it. If you want to change the Auto Boot preset time then you would need to change the value of GRUB_TIMEOUT parameter, it should be assigned a value in seconds and would determine the delay in seconds before grub boots the default choice, automatically. Now from the terminal run following command and your grub default boot order would be changed when you boot the next time:
sudo update-grub
GUI Approach
Just install the startup manager by using synaptic or running the following command
sudo apt-get install startupmanager
Now launch System > Administration > StartUp-Manager and you can change the boot order using graphical interface.
You might also like
Change Default Boot Order / Sequence for Grub2 in Fedora 16 Verne Fedora finally... | Restore Grub 2.0 after Windows 7 Install (Ubuntu 11.04, 10.10, 10.04 or 9.10) I had Ubuntu... | Change Default Boot Order for Grub 2 in Ubuntu 11.10 Oneiric Ocelot Ubuntus 11.10... | Change Default Boot Order for Grub in Ubuntu 10.10 Maverick Meerkat Command-line... |
About the Author
31 Comments on “Change Default Boot Order for Grub 2 in Ubuntu 11.04 Natty or 10.10, 10.04 etc”
Trackbacks
- How to Create A Perfect Linux Desktop Using Ubuntu 10.04 « Hack Your Life!
- Dual Boot Windows 7 and Ubuntu 10.04 Lucid Lynx « Hack Your Life!
- Restore Grub 2.0 after Windows 7 Install (Ubuntu 10.04 or 9.10) « Hack Your Life!
- Anonymous
- Restore Grub 2.0 after Windows 7 Install (Ubuntu 11.04, 10.10, 10.04 or 9.10) - Hack Your Life!
- Anonymous
- Dual Boot Windows 7 and Fedora 16 Verne (Step by Step Guide) - Hack Your Life!
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!
thanks for this simple, yet followable article.
i’m amazed at how cryptic unix folks can be. i actually think linux based os’s could smear windows easily IF the developers would start using understandable, readable and pronounceable utility names instead of 5 consonants and 1 vowel???? it quickly threatens most users.
Like or Dislike:
0
0
[Reply]
Hey all ubuntu 10.04 LTS users…….i have a problem regarding Grub menu… i have DELL XPS 1645 (64 bit) laptop with installed windows 7 (64bit).
I properly installed ubuntu 10.04 LTS as you recommended. Now when i restart my laptop, by default it boots ubuntu (means he doesn’t show me options which is to be boot Win 7 or ubuntu). I am unable to access win 7. I tried to change grub config file but same error occur. how to set win 7 default? Please help me………….
Like or Dislike:
0
0
[Reply]
@Sandeep Maske –
First, when you boot Ubuntu, can you still see the Windows partition intact, I mean can you access files and folders there?
Can you post the content of your /etc/default/grub file here. Then I can tell you what the problem is.
Also before you do that, when you reboot, press any key as soon as you get out of the bios, then you should see the grub menu, which should have several entries, does Windows have any entry in that menu?
Like or Dislike:
0
0
[Reply]
@marv –
Agree 100 %
Despite Ubuntu efforts, Linux is not for human beings yet
Like or Dislike:
0
0
[Reply]
@José Velásquez –
Come on guys, you just need to give it some time. Spend some time with Linux and it just grows over you. With Ubuntu, I can do wonderful things for free, which would otherwise cost me a fortune to do on Windows platform.
We should not pick on things that are free. 🙂
Like or Dislike:
0
0
[Reply]
@José Velásquez –
Quite right. Its for angels
Like or Dislike:
0
0
[Reply]
Hi all i recently installed ubuntu 9 on my pc laptop. i have to tell u im very pleased with it. only one thing happend and im not shure how to fix it. before installing ubuntu i had a dualboot of winxp and win 7
now i created another partition to install ubuntu. it installed fine but i cant boot win xp or win 7 anymore it only loads the “loader” to reinstall win xp and win 7. how can i fix this?? greets from a newbee in the ubuntu world
Kevin
Like or Dislike:
0
0
[Reply]
@Kevin –
If you installed Ubuntu 9.10 or 10.04, run this command at the terminal and Grub should update the list of available OS
sudo update-grub
and reboot and the option to choose XP or Win 7 should now appear in initial boot menu
Like or Dislike:
0
0
[Reply]
thankx guys it works for me!
Like or Dislike:
0
0
[Reply]
my 10.04 grub loader shows my Xp in the menu but when i click it it return to menu again.
Like or Dislike:
0
0
[Reply]
Having problems after upgrading to Ubuntu 10.04 with the dual booting. Have XP installed b/c I need some programs for certain types of work I do. Really like Ubuntu and don’t plan on going back to windows xp. I have several computers, one other that dual boots, the others are ubuntu server and a windows home server. My problem is with the windows xp boot. When I choose this, I get the error message of no operating system. The error indicates the boot info is incorrect in the grub, which it apparently is b/c it does not boot. I can see all of my programs through Ubuntu file manager and everything appears to be intact file wise. I am not sure where windows should boot from. The problem is strictly in the windows section of the grub file, I just am not sure where or how to point it to the correct boot section.
The following is my grub.cfg: Any suggestions would be greatly appreciated.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-gen#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ####
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ####
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=”0″
if [ ${prev_saved_entry} ]; then
set saved_entry=${prev_saved_entry}
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z ${boot_once} ]; then
saved_entry=${chosen}
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640×480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don’t
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.32-22-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.32-22-generic …’
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###eric root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry ‘Ubuntu, with Linux 2.6.31-21-generic (recovery mode)’ –class ubuntu –class gnu-linux –class gnu –class os {
recordfail
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
echo ‘Loading Linux 2.6.31-21-generic …’
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=c187ec52-00de-46dd-a22b-0f663e55d582 ro single
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-2.6.31-21-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry “Memory test (memtest86+)” {
insmod ext2
set root='(hd1,7)’
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin
}
menuentry “Memory test (memtest86+, serial console 115200)” {
insmod ext2
set root='(hd1,7)’### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
search –no-floppy –fs-uuid –set c187ec52-00de-46dd-a22b-0f663e55d582
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,7)’
search –no-floppy –fs-uuid –set BE588BC5588B7B43
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry “Microsoft Windows XP Professional (on /dev/sdb1)” {
insmod ntfs
set root='(hd1,1)’
search –no-floppy –fs-uuid –set c698962698961551
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the ‘exec tail’ line above.
### END /etc/grub.d/40_custom ###
Like or Dislike:
0
0
[Reply]
To lifehacker- Would you could you look at my posting and maybe help me out. I am still new at the Ubuntu but am sold on it 100%, but still need to use windows programs that just aren’t available in Ubuntu yet. Thanks in advance.
Like or Dislike:
0
0
[Reply]
@Marty –
Please post the contents of your
/etc/default/grub
file, because this is the one which you need to edit to generate the /boot/grub/grub.cfg Also try running the command sudo update-grub and post the output here.
Like or Dislike:
0
0
[Reply]
Hi:
Thanks very much for the valuable info, just editing the grub has helped in my understanding of Linux. It worked exactly as stated. I’m dual booting XP & Ubuntu 10.04 on different drives.
vic
Like or Dislike:
0
0
[Reply]
Thanks for this tip, this changes are making me nutts! I think this change is completely unnecessary.
Like or Dislike:
0
0
[Reply]
Thanks!
Like or Dislike:
0
0
[Reply]
I changed via grub and startup manager, updated grub tested a couple of times but stilll does no good – first position will allways remain as defualt no matter what i put as GRUB_DEFAULT parameter
Like or Dislike:
0
0
[Reply]
lifehacker Reply:
August 17th, 2011 at 1:07 pm
@Peter.wi, Yes the first position doesn’t change, but the default selection (the highlighted text) changes, and the highlighted choice is going to be the default boot choice. Let me know if that is the case?
If I remember correctly older grub used to have this functionality where the default boot choice would have to be the first choice in the list. Not anymore!
Like or Dislike:
0
0
[Reply]
@lifehacker,
the point is the highlighted GRUB section will still be position 0 instead of whatever GRUB_DEFAULT is set to. GRUB costumizer did the thing for me though
Like or Dislike:
0
0
[Reply]
lifehacker Reply:
August 19th, 2011 at 10:57 am
@Peter.wi, OK, great. Thanks for letting us know.
Like or Dislike:
0
0
[Reply]
I initially had trouble because I didn’t subtract 1 from the position in the grub menu. Since the first item in the menu is 0, to default to the 7th in the list you would use GRUB_DEFAULT=6. It worked fine after that. For some reason, the GUI method using startup manager didn’t work, even though it seemed to save the settings.
Like or Dislike:
0
0
[Reply]
lifehacker Reply:
September 18th, 2011 at 2:55 am
@Ross, Thanks for sharing your experience. Hmm startup manager has been giving trouble to some other folks too. I’ll try to look in to it. Since, the command line approach works the best, I usually don’t bother to use the GUI methods.
Like or Dislike:
0
0
[Reply]
> the GUI method using startup manager didn’t work, even though
> it seemed to save the settings. ( Ross wrote)
I had the same experience. After a few tries, I did the editing via terminal instructions given first. I noticed that the Startup Manager managed to edit the other params I’d changed, but had not counted binary in assigning the most important param, the GRUB_DEFAULT. It had written 6. I changed it to 5, did the ‘sudo update-grub’ call, and it now works.
Thanks to all.
– dan feather
Like or Dislike:
0
0
[Reply]
Thanks for the simple to follow directions. I was not aware that there was a GUI interface. I installed that and it worked just fine!
Like or Dislike:
0
0
[Reply]