grub not showing ubuntu partition

Tom H tomh0665 at gmail.com
Fri Sep 10 13:17:06 UTC 2010


On Fri, Sep 10, 2010 at 4:16 AM, Tanmoy Chatterjee
<tachchot007 at gmail.com> wrote:
> On Fri, Sep 10, 2010 at 3:08 AM, Tom H <tomh0665 at gmail.com> wrote:
>> On Thu, Sep 9, 2010 at 8:27 AM, Tanmoy Chatterjee <tachchot007 at gmail.com>
>> wrote:
>> > My hard disk partition is as following -
>> > /dev/sda1 - ext3 - ubuntu installed here
>> > /dev/sda3 - ext4 - /boot for Fedora13
>>
>> > /dev/sda4 - ext4 - remaining partition of Fedora13(/, /home, /var )
>> > /dev/sda2 - extended - created when I installed Ubuntu 9.04
>> > /dev/sda5 - linux-swap - created with ubuntu installation
>>
>> > To Tom H
>> > Thank you very much for your suggestion - kindly help me with the cli
>> > solution.
>>
>> Just remembered that I never replied to the above.
>>
>> I've never used Fedora's grub1 to boot Ubuntu but this should work.
>>
>> Booted into F13, run "mount /dev/sda1 /mnt" followed by "ls -l /mnt/boot".
>>
>> You will have the filenames of your Ubuntu vmlinuz and initrd files.
>>
>> Run "blkid -c /dev/null /dev/sda1".
>>
>> You will have the UUID of sda1.
>>
>> Edit as root "/etc/grub.conf" (it is a symlink to /boot/grub/grub.conf"
>> and add:
>>
>> title Ubuntu 10.04
>> root hd(0,0)
>> kernel /boot/vmlinuz_from_ls root=UUID=uuid_from_blkid ro
>> initrd /boot/initrd.img_from_ls
>>
>> If "root=UUID=..." doesn't work, try
>> "root=/dev/disk/by-uuid/uuid_from_blkid" or "root=/dev/sda1"
>
> I have posted this question on Fedora user mailing list and Fedora forum and
> have got the answer and solved my problem - I will post details of it
> shortly.

I susbscribe to Fedora users but missed that thread (probably because
I deleted many messages in a hurry yesterday; sorry).

I checked the archive and the proposed solution is:

<start>
in fedora, directory "/boot/grub", file "grub.conf", add following
between ++++ at end of file.

++++

title Ubuntu os ($version.number)
    root (hd$x,$y)
    kernel /boot/vmlinuz-$version.number ro root=LABEL=/ \
      devfs=nomount resume=/dev/hd$x$y acpi=force vga=794
    initrd /boot/initrd-$version.number.img

++++

*notes:*
replace "$version.number" with ubuntu version
replace "$x" with drive number. where values are 0, 1, 2, 3.
replace "$y" with partition number. where values are 1, 2, 3, 4, 5, etc.

"root=" may be "sda$y", "sdb$y", "sdc$y", "sdd$y", or "UUID" for partition.

use "acpi=force" to force loading of 'acpi'.

use "vga=794" to display a screen sizing of 54 x 120

"\" is a 'line break' and is not actually used.

*also:*
look at what is currently in your fedora 13 "grub.conf" file to get
idea of structure.

if your 'ubuntu' partition is mounted, open file "/boot/grub/grub.conf"
and copy "title" info to your f13 grub.conf file.
</end>

This will not work.

The poster assumes that Ubuntu labels its root partition "/" which
isn't the case, unless you applied such a label it after install.

The proposed kernel options are unnecessary, at least to start with.
You might need "acpi=" or "vga=" but boot without them first and
forget about the "resume=" and "devfs=".

There is no "/boot/grub/grub.conf" in Ubuntu. If you want to check a
grub configuration file, check "/boot/grub/grub.cfg" but keep in mind
that if there is an "hd(X,Y)", you should use "hd(X,Y-1)" in Fedora's
grub.conf.




More information about the ubuntu-users mailing list