broken raid 1 mirror,

Soldato
Joined
17 Jul 2008
Posts
7,391
I have 2 drives from a nas box that were in a raid 0 mirror.

the drives were either ext2 or 3,

the NAS box is borked and I think also one of the drives.

I would expect to be able to read the drives from ubuntu (or a windows ext drive reader) however both ubuntu and windows can see there are partitions on teh drive but say its a broken raid0 and refuse to read teh data

do I need to run some utility to get the OS to read the drive (maybe to remove the raid0 info so it jsut treats it as a single drive)

thanks
 
if it's raid1 then you should be able to access directly from Ubuntu, although you may have to mount it manually as the system may be confused by the previous raid usage. All the following should be done as root.

Assuming that the disk is visible as /dev/sdb once you have plugged it in:

fdisk -l /dev/sdb

to get you a list of partitions on the disk. You probably find that the whole disk is one single partition, we'll refer to that as #.

Then:

mkdir /recovery
mount -t ext2 -o ro /dev/sdb# /recovery

The filesystem should then be accessible under /recovery in readonly mode so any data can be copied off.

This does assume that the NAS was using standard ext2/ext3 format for the filesystem.
 
Back
Top Bottom