Announcement

Collapse
No announcement yet.

newb grub / second partition boot question

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    newb grub / second partition boot question

    I have installed ubuntu under a new partition on my single hard drive. Here is the layout:
    Code:
    root@dpich-M6400:/home/dpich# fdisk -l
    
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xa42d04a3
    
      Device Boot   Start     End   Blocks  Id System
    /dev/sda1  *      1    2086  16755763+  7 HPFS/NTFS
    /dev/sda2      2087    19457  139532557+  5 Extended
    /dev/sda5      2087    13028  87891583+ 83 Linux
    /dev/sda6      19057    19457   3221001  82 Linux swap / Solaris
    /dev/sda7      13029    19056  48419878+ 83 Linux
    Kubuntu 9.04 lives on /dev/sda5 while Ubuntu lives on /dev/sda7. My current running system is Kubuntu 9.04 with Ubuntu installed after. I choose not to edit the grub loader at the "Advanced" button during the install process for Ubuntu because of fear of not getting back into Kubuntu.

    I'm needing to add another entry to grub so that I'm able to boot Ubuntu. Since it's not on the same partition as Kubuntu, I'm at a loss on how to do it.

    Here is my current simplified menu.list

    Code:
    default 0
    timeout 10
    
    ## ## End Default Options ##
    
    title Kubuntu 9.04, kernel 2.6.28-13-generic
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro quiet splash
    initrd /boot/initrd.img-2.6.28-13-generic
    
    title Kubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro single
    initrd /boot/initrd.img-2.6.28-13-generic
    
    title Kubuntu 9.04, memtest86+
    kernel /boot/memtest86+.bin
    
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    
    title Other operating systems:
    root
    
    title Microsoft Windows XP Professional
    root (hd0,0)
    map (hd0) (hd1)
    map (hd1) (hd0)
    chainloader +1
    savedefault
    makeactive
    Could someone please point me in the right direction?

    #2
    Re: newb grub / second partition boot question

    The simple answer (or simple-minded, perhaps) is just to replicate your Kubuntu entries and change the UUID numbers to the correct number for the Ubuntu partition, which you can find using the blkid command in the Konsole. In other words, change the red numbers:

    title Kubuntu 9.04, kernel 2.6.28-13-generic
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro quiet splash
    initrd /boot/initrd.img-2.6.28-13-generic

    title Kubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro single
    initrd /boot/initrd.img-2.6.28-13-generic
    and then add these lines below your existing lines, so it looks like this:

    title Kubuntu 9.04, kernel 2.6.28-13-generic
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro quiet splash
    initrd /boot/initrd.img-2.6.28-13-generic

    title Kubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro single
    initrd /boot/initrd.img-2.6.28-13-generic

    title Ubuntu 9.04, kernel 2.6.28-13-generic
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro quiet splash
    initrd /boot/initrd.img-2.6.28-13-generic

    title Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
    kernel /boot/vmlinuz-2.6.28-13-generic root=UUID=7b7da474-86ec-43f7-8628-cf2533e81ec9 ro single
    initrd /boot/initrd.img-2.6.28-13-generic
    You may want to change "Kubuntu" to "Ubuntu", etc. and I'm assuming you have the same kernel version in your Ubuntu installation.

    More on Grub and the Grub menu is here:

    http://kubuntuforums.net/forums/inde...opic=3081671.0


    Hope this helps.

    Comment


      #3
      Re: newb grub / second partition boot question

      You could use something like
      Code:
      title Ubuntu Karmic Koala
      configfile (hd0,7)/boot/grub/menu.lst
      That will allow you to enter the menu that is in your Ubuntu install and still allow that installation to automatically update the menu.lst file. It is sometimes useful to have the reverse link also, so that youcan go from the Ubuntu menu to the Kubuntu menu if you want to.

      Comment


        #4
        Re: newb grub / second partition boot question

        I edited my /boot/grub/menu.lst file to include the following:

        Code:
        title Xubuntu 9.04, kernel 2.6.28-11-generic
        kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=67db66a4-cbee-4a38-826e-aa20fa38139d ro quiet splash
        initrd /boot/initrd.img-2.6.28-11-generic
        
        title Xubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
        kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=67db66a4-cbee-4a38-826e-aa20fa38139d ro single
        initrd /boot/initrd.img-2.6.28-11-generic
        I didn't expect what happened next. When I choose the top Xubuntu item, it displayed the splash screen for Kubuntu. I thought I didn't do something right. But then the login screen for Xubuntu came up?!? Not that it's important, but is it possible to steer the boot splash screen to a partition?

        Comment


          #5
          Re: newb grub / second partition boot question

          That would be one of the things that happens with the method I mentioned. Note that you can add the configfile stanza to menu.lst without removing the lines you already have.

          Comment


            #6
            Re: newb grub / second partition boot question

            I think that Kubuntu splash came from the memory in your graphics system. You can test my theory by re-booting Xubuntu a second time -- if I'm right, you won't see the Kubuntu splash the SECOND time you boot Xubuntu.

            But, if you go back and boot Kubuntu, you might see a Xubuntu splash (the first time .....).

            Comment

            Working...
            X