Friday, December 17, 2010

Customizing dual-boot setup UBUNTU 10.10

If you use duel operating system, same as UBUNTU 10.10 and WINDOWS 7, when your Ubuntu system boots, you will see the GRUB menu if you hit the Esc key, or if you’ve enabled the menu to show by default. The only issue with this is that the default timeout is only 10 seconds. You may want to increase this amount… or you may even want to decrease it. There are several ways that can be used, one of which is to edit the Ubuntu boot menu.
  1. Press Applications → Accessories → Terminal.
  2. The Terminal screen will appear. Type the following into the Terminal, entering your administrative password if prompted: 
     
    cd /boot/grub
    sudo cp grub.cfg menu_backup.cfg
    sudo gedit grub.cfg
     
  3. The Text Editor will start, and will open the file grub.cfg 
  4. Find the part of the file which contains text similar to the following:
     
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
     
  5. The line beginning with the word timeout determines the time, in seconds, which the boot menu will be shown for. Change the number on this line to the number of seconds which you would like the menu to be shown for. Use 0 if you would not like the menu to be shown at all.
  6. Press File → Save to save your changes and close the Text Editor. Your changes should take effect the next time you restart your computer.
The timeout value is in seconds. Save the file, and when you reboot you will have that many seconds to choose the menu item you want.

No comments:

Post a Comment