Restore mdadm

From Karmaking
Revision as of 19:47, 5 April 2012 by 91.65.245.180 (talk) (Created page with "<tt> mv /etc/mdadm/mdadm.conf /root/ mdadm -Escpartitions > /etc/mdadm/mdadm.conf mdadm -A /dev/mdX </tt> Once the system is up, compare the output of <tt> /usr/share/mdadm/mk...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

mv /etc/mdadm/mdadm.conf /root/

mdadm -Escpartitions > /etc/mdadm/mdadm.conf

mdadm -A /dev/mdX

Once the system is up, compare the output of /usr/share/mdadm/mkconf with the contents of /etc/mdadm/mdadm.conf and update the file with the data from the command output.

When done, run update-initramfs -u and now the system should boot.