Recover Soft Raid on Ubuntu

Experienced a power failure and the Raid1 ubuntu system I’d set up with soft raid didn’t come back up; the boot screen had a message that

/dev/md0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
mountall: fsck / [466] terminated with status 4
mountall: Filesystem has errors: /

So I booted into rescue mode with the install CD and tried to run

e2fsck /dev/md0

got a scary message that there WILL be SEVERE damage from running e2fsck on a mounted partition.
found a post that said to mount as read only, as follows:
mount -o remount,ro /dev/md0

ran e2fsck and got the same warning but proceeded with apparent good success!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *