Grub in Ubuntu
Talking about Linux and Boot Loader, we never forget with Grub or Lilo boot loader. Well this stuff is actually the most used boot loader included in any linux platform. Both have it’s own configuration.
Ok in order not to discuss wider, here I just want to write about Grub boot loader in ubuntu.
It’s different if I compare grub in ubuntu with grub in other linux distros ( especially with redhat distros, hee…. Actually it’s to early to justify because I just ever used Fedora and Suse J ). The main differences between them is in configuration file.
In ubuntu, the configuration of grub placed in /boot/grub/menu.lst but in Fedora and Suse, configuratin of grub placed in /etc/grub.conf. that’s why it make me dizzy when I first time try to change options of grub boot loader in ubuntu
If u wanna change the default configuration of grub u just go to that path, and then open that file and edit that (remember, that u must read comment on that file before editing in order to decrease the possibility of damage as the caution of editing file). The safer way to do that is make a backup file before doing editing. So if there is a damage what we do is just rename backup file as previous.
Here it’s the content of menu.lst in grub :
# menu.lst – See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
title Ubuntu, kernel 2.6.20-15-generic
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=0d2d1795-cf93-423b-9f3b-04d6c7f6b43a ro quiet splash
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=0d2d1795-cf93-423b-9f3b-04d6c7f6b43a ro single
title Ubuntu, memtest86+
title Other operating systems:
title Free BSD
The content of that file may differs with yours, because it depends on the system in your PC. So there are some configuration u can make :
- Default : it is used to highlight default operating system. The default configuration is set to 0 (it means default operating system will be ubuntu). Change the value of default to operating system you preferred by entering index of that operating system in your grub menu.
- Timeout : it is used to define how long boot menu will appear until PC enter to operating system. U can change as you wish
- For the rest, just ignore it. And if u wanna change some stuff, just change the title of operating system. Cmiiw.