LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Repair Filesystem after deleting RAID (https://www.linuxquestions.org/questions/linux-newbie-8/repair-filesystem-after-deleting-raid-799945/)

Zahir76 04-04-2010 10:05 AM

Repair Filesystem after deleting RAID
 
Playing with the Box, I deleted a Raid-0 partition intentionally, saved it, and reboot drops me to (Repair Filesystem#) prompt. I notice during boot-up that the box didn't find /dev/md0, which is expected.

So what's the recovery procedure, since I can't edit #/etc/fstab, permission denied.

#fdisk -l
shows all other partitions.

Not much familiar with fsck/e2fsck, yet like to give it a try.
Anyone who'd shed some light?

Thanks, all Linux People.

rayfordj 04-04-2010 10:32 AM

This should take care of not being able to modify /etc/fstab:
Code:

mount -o remount,rw /
As for the RAID0 recovery, I guess it really depends on how you deleted it and what details you have about its construction, but I suspect, while I've never attempted this myself, there is a facility within mdadm to allow you to lay down the information again if you have all the specifics.

Hope this helps. :study:

EDIT: If all you did was delete the partition, it may be as simple as recreating the partition with the same start and end cylinder and setting the partition type to: fd Linux raid auto

Zahir76 04-05-2010 05:30 AM

Thanks, got back to the prompt using the command you mentioned. Nope, didn't keep any of the specifics just deleted from #fdisk /dev/sda, I guess 'mdadm' or 'fd Linux raid auto', gives some more insight, which I hope to check later on. But thanks again. :) for now.

#mount -o remount,rw /

Thanks, all Linux People.


All times are GMT -5. The time now is 10:03 AM.