[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub-pc mdadm root



On Fri, Jan 13, 2012 at 4:08 PM, Marc Auslander <marcausl@gmail.com> wrote:
>
> I'm still having no luck booting an mdadm 1.2 root.
>
> grub2 works - I get into the boot kernel and initram.  But when it
> comes to mount the real kernel, I fall into initramfs shell with a
> message that the kernel can't be found.  And it can't, because the
> raid root device hasn't been assembled.  (No raid devices exist in
> /dev).
>
> I can assemble it in initramfs shell using mdadm, so all the stuff is there.
>
> So I really need to see any grub.cfg stanza that actually works -
> mostly to see what vmlinuz parameters are needed.

It think that it's your initrd that needs some attention...

Anyway, from a wheezy install:

menuentry 'Debian GNU/Linux, with Linux 3.1.0-1-686-pae' --class
debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod raid
	insmod mdraid1x
	insmod part_msdos
	insmod part_msdos
	insmod ext2
	set root='(mduuid/ea8a8cde873a9900f6e13b3742a475ca)'
	search --no-floppy --fs-uuid --set=root e201fc61-91dd-4657-a703-0f7802df62c7
	echo	'Loading Linux 3.1.0-1-686-pae ...'
	linux	/boot/vmlinuz-3.1.0-1-686-pae
root=UUID=e201fc61-91dd-4657-a703-0f7802df62c7 ro
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.1.0-1-686-pae
}


Reply to: