Fails to install grub when (partitioned?) md array is present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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@
/dev/md0p1: UUID="a9c7370f-
/dev/sdc1: UUID="4EF8EC4AF
/dev/sdc2: UUID="c1d654eb-
/dev/sdc5: UUID="7e0bab34-
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@ubuntu:/# dpkg-reconfigure grub-pc
/usr/
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
/usr/
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
/usr/
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
Futher futile attempts resulted in various messages:
root@ubuntu:/# grub-install --recheck /dev/md0 --modules="mdraid raid"
/usr/
/usr/
/usr/
root@ubuntu:/# grub-install --recheck /dev/sdc --modules="mdraid raid"
/usr/
/usr/
/usr/
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@ubuntu:/# cat boot/grub/
(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
ProcVersionSign
SourcePackage: ubiquity
Uname: Linux 2.6.32-13-generic x86_64
summary: |
- Fails to install grub when md array is present + Fails to install grub when (partitioned?) md array is present |
affects: | grub-installer (Ubuntu) → grub2 (Ubuntu) |
I come to the same error when I try to install a system with debootstrap. After debootstrap I mount /proc, /dev and /sys and chroot in the system (like there https:/ /wiki.ubuntu. com/Grub2# Recover% 20Grub% 202%20via% 20LiveCD).
than:
root@rescue:/# grub-install --recheck --no-floppy --modules="mdraid raid" /dev/sda1 grub-probe: error: no mapping exists for `md1'. grub-probe: error: no mapping exists for `md1'. grub-probe: error: no mapping exists for `md1'.
/usr/sbin/
/usr/sbin/
/usr/sbin/
You attempted a cross-disk install, but the filesystem containing /boot/grub does not support UUIDs.
Any Help there?