grub not showing ubuntu partition

Tanmoy Chatterjee tachchot007 at gmail.com
Mon Sep 13 08:34:12 UTC 2010


On Fri, Sep 10, 2010 at 6:47 PM, Tom H <tomh0665 at gmail.com> wrote:
>
> 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.

There is a file named /boot/grub/menu.lst in ubuntu. I have copied the
first entry from there and post that on fedora /boot/grub/grub.cfg
which is as following -

"title Ubuntu 9.04, (kernel 2.6.28-19-generic)
root (hd0,0)
kernel /boot/vmlinuz-2.6.28-19-generic
root=UUID=e9918b34-80aa-4214-bd63-6b46b339005c ro quiet splash
initrd /boot/initrd.img-2.6.28-19-generic
quiet"
I have only replaced " root (hd0, 0)" with the uuid part.
Since then I can usually work in my ubuntu.
Kindly look at the link
http://forums.fedoraforum.org/showthread.php?t=251148&page=2

and GIVE ME SOME SUGGESTION IF I have committed some error.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list