[HowTo] Getting data from raid0 Hi, now 2 months ago I was spoiled the LaCie NAS, so I had to catch up 1 TB of data (fortunately still work hard). The main obstacle is that this therapeutic consists of 2 500GB SATA2 drives in RAID0 (striping). The hardest thing is to make a raid on another machine (among other things, I never had to do with raid arrays before then). In
this page is the procedure I followed and it worked perfectly, but since it is to translate into English for the less "international".
- First we need to connect the disks to a PC (I would assume) and start with a live linux distribution (I used parted magic , but ubuntu is fine).
- open a shell and type fdisk-l . The output (result) of this command should be something like:
Disk / dev / sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors / track, 60801 cylinders Units = cylinders of
16065 * 512 =
8225280 bytes Disk identifier: 0x65764f20
Disk / dev / sda Does not Contain a valid partition table
Disk / dev / sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors / track, 60801
cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk
identifier: 0x00000000 Device Boot Start
End Blocks Id System
/ dev/sdb1
1125 1004031 5 Extended / dev/sdb2 126 60801 487379970 83 Linux
/ dev / sdb5 1 16 128457 82 Linux swap / Solaris
/ dev/sdb6
17 17 8001 83 Linux / dev/sdb7
18 18 8001 83 Linux / dev/sdb8 19 34 128 488 + 83 Linux
/ dev/sdb9 35 125 7309 26 83 Linux
which does not contain a disk partition (or are not valid), while the other contains multiple partitions. - mount the partition to 130 mb (sdb8 128,488 +), and with a text editor (in leafpad I used parted magic, but on ubuntu you can use gedit), open the file in / etc / mdadm.conf typing gedit path_mount / etc / mdadm.conf (replacing path_mount to the path where you mounted the partition) and copiamone the entire contents that should be about something like this: DEVICE
/ dev/sdb2 / dev / sda
ARRAY / dev/md0 level = linear num-devices = 2 UUID = 163218f3: 299b9ccc: 3c666c38: 60539313
- after you make sure you have mdadm installed (if not type sudo apt-get install mdadm ) edit the file / etc / mdadm / mdadm.conf (in my case this was not but it was just in / etc / mdadm.conf, then you see what you have ) with the command gedit / etc / mdadm / mdadm.conf and glue (basically) what you copied above. Note well that this is NOT the same file to point 3!
- now type mdadm - assemble / dev/md0 . If all went well past the next step, otherwise you will re-open the file in step 4 and change the first line like so:
DEVICE / dev/sda2 / Dev / sdb
probably because the two disks are swapped (but not a problem). Without this, repeat the command beginning of this paragraph. - now you're done, you can already enjoy the taste of victory and prepare the champagne =); type mount / dev/md0 path_che_volete and you can get back your beloved files.
If you work with ubuntu, you should always precede the command sudo
each line. Now I'm thinking
FreeNAS as an alternative NAS solution, and then probably in the next post there will be one that will speak of this distribution based on BSD, and I hope you do not have to use this guide as it would mean that your NAS has abandoned you, but in the case, I hope you find it useful!
Links: