mount /dev/sdaX /media
mount -o bind /dev /media/dev
mount -o bind /proc /media/proc
mount -o bind /sys /media/sys
chroot /media
mdadm -A /dev/md0 /dev/sdaX /dev/sdbX
mdadm -A /dev/md1 /dev/sdaX /dev/sdbX
mount /dev/mdX /media
/dev/md1 / ext3 acl,user_xattr,usrquota,grpquota 1 1/dev/md0 swap swap pri=42 0 0devpts /dev/pts devpts mode=0620,gid=5 0 0proc /proc proc defaults 0 0sysfs /sys sysfs noauto 0 0