Skip to content

Instantly share code, notes, and snippets.

@soyayaos
Created July 8, 2022 04:06
Show Gist options
  • Save soyayaos/d43f923fcbc62e145d98683342aeeb18 to your computer and use it in GitHub Desktop.
Save soyayaos/d43f923fcbc62e145d98683342aeeb18 to your computer and use it in GitHub Desktop.
mdadm raid rescue
mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb2
mdadm --assemble /dev/md1 /dev/sda3 /dev/sdb3
mount /dev/mapper/vg0-root /mnt
chroot /mnt /bin/bash
passwd root
sync
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment