How to Edit the Grub Menu in Ubuntu

Ubuntu Linux installs a menu giving users a choice of which operating system to boot. Typically, the choice is between Microsoft Windows or Ubuntu. GRUB (Grand Unified Boot-loader) drives this menu. The menu displays for 10 seconds. If no choice is selected, Grub starts the first (default) O/S.

Instructions

    • 1

      Boot Ubuntu, login as a user and start a terminal session.

    • 2

      Make a copy of the GRUB menu file as a backup by entering "cp /boot/grub/menu.lst /boot/grub/menu.lst_BU." Use this file to restore menu.lst if the changes fail.

    • 3

      Edit the menu using the command "sudo gedit /boot/grub/menu.lst."

    • 4

      Count the number of possible operating system choices. For example, when first installed Ubuntu will be the first O/S in the file. Lower down in the file will be Windows XP. Count other operating systems, if installed.

    • 5

      Find the line "default = 0." Grub sets the default to boot the O/S located as the first (0 relative) in the file menu.lst.

    • 6

      Change the line "default = 0" to "default = 1." Save the file and exit. This changes the default from Ubuntu to Windows XP. Ubuntu appears first in the file and first on the menu display. Windows XP is further down in the file and appears below Ubuntu on the menu display.

    • 7

      Restart the PC. Let the GRUB menu take the default to verify the change . The default is now set to 1 which means Windows will boot when no choice is made.

Tips & Warnings

  • Changing the wording displayed for boot choices on the menu can be done while editing the menu.lst file.

  • To restore the backup file, boot with a CD based Linux disk. Mount the PC based Ubuntu for updating. Replace the menu.lst with the backup by renaming the files. Dismount the disks, remove the CD based Ubuntu and try to reboot the PC.

Related Searches:

Resources

Comments

  • Kenneth Chaney Sep 15, 2009
    Thank you. I've read three guides and your was the simplest and most accurate. Great article.

You May Also Like

  • How to Edit My BIOS With Grub

    If you run an IBM computer, chances are you are using the Basic Input/Output System to boot the machine. Generally, this runs...

  • How to Change a Grub Boot Order

    If you are booting multiple operating systems from the same system, you may want to change which OS boots automatically. For Linux...

  • How to Add Noapic to GRUB

    The GRUB bootloader is used to load the Linux, DOS and Windows operating systems. It provides functions to dynamically change the configuration...

  • How do I Change the Ubuntu Grub Boot Menu Order?

    Grub is the default boot loader used in Ubuntu and many other Linux distributions. There are now two different versions available, the...

  • Signs of Lawn Grubs

    Signs of Lawn Grubs. Lawn grubs, or white grubs, are the larvae of different species of beetles, such as the infamous Japanese...

  • How to Restore a Grub Menu.Lst File

    Linux users, especially those who dual-boot with Windows, start things off with a boot loader to power up the computer and choose...

  • How To Change Grub Order

    Grub is the bootloader used by most Linux distributions. Grub displays a menu of installed operating systems when the computer boots. In...

  • How to Reinstall a Grub Loader

    The Grub boot loader installs with Linux operating systems. Grub is the first program that loads when the computer boots up and...

  • How to Fix Ubuntu Grub Error 17 in Windows XP

    Type "root (hd0,0)" and then press "Enter." If GRUB was installed onto a different hard drive or partition, you must edit "hd0,0"...

Related Ads

Featured