Grub help

Discussion in 'Linux, BSD and Other OS's' started by megamaced, Sep 30, 2006.

  1. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Hi guys. How do I install Ubuntu's bootloader to the root partition? I want to chainload it from SUSE's bootloader which is on the MBR

    Thanks
     
  2. donkey42

    donkey42 plank

    Likes Received:
    9
    Trophy Points:
    38
    yes, i'm well out of my depth (i think) are you trying to install Unbuntu's bootloader to the first sector of bootable partition, and boot Ubuntu through SUSE's bootlloader on MBR
     
  3. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Make sure your menu.lst is correct, and then in Ubuntu do
    Code:
    grub-install /dev/hdax
     
  4. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Hey mega

    What is your ubuntu's drive?

    Typicaly the entry in /boot/grub/menu.lst should be along the lines of:
    italic font is only for explenation

    try without the mapping lines first
    see how you get on.
    If this does not work and you are not sure how to, I can show you how to find out exactly where your Ubuntu sits.

    edit - sorry mega.. did not get it first time. I was assuming Ubuntu was already installed.
    Is it?
     
  5. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Thanks guys

    Yeah, ubuntu was already installed but it's bootloader got erased when I installed SUSE. I wanted to use SUSE's bootloader because it looks better :) Besides, it's much easier to configure bootloaders in SUSE.

    I am actually triple booting with Ubuntu, SUSE and Elive
     
  6. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    [ot] right, I thought you just wanted to add an entry to the menu list.... :O [/ot]
     
  7. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Hold on, it didn't work! :doh:

    I wrote ubuntu's bootloader to /dev/hdb1 and configured SUSE's bootloader to chainload it. When I restarted my computer and selected 'Ubuntu' from the bootloader I just get thrown back to the SUSE bootloader again :confused:

    This is the partition table:

    /dev/hda1 = SUSE boot
    /dev/hda2 = Swap
    /dev/hda3 = SUSE home
    /dev/hda4 = Elive boot & home
    /dev/hdb1 = Ubuntu root
    /dev/hdb2 = Swap
    /dev/hdb3 = Ubuntu home
     
  8. sabashuali

    sabashuali Ani Ma'amin

    Likes Received:
    6
    Trophy Points:
    38
    Can you show your menu.lst?
     
  9. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    SUSE's menu.1st

    You will see two Ubuntu entries. The first one is supposed to chainload to Ubuntu's GRUB bootloader but doesn't. The second Ubuntu entry actually boots Ubuntu directly without the need for Ubuntu's own bootloader.

    Code:
    # Modified by YaST2. Last modification on Sat Sep 30 18:27:49 BST 2006
    
    color white/blue black/light-gray
    default 0
    timeout 3
    gfxmenu (hd0,0)/boot/message
    
    
    title Ubuntu
        chainloader (hd1,0)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title SUSE LINUX 10.0
        root (hd0,0)
        kernel /boot/vmlinuz root=/dev/hda1 vga=0x317 selinux=0    resume=/dev/hda2  splash=silent showopts
        initrd /boot/initrd
    
    
    title eLive
        chainloader (hd0,3)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
        chainloader (fd0)+1
    
    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- SUSE LINUX 10.0
        root (hd0,0)
        kernel /boot/vmlinuz root=/dev/hda1 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 nosmp noapic maxcpus=0 edd=off 3
        initrd /boot/initrd
    
    
    title Ubuntu, kernel 2.6.15-27-686 (/dev/hdb1)
        kernel (hd1,0)/boot/vmlinuz-2.6.15-27-686 root=/dev/hdb1 ro quiet splash
        initrd (hd1,0)/boot/initrd.img-2.6.15-27-686
    
    Ubuntu's menu.1st. I need to erase the Windows entries because it does not exist anymore :)

    Code:
    # 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
    
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout		3
    
    title		Ubuntu, kernel 2.6.15-27-686
    root		(hd1,0)
    kernel		/boot/vmlinuz-2.6.15-27-686 root=/dev/hdb1 ro quiet splash
    initrd		/boot/initrd.img-2.6.15-27-686
    savedefault
    boot
    
    title		Ubuntu, kernel 2.6.15-27-686 (recovery mode)
    root		(hd1,0)
    kernel		/boot/vmlinuz-2.6.15-27-686 root=/dev/hdb1 ro single
    initrd		/boot/initrd.img-2.6.15-27-686
    boot
    
    title		Ubuntu, kernel 2.6.15-26-686
    root		(hd1,0)
    kernel		/boot/vmlinuz-2.6.15-26-686 root=/dev/hdb1 ro quiet splash
    initrd		/boot/initrd.img-2.6.15-26-686
    savedefault
    boot
    
    title		Ubuntu, kernel 2.6.15-26-686 (recovery mode)
    root		(hd1,0)
    kernel		/boot/vmlinuz-2.6.15-26-686 root=/dev/hdb1 ro single
    initrd		/boot/initrd.img-2.6.15-26-686
    boot
    
    title		Ubuntu, memtest86+
    root		(hd1,0)
    kernel		/boot/memtest86+.bin 
    boot
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title		Other operating systems:
    root
    
    
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/hda1
    title		Windows NT/2000/XP (loader)
    root		(hd0,0)
    savedefault
    makeactive
    chainloader	+1
    
    
    I have chainloaded Elive's bootloader in this way and it works fine.
     
  10. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    In the SUSE menu.lst, try changing the menu entry to:
    Code:
    title         Ubuntu
    root          (hdx,x)
    makeactive
    chainloader   +1
    
     

Share This Page