Bug#575429: grub-pc: The filesystem containing /boot/grub does not support UUIDs

Frederic MASSOT frederic at juliana-multimedia.com
Thu Mar 25 18:38:13 UTC 2010


Package: grub-pc
Version: 1.98-1
Severity: normal


Hi,

On a new machine, I wanted to test the daily-build (Monday 22) of Squeeze installer
for amd64. 

The machine has 2 SATA hard drives, are mounted in RAID1 soft by Linux.
I have a RAID1 partition "md0" to "/boot", the root is mounted on a logical volume,
it uses the same partition RAID1 "md1".

The installation is successfully completed, except for installing the boot loader
grub2 (version 1.98-1).

Through the console, I have this:

# grub-install --recheck --no-floppy --modules="mdraid raid" /dev/md0
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
/usr/sbin/grub-setup: error: no mapping exists for `md0'.


# grub-install --recheck --no-floppy /dev/sda
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.


# grub-install --recheck --no-floppy --modules="mdraid raid" /dev/sda
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
You attempted a cross-disk install, but the filesystem containing
/boot/grub does not support UUIDs.


# grub-install --recheck --no-floppy --modules="mdraid raid
search_fs_uuid" /dev/sda
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
/usr/sbin/grub-probe: error: no mapping exists for `md0'.
You attempted a cross-disk install, but the filesystem containing
/boot/grub does not support UUIDs.


There is this in the file "/boot/grub/device.map":
(hd0)	/dev/sda
(hd1)	/dev/sdb


The matching of UUID and devices is good:

# blkid
/dev/sdb1: UUID="248d7222-1d79-dd61-2766-b0f63e142f70" LABEL="eole2:0"
TYPE="linux_raid_member"
/dev/sdb2: UUID="76644d49-c5f7-9ab6-fe74-81c94fa9616e" LABEL="eole2:1"
TYPE="linux_raid_member"
/dev/mapper/VG0-swap: UUID="88469241-b7d3-4e85-97b5-d33a56bfd2fd"
TYPE="swap"
/dev/sda1: UUID="248d7222-1d79-dd61-2766-b0f63e142f70" LABEL="eole2:0"
TYPE="linux_raid_member"
/dev/sda2: UUID="76644d49-c5f7-9ab6-fe74-81c94fa9616e" LABEL="eole2:1"
TYPE="linux_raid_member"
/dev/md0: UUID="157deef1-ea8f-4611-9021-5e2fabcd84cf" TYPE="ext3"
/dev/md1: UUID="rNyfNa-5mXA-Ne77-Z15k-KpWA-kFzL-nZbp3h" TYPE="LVM2_member"
/dev/mapper/VG0-root: UUID="6e5c349c-d880-4329-a15c-e192aee4954a"
TYPE="ext4"


The file "/etc/fstab" (created by installer) contains:
/dev/mapper/VG0-root    /    ext4    errors=remount-ro    0    1

UUID=157deef1-ea8f-4611-9021-5e2fabcd84cf    /boot    ext3    0    2


The command "grub-probe" is no more reassuring:
# grub-probe -d /dev/md0 -tabstraction
grub-probe: error: no mapping exists for `md0'.


I read the bug report #554790 on Grub2 and UUID, but it is February.

Does Grub2 (version 1.98-1) manages UUIDs?

I was not able to set Grub2 with the "/dev/disk/by-id".


Regards.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/hda /cdrom iso9660 ro,relatime 0 0
/dev/VG0/root / ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/md0 /boot ext3 rw,nosuid,nodev,noexec,noatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]         1.5.28     Debian configuration management sy
ii  grub-common                   1.98-1     GRand Unified Bootloader, version 
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  ucf                           3.0025     Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)

-- debconf information:
  grub-pc/kopt_extracted: false
  grub2/kfreebsd_cmdline:
* grub-pc/install_devices:
  grub-pc/postrm_purge_boot_grub: false
* grub2/linux_cmdline:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list