grub2-mkconfig omits part_gpt module

Bug #451585 reported by LasVegas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: grub2

I have installed 9.10 netbook remix, beta on my EEE PC 1000. I've set this computer up to dual boot Ubuntu and OSX. When the /boot/grub/grub.cfg file is made it seems to set everything up for dual booting o.k., except the module "part_gpt" fails to be listed in the grub.cfg file. So the "insmod hfsplus" line is correctly listed, but it also needs the "insmod part_gpt" line to properly access the gpt disk partitions. The workaround I'm using (being no expert, however) is to insert the line "insmod part_gpt" at the top of the "macos)" section of the "/etc/grub.d/30_os-prober" script. I suspect the proper fix ought to be in the opaque "prepare_grub_to_access_device" utility of 30_os-prober, about which I know nothing.

The grub2 version is 1.97-beta3-1ubuntu8.

A separate issue, specific to the EEE PC 1000 perhaps but I'll mention it, is that the two disks are listed as "primary slave" and "secondary master". At bootup the BIOS sees "primary slave" as hd0 and "secondary master" as hd1. But Ubuntu/linux has "primary slave" as /dev/sdb and "secondary master" as /dev/sda. Since my OSX is on "secondary master", I have to manually change the "set root=(hd0,2)" line that is automatically configured by grub2 in /boot/grub/grub.cfg to "set root=(hd1,2)".

Getting perhaps more esoteric, I note that one standard location for the DSDT.aml file for OSX is in the root partition "/dsdt.aml" - I manually changed the "30_os-prober" script to set that correctly for my system.

With these workarounds (painfully sorted out...) grub2 is booting OSX fabulously!

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 451585] [NEW] grub2-mkconfig omits part_gpt module

Do you by any chance have one disk that uses GPT and another disk that
uses the traditional DOS partition table format? (A partition management
tool would probably tell you, if you don't know offhand - e.g. 'sudo
parted -l').

Revision history for this message
LasVegas (lasvegas) wrote :

This is correct - parted -l lists /dev/sda (and SSD) as a gpt partition table and /dev/sdb (also an SSD) as an msdos partition table.

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (10.5 KiB)

This bug was fixed in the package grub2 - 1.98+20100614-1ubuntu1

---------------
grub2 (1.98+20100614-1ubuntu1) maverick; urgency=low

  * Resynchronise with Debian:
    - Add btrfs probing support, currently only in the single-device case
      (LP: #450260).
    - Insert partmap module in prepare_grub_to_access_device to handle
      cross-partmap setups (LP: #451585).
    - Fix verbose error output when device-mapper isn't supported by the
      running kernel (LP: #526045).
    Remaining changes:
    - Adjust for default Ubuntu boot options ("quiet splash").
    - Default to hiding the menu; holding down Shift at boot will show it.
    - Set a monochromatic theme for Ubuntu.
    - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
      recovery mode, quiet option, tweak how memtest86+ is displayed, and
      use UUIDs where appropriate.
    - Fix backslash-escaping in merge_debconf_into_conf.
    - Remove "GNU/Linux" from default distributor string.
    - Add crashkernel= options if kdump and makedumpfile are available.
    - If other operating systems are installed, then automatically unhide
      the menu. Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
      if available to check whether Shift is pressed. If it is, show the
      menu, otherwise boot immediately. If keystatus is not available, then
      fall back to a short delay interruptible with Escape.
    - Allow Shift to interrupt 'sleep --interruptible'.
    - Don't display introductory message about line editing unless we're
      actually offering a shell prompt. Don't clear the screen just before
      booting if we never drew the menu in the first place.
    - Remove some verbose messages printed before reading the configuration
      file.
    - Suppress progress messages as the kernel and initrd load for
      non-recovery kernel menu entries.
    - Keep the loopback file open so that subsequent changes to the "root"
      environment variable don't affect it.
    - Change prepare_grub_to_access_device to handle filesystems
      loop-mounted on file images.
    - Ignore devices loop-mounted from files in 10_linux.
    - Show the boot menu if the previous boot failed, that is if it failed
      to get to the end of one of the normal runlevels.
    - Handle RAID devices containing virtio components.
    - Don't generate /boot/grub/device.map during grub-install or
      grub-mkconfig by default.
    - Store grub-pc/install_devices as persistent device names under
      /dev/disk/by-id/.
    - Change priority to optional to match the priority of grub.
    - Don't display "GRUB loading" unless Shift is held down.
    - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
      our backport of the grub-doc split.
    - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
    - Look for .mo files in /usr/share/locale-langpack as well, in
      preference.
    - Don't run /etc/grub.d/README, even if it somehow ended up being
      executable.
    - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
    - Probe all devices in 'grub-probe --target=drive' if
      /boot/grub/device.map is missing.
    - Adjust hostdisk id f...

Changed in grub2 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.