[Bug 528670] Re: Fails to install grub when (partitioned?) md array is present
Launchpad Bug Tracker
528670 at bugs.launchpad.net
Wed Jan 25 13:26:45 UTC 2012
*** This bug is a duplicate of bug 527401 ***
https://bugs.launchpad.net/bugs/527401
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: grub2 (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/528670
Title:
Fails to install grub when (partitioned?) md array is present
Status in “grub2” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: ubiquity
Hiya,
I'm trying to install Lucid A3 on my system, which has a (maybe)
nonstandard partition layout.
2x1T drives in a raid0 array, assembled in the live environment with mdadm --assemble --scan
1x500G drive, split into NTFS, ext4 and swap partitions, like this:
ubuntu at ubuntu:~/m$ blkid
/dev/md0p1: UUID="a9c7370f-f9eb-4d31-bc7b-7fb3def0a4f8" TYPE="ext4"
/dev/sdc1: UUID="4EF8EC4AF8EC323F" TYPE="ntfs"
/dev/sdc2: UUID="c1d654eb-a3ba-42b7-a1b7-0a8a34b05863" TYPE="ext4"
/dev/sdc5: UUID="7e0bab34-637c-42de-a1c9-165a348ae78d" TYPE="swap"
I installed as normal with Ubiquity, selecting /dev/md0p1 as / and
/dev/sdc5 as swap. I did not format /dev/md0p1, as this contains my
user data. The installer failed to install grub. I elected to continue
without a boot loader and to try and fix this myself.
Installing grub2 in a chroot results in:
root at ubuntu:/# dpkg-reconfigure grub-pc
/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.
/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.
/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.
Futher futile attempts resulted in various messages:
root at ubuntu:/# grub-install --recheck /dev/md0 --modules="mdraid raid"
/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'.
root at ubuntu:/# grub-install --recheck /dev/sdc --modules="mdraid raid"
/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.
I then attempted to fall back to grub, but switched to grub2 in order
to obtain more logs for this bug report, at which point grub2
installed successfully. I presume this is due to the device.map that
the postinst of grub caused to be created:
root at ubuntu:/# cat boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
So I guess that md support with grub2 isn't quite there yet :)
Iain
ProblemType: Bug
Architecture: amd64
Date: Fri Feb 26 19:48:54 2010
DistroRelease: Ubuntu 10.04
LiveMediaBuild: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100215)
Package: ubiquity 2.1.19
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
SourcePackage: ubiquity
Uname: Linux 2.6.32-13-generic x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/528670/+subscriptions
More information about the foundations-bugs
mailing list