Recently I updated Ubuntu from 8.04 to 8.10. This has created one more entry in the Boot loader. I want to delete the unnecessary boot loader entries.
In Windows XP, we have a Boot.ini file where we can directly delete the entries using any Text Editor. But , Windows Vista doesn't have this Boot.ini option. Instead there is a BCDEdit.exe. I was not comfortable editing the Boot Loader file using this Vista tool. So I was looking for alternative solution.
The solution I found was pretty simple using Ubuntu GRUB. GRUB is a Master Boot Record. For example, if you have both Windows and Linux installed on a computer, GRUB would load before either of these and let you choose which one to boot.
Now as I found the exact solution to this problem, I navigated to /boot/grub/menu.lst file, which contains all the Boot Load entries like this ..
title Ubuntu 8.10, kernel 2.6.27-9-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=dff991c4-a91a-4fe9-a6a7-a0608361eefd ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu 8.10, kernel 2.6.24-19-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=dff991c4-a91a-4fe9-a6a7-a0608361eefd ro quiet splash
initrd /boot/initrd.img-2.6.24-19-generic
quiet
title Ubuntu 8.10, kernel 2.6.24-16-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=dff991c4-a91a-4fe9-a6a7-a0608361eefd ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
Now we have to delete the entries we dont want. I've deleted the unnecessary entries.. Ubuntu 8.10, kernel 2.6.24-16-generic and Ubuntu 8.10, kernel 2.6.24-19-generic sections.
Now I do have only the Boot entries which I want !!!!
Saturday, January 3, 2009
Subscribe to:
Post Comments (Atom)
1 comment:
If anyone wants to change the bootsequence, change the default option which will be defaulted to 0. default takes number starting with 0.
default num
Set the default entry to the entry number NUM. Numbering starts from 0, and
the entry number 0 is the default if the command is not used.
You can specify 'saved' instead of a number. In this case, the default entry
is the entry saved with the command 'savedefault'.
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
vista contains savedefault and if you want vista to be your default OS change the default option to saved which is present at the top.
default saved
From now onwards when you restart, it boots to vista by default
IF you want to change the timeout, the you have another option timeout after default option. By default its values is 10sec, you can increase/decrease it.
timeout 10
Post a Comment