Project

General

Profile

Bug #44

Recovery of a Partially Formatted RAID1 NAS Hard Drive

Added by Daniel Curtis over 11 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
-
Target version:
-
Start date:
01/16/2013
Due date:
% Done:

100%

Estimated time:

Description

In the event of a hard disk failure in a RAID1 setup a rescue environment must be setup. I used D.E.F.T., but any linux with mdadm will suffice. For best practices, make sure to ALWAYS LOAD FROM RAM.

This will only work in a RAID1 (mirrored) array; RAID0, RAID5, RAID6, and JBOD are structured differently. Run through steps as followed.

1. Boot into Linux and start a terminal session. (Start->Accessories->Terminal) (NOTE: must be root)

2. Run the command:

mdadm --assemble --scan --run

This will scan for RAID partitions, assemble previously created arrays, and run the array.
NOTE: The md partitions listed by this command will be the partitions you need to mount. The Largest partitions in usually the Data partition

UPDATE: I could not get the RAID array to mount properly, so recovery could not happen. I managed to ultimately fix this by running e2fsck on the mdPartition# like so:

e2fsck -y /dev/md2

3. Next the command:

mkdir /mnt/folder

This will make a directory in the /mnt folder that you name, as disignated by folder.
NOTE: if md partition is /dev/md2 then make the directory /mnt/md2

4. Next the commant:

mount /dev/mdPartition# /mnt/folder

This will mount the partition to the directory that was specified earlier.

5. Open a file manager Start->Accessories->File Manager and navigate to /mnt/folder

Successful mounting will display stored data.

No data to display

Also available in: Atom PDF