[Bug 408580] [NEW] grub-probe fails for logical volume on GPT disk

Hunter oxothuk.maps at 4dv.net
Mon Aug 3 20:54:48 UTC 2009


Public bug reported:

Binary package hint: grub2

Environment as follows:
Intel DG45ID motherboard, Intel E7300 (Core 2 Duo) processor, 4GB Kingston RAM
Samsung 1.5 TB SATA hard drive.
Hard drive labeled with GPT and partitioned as follows:
      /dev/sda1 - 8MB, flag BIOS_GRUB
      /dev/sda2 - 1.4 TB, flag LVM
      /dev/sda3 - 8 GB, formatted as ext4

Installing from Ubuntu Karmic Alpha 3 (x86_64), alternate install CD

Scenario 1- 
a) Created volume group gptvg on physical volume /dev/sda2
b) Created logical volume lvroot on gptvg
c) Installed karmic onto lvroot (no separate /boot)
d) Final step (install grub) loads grub2 packages but fails to install grub on MBR (hd0).  Red error screen.
e) rebooted from karmic install disc, selected rescue mode.
f) executing grub-install manually returns an error from grub-probe "no mapping exists for (gptvg-lvroot).

Scenario 2-
a) Installed karmic onto /dev/sda3.  
b) This time grub is successfully loaded onto MBR, and reboot is successful.  Verified that contents of /dev/sda1 match what is in /boot/grub/core.img
c) grub-probe -t fs / is sucessful (print "ext2")
d) created logical volume lvdata, formatted as ext4, mounted as /data
e) grub-probe -t fs /data is NOT successful.  Same error as before ("no mapping exists for (gptvg-lvdata)")

Scenario 3-
a) Used different hard disk with pc (msdos) partitioning
b) Disk contains single partition (/dev/sda1)
c) created volume group pcvg using physical volume /dev/sda1
d) created logical volume lvroot
e) Installed Karmic on lvroot (no separate /boot)
f) grub is successfully loaded to MBR
g) system boots normally.
h) grub-probe -t fs / is successful (prints "ext2")

So to net this out:
a) grub2 works for / on LVM logical volume if standard MSDOS partitioning is used.
b) grub works for GPT partitioning if / is on a regular partition
c) grub2 does NOT work when the two are combined - GPT partitioning, boot partition on a LVM logical volume

Further info:
In scenario 2, grub-probe -v -t fs / shows that the message preceding the error is "opening (gptvg-lvroot)

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
grub-probe fails for logical volume on GPT disk
https://bugs.launchpad.net/bugs/408580
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list