[arch-general] mkinitcpio: mdadm_udev Hook

Thomas Bächler thomas at archlinux.org
Wed Oct 3 09:44:50 EDT 2012


Am 03.10.2012 14:41, schrieb Simon Perry:
> Hi,
> 
> I've just been re-installing a box, and saw that the wiki says regarding
> using the mdadm_udev hook:
> 
>> "This is the preferred method of mdadm assembly (rather than using the
>> above mdadm hook). "
> 
> I've tried to use the mdadm_udev hook, but the devices get named:
> 
>> normal md0 (/boot)                                      is md127
>> normal md1 (encrypted, then lvm with swap and / on it ) is md126
> 
> I found this out with "cat /proc/partitions" once my box failed to boot
> and dropped to the initramfs shell.
> 
> Seems pretty random, the first actual device isn't even the lowest
> number.

You need to create a file /etc/mdadm.conf. mdadm --examine --scan will
generate the right lines for you. This file will be added to the
initramfs and your names will be fine again.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20121003/81c0e416/attachment.asc>


More information about the arch-general mailing list