On Mon, Feb 10, 2014 at 12:33 PM, Oleg <[email protected]> wrote: > Hi, all. > > I have the problem with an installing grub on a mdraid device. > > I install a new system with a help of my bootable usb flash. I have x86 system > on the usb flash and want to install a x86_64 system on a hdd. My steps: > > 1. Boot from the usb flash (/dev/sda); > 1.1. Create a raid device on partitions (prepared with fdisk) with: > > mdadm -C /dev/md0 -l1 -n2 --bitmap=internal /dev/sdb1 /dev/sdc1 > 1.2. Make a raid partition and a fs on it: > > fdisk /dev/md0 > mkfs.ext4 /dev/md0p1 > 1.3. Install a system: > > mount /dev/md0p1 /mnt > debootstrap --arch=amd64 --foreign --include=grub2,mdadm wheezy /mnt > http://ftp.debian.org/debian > 1.4. Install grub: > > grub --modules="part_msdos raid mdraid1x" --root-directory=/mnt /dev/sdb > grub --modules="part_msdos raid mdraid1x" --root-directory=/mnt /dev/sdc >
Upstream does not have this command, you need to ask your distribution. Also in general grub2 is intelligent enough to figure out what modules it needs; you need to have very good reasons and understanding of grub internals to manually specify them. Try using grub-install --boot-directory=/mnt/boot /dev/sdb grub-install --boot-directory=/mnt/boot /dev/sdc if it does not work, full output of grub-install --debug --boot-directory /mnt/boot /dev/sdb would be interesting. > 2. Boot from hdd and get: > > error: no such disk. > Entering rescue mode... > grub rescue> > > 2.1. I do insmod part_msdos, raid, mdraid1x. But when i do insmod normal i > get: > > error: no such disk. > > Now as a workaround i install a system (x86_64) to a different single disk and > booted from it i install a system (x86_64) on a mdraid and do grub-install > from > a chroot. And this is work. But this is a strange method. > > Can anyone point me to the right section of the > http://www.gnu.org/software/grub/manual/html_node/index.html > to resolve my problem? > > Thanks. > > _______________________________________________ > Help-grub mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-grub _______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
