I used mkfs.exfat /dev/md0p1
by mistake, and killed my RAID 1 instead of formatting a micro SD card. Very dumb, I know. How can I undo this colossal mistake? I'm reasonably confident that the two hard drives that used to make up the RAID are still intact, since all I have done is run pointless mdadm
and testdisk
checks since The Incident. It's just that the MD file system has been ruined and/or made inaccessible ever since I told the machine to make it exfat
.
I'm obviously happy to post the results of any checks that anyone needs to see to help with this, but it is a little tricky since I can only run the damaged machine in "recovery root shell" mode--I just have to retype any output on the tablet I'm using to post this question.
EDIT to add a few details:
Ubuntu 14.04 is installed on a separate hard disk. The RAID was mounted as my /home
directory.
\home
from your latest backup. (You did make a backup, right?) To save having to retype any output on your tablet, boot your system from a live media which will allow you to copy and paste output rather than retyping which could lead to errors and further confusion. Note that RAID 1 is a mirror with both drives containing the same data. Running Testdisk on the individual drives might yield results.