Results 1 to 10 of 12

Thread: How to Make Kubuntu Show in Grub?

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Beans
    134

    How to Make Kubuntu Show in Grub?

    Hi, I installed 2 Linux distros on the same HD. For the first distro I made the following partitions; /boot, /, /home/ and a swap partition.

    For the second distro I just made the /, /home partitions.

    Originally I had Dual boot set-up with Kubuntu 11.04 and W7 on separate hard drives. Using EasyBCD in Windows I was able to setup Grub so that W7 was my default OS and Kubuntu my other OS.

    Now that I installed the other Distro, the Grub selection boots into the second Distro, and I have no way of booting into Kubuntu, but the partitions that belong to Kubuntu do mount.

    I tried updating Grub using
    Code:
    update-grub
    in a console in the second distro, but when I reboot I only have the option of 2 OS's; Windows, and the second distro.

    I tried using the BCD tool in windows but it only lets my point to the partition, not a folder, so I can only select the /boot partition which the second distro took over.

    I would like to be able to boot in all 3 OS's.

    I'm sorry if this has been answered before but I've been working on this for a day now, reading the forums, and I've made some progress compared to where I was. I just need to get Grub to point to Kubuntu.

  2. #2
    Join Date
    Oct 2010
    Location
    Pikes Peak
    Beans
    1,176
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to Make Kubuntu Show in Grub?

    Please install boot-repair and at first just click the boot info summary and post it's url for us to review. https://help.ubuntu.com/community/Boot-Repair
    Jim
    Toshiba Satellite L505-S6946
    Precise, Fedora, Kororaa, Bodhi

  3. #3
    Join Date
    Jul 2011
    Beans
    134

    Re: How to Make Kubuntu Show in Grub?


  4. #4
    Join Date
    Oct 2010
    Location
    Pikes Peak
    Beans
    1,176
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to Make Kubuntu Show in Grub?

    Here are my notes as I try to sort this out in the script results.

    Grub2 but not the most current version is installed to the MBR of sda and looks to the BackTrack partition for it's boot files. There is no boot loader installed to the sdb windows drive and it appears that drive may not have been read well. Sdc is confusing. It looks like it has a copy of the MBR from sda but not the same partitions. Grub2 looks to a non-existent partition for its files. Windows seems to have written to the mbr of sdd but no boot files are found. I can't tell what the other device found is. Is Kubuntu on sda6?

    Your Grub entries are wrong and I can't see just how that happened. The first entry point to sdd1 an NTFS partition. That entry even has previous kernel versions shown. The next entry is found by the Grub2 os prober and is windows 7 on sdb1, which could be correct. sda6 does have grub files and that grub has entries for windows on sdb1 and ubuntu on sdd3 (sdd3 doesn't seem to exist). fstab on sda6 shows it as / mount point, sda7 as /Home and sda5 as swap.

    The backtrack partition (sda8) has grub files that have entries for itself and windows in the right partitions. It uses old hdx notation for devices and must be an old grub. It shows / on sda8 and /Home on sda9 in fstab.

    From all of this I wondered about RAID being involved and the script results do show RAID errors that I can't interpret. This is in the boot-repair log.
    sda8 contains The OS now in use - Ubuntu 10.04.2 LTS (linux)
    sda6 contains Ubuntu 11.04 (linux)
    sdc1 contains Windows 7 (windows)
    I also wonder about LBA being in use on sda from the log. The log makes me think that boot-repair thinks it can fix grub but I'm not sure at all about that. I believe it would purge and reinstall grub2 on sda8. That could be enough and right and I don't expect that to make it worse.

    I don't feel like I've given you great information and a solution. I'll see if I can get anyone else with more experience to take a look if they haven't while I've been doing this.
    Jim
    Toshiba Satellite L505-S6946
    Precise, Fedora, Kororaa, Bodhi

  5. #5
    Join Date
    Jul 2011
    Beans
    134

    Re: How to Make Kubuntu Show in Grub?

    The RAID error is from a PCI-E Sata card which the HD with both distros is connected too. It has an option for RAID but is not configured it just goes through a screen when booting.

    sdb and sdd are both NTFS for storage and don't have any OS's on. I had to mount one of them manually as Kubuntu was not recognizing one.

    sdc I know has W7 installed and is where it boots.

    Kubuntu is on sda6 and I believe the /home folder is sda7.

  6. #6
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    14,630
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to Make Kubuntu Show in Grub?

    Hi, it is quite possible from looking at it that the boot repair may fix it the boot issue with kubuntu, but with the errors about the raid and several grubs being installed in different partitions, I think we are better off waiting on the experts.
    Thank you

  7. #7
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to Make Kubuntu Show in Grub?

    Older versions of grub2 or boot script do not show drive correctly so grub in sdc may boot backtrack also.

    I do not recommend separate /boot partitions except very old drives or servers with RAID or LVM. It makes it a bit more difficult to reinstall grub and offers little advantage on desktops. Yours is even more confused since your fstab does not show the /boot partition, but all the boot files are in the /boot.

    I do believe boot-repair was updated to include /boot partitions, but you have to tell it that. I have not used boot repair. But your fstab in sda6 does not show the separate /boot and the files are not also in / (root), so I do not think it will handle this special case. Or it may let you boot, but any kernel updates will get writing into root not boot after you boot.

    It may be easier to add a boot stanza for Kubuntu to Backtrack and see if it will boot, but it may not unless you chroot into Kubuntu to fully install grub & kernels into root or edit fstab to include the /boot partition. I think it may boot but if you ever have an update it will not update correctly as the updates will go into root since the /boot entry is missing from fstab.

    Add this to Backtrack's 40_custom Which is just your entry in Kubuntu but I changed the set root from sdd to sda, since you must have reordered drives. Search by UUID overides the entry anyway.
    gksudo gedit /etc/grub.d/40_custom
    Code:
    menuentry 'Ubuntu, with Linux 2.6.38-11-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos1)'
        search --no-floppy --fs-uuid --set=root 57ae3068-aca7-4c5f-a83b-03053d0de086
        linux    /vmlinuz-2.6.38-11-generic root=UUID=bf8384ed-3a1d-4ca8-bc3f-70d6fd8fcda1 ro   quiet splash vt.handoff=7
        initrd    /initrd.img-2.6.38-11-generic
    }
    The only RAID I see is your sdb drive and I do not know why it shows that. Did you turn on a RAID setting when installing sdb? That may be part of why you have trouble mounting it as you have to handle it differently. I do not know RAID except how to remove it.

    If you can boot back into Kubuntu I would totally reinstall grub & the kernels. This may obsolete the /boot partition. And then the current entry in backtracks 40_custom will not work.

    apt-get update
    apt-get upgrade
    #would upgrade you to the latest kernel in the repositories
    apt-get dist-upgrade
    apt-get purge grub grub-pc grub-common
    mv /boot/grub /boot/grub_backup
    mkdir /boot/grub
    apt-get install grub-pc grub-common
    grub-install /dev/sda
    # possibly this also, which may redo some of above
    dpkg-reconfigure grub-pc
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







Bookmarks

Posting Permissions

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