Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi I have just installed a fresh copy of Ubuntu 9.04 which is dual booting with Windows XP Home Edition SP3 Currently the default OS in GRUB is Ubuntu, I ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    5

    Need help with GRUB boot loader

    Hi

    I have just installed a fresh copy of Ubuntu 9.04 which is dual booting with Windows XP Home Edition SP3

    Currently the default OS in GRUB is Ubuntu, I need to change it to Windows.

    HELP?

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    You need to change default entry in the /boot/grub/menu.lst file ... see info in grub manual here. You can edit the file by opening a terminal and using the command
    Code:
    sudo nano /boot/grub/menu.lst

  3. #3
    Just Joined! linuxd's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka, Bangladesh
    Posts
    40
    Welcome
    To make the change, you'll first have to boot into Ubuntu, and then run the following command:

    sudo gedit /boot/grub/menu.lst

    Find this section of the file:

    ## 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'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    The important line is the last one. You will need to change that number 0 to match the Windows boot section. Typically it's always going to be 4 on a default dual-boot configuration. Change this value to 4, and then save and reboot your machine. You should go into Windows instead of Ubuntu automatically.

    Note: The blocks at the bottom of the file match the items in the menu. You can change this value to match whichever item you want as default, just remember that numbering starts at 0.
    Have fun

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    5
    lol I have made the change, now how do you save it. This is my first time using linux.

  5. #5
    Just Joined! linuxd's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka, Bangladesh
    Posts
    40
    after made the change
    go to file> save
    then close
    after that restart your machine

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    5
    save doesn't appear in the file menu

  7. #7
    Just Joined! linuxd's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka, Bangladesh
    Posts
    40
    Do you understand my suggetion perfectly?
    After run the command in Applications>Accessories>terminal:

    sudo gedit /boot/grub/menu.lst

    a new script will be open.
    after made changes, you have to save it by click the save button or under the file menu you can find SAVE option.

    get it??
    now reboot

  8. #8
    Just Joined!
    Join Date
    May 2009
    Posts
    5
    The command you told me to use doesn't work i have been using the command the previous poster suggested

    see my screenshot
    Attached Images Attached Images

  9. #9
    Just Joined! linuxd's Avatar
    Join Date
    Apr 2009
    Location
    Dhaka, Bangladesh
    Posts
    40
    Then find the menu.lst script manually.
    open the filesystem where ubuntu installed.
    Click on the folder boot> grub > menu.lst

  10. #10
    Just Joined!
    Join Date
    May 2009
    Posts
    5
    I have oped the file manualy and changed the number

    but when I try to save it says i dont have the nessasary permisions

    I am the only user account so i must be admin

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...