Editing the grub boot menu on Dual Booting Systems

In the case any Linux/XP or Ubuntu/XP dual booting system the Windows xp will be shown at the bottom during the Boot choice menu ..so if u wish to move the Xp option to the top of menu follow the steps


we have to edit the
/boot/grub/menu.ls
to change the list
so lets start with a backup process of config file

Code:
1. backup menu.ls:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst-backup
Code:
2. edit menu.ls:
sudo gedit /boot/grub/menu.lst
Code:
3. Move the paragraph with the WinXP options up the list.
Code:
4. Change default to 1 (it was 0)
default 1
Code:
5. comment out the lines about “Other operating systems“
So now u have the following options when booting:
Code:
* Microsoft Windows XP Professional
* Ubuntu, kernel 2.6.17-10-generic
* Ubuntu, kernel 2.6.17-10-generic (recovery mode)
* Ubuntu, memtest86+
and the config file will be like (not showing the commented lines)
Quote:
default 1
timeout 10
title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot
title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
boot
Remeber this will bring ur Xp from bottom to the top ..but wont make it as the default OS option.To make Xp as default option follow the steps in order and on step 4 (decribed above) change the default value to '0' (this is beacuse '0' denotes the first value in list - ie XP now)

Code:
4. default 0

In Thursday, January 15, 2009


Leave a Reply

Popular Posts

Total Pageviews