Need. Help. Thx. [Ubuntu 8.10]

Discussion in 'Linux' started by jamil_d, Dec 30, 2008.

  1. jamil_d

    jamil_d Active Member

    Joined:
    Dec 15, 2007
    Messages:
    2,041
    Likes Received:
    12
    Device:
    iPhone 3GS (Black)
    Hi,

    I have two hard drives: I installed Windows on one, and Ubuntu on the other. One Problem; the bootloader for Ubuntu is on the Windows hard drive, and I can't boot into windows. Is there any way I can make it so that upon booting into one of the HDs, I can have a menu to select which OS I can use?

    Thanks in advance.
  2. lszanto

    lszanto New Member

    Joined:
    Nov 8, 2008
    Messages:
    74
    Likes Received:
    0
    Device:
    2G iPod touch
    Yes it is quite simple, you first must open the grub menu file that is the boot menu. To open it you go to the command line and enter either

    sudo gedit /boot/grub/menu.lst
    or
    sudo gedit /grub/menu.lst

    Depends on where your menu.lst resides. Once you have it open you simply have to add an option to boot into windows. It looks like this:

    title Windows
    root (hd?,?)
    savedefault
    makeactive
    chainloader +1

    The ? marks should be replaced with the hard drive number/partition number. For example if windows is on the second hard drive and takes up the whole hdd then it would be (hd1,0). Note: remember that instead of starting at 1 computers start at 0 so your first hard drive will be 0 then 1 and so forth.

    If this doesn't work or answer your question please ask again.

Share This Page