Trying to recover data on Raid 0

Booting, installing, newbie
Message
Author
CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

Trying to recover data on Raid 0

#1 Post by CindyJ »

I am a real novice (and an idiot for not backing up). I bought the Puppy Live CD (which I guess has several versions) and wanted to try to recover date from a Raid 0 sata drive(s). Not sure if this is possible with the Puppy programs. Only one hard drive shows up and the files on this are gibberish. I just want to be able to copy the data/pictures to a USB external drive. Computer won't boot up (without Puppy) and I get Sata timeout error. Hard drives seem to be working and disk diagnostics shows they are ok. Setups shows them not present. Computer repair companies around here don't seem to know much about the Raid striping (we live in a rural area). I read the other topics here on Raid 0 but didn't understand it.

Is there a somewhat simple way to do this or can offer suggestions. I don't want to pay $450 to $1000 for recovery but am willing to pay $100 or so if I can do this in house myself. Are there programs that can put these two drives back together if they have become confused or someway to figure out the problem? Would this problem correct itself if I could find another motherboard? Our computer is a Dell XPS600.

Any help would be greatly appreciated.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#2 Post by tempestuous »

Google tells me that the Dell XPS600 has an nForce4 Serial ATA RAID controller.
This is a host raid (bios raid) device, so under Linux you would need the dmraid utility.
Get dmraid from the second post in this forum thread -
http://www.murga-linux.com/puppy/viewtopic.php?t=60973

Boot your damaged XPS600 with a Puppy 5.1 or 5.2 CD, then you can install the dmraid dotpet from a USB thumb drive, or even connect to the internet and download the dmraid dotpet directly.
Now follow the dmraid instructions I provided in the other post.

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

Downloading dmraid

#3 Post by CindyJ »

Thanks for replying so quickly. I know this is probably a dumb question. I accessed the internet from the damaged computer and clicked download next to the dmraid section in your other post. It looks like it copied a filed called viewtopic.php onto the file section in Puppy. How do I get this to install. It doesn't open. When I go to Set Run Action, it says it isn't an application. Also, how do I get to the device-mapper module where I see the Code: line?

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#4 Post by GustavoYz »

Tempestous means that you should download and install the ".pet" file of that post.
Direct Link to the package 'dmraid-1.0.0.rc16.pet':
http://www.murga-linux.com/puppy/viewto ... h&id=33508

Then, you should read the further instructions of tempestuos thread about configuration...

Hope it helps.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#5 Post by tempestuous »

GustavoYz is correct, but let me elaborate further.
When you click on the download link for dmraid-1.0.0.rc16.pet, take note of where the browser downloads to - I think it's /root/my-documents, but that may depend on what browser you are using.

To install the dotpet, just browse to it with ROX, then single-click on it.
CindyJ wrote:how do I get to the device-mapper module where I see the Code: line?
The "Code:" lines are commands I want you to run in an xterminal, which is identified on the Puppy desktop as "console". This can also be launched from the menu as -
Menu > Utility > Urxvt terminal emulator

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

Having trouble loading program

#6 Post by CindyJ »

I'm still having trouble getting the program to load. I found where the file was saved in my root folder. It saves as viewtopic.php. When I left click once, it briefly flashes and then does nothing. Left clicking twice does nothing also. I tried saving it in another folder and it still doesn't load. Is there some other way of opening the file or loading the program? I've tried loading it several times from the other forum thread and it seems to save each time but I just can't get it to open.

Thanks for your help.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#7 Post by tempestuous »

CindyJ wrote:It saves as viewtopic.php.
That's not a valid download, and clearly not the dotpet in question.
You could consider downloading the dotpet on a different computer, with a different browser. You could even use Windows.
Your download must have this filename - dmraid-1.0.0.rc16.pet

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

Next problem

#8 Post by CindyJ »

Ok, I used an external hard drive and got the program loaded- yeah!! I was following the other forum thread and typed in dmraid -s. It looked like the drives were showing up - listed name, stripe, etc. I typed dmraid -a and got this message "dmraid: option requires an argument-- a" Do you know what this means?

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#9 Post by tempestuous »

CindyJ wrote:typed in dmraid -s. It looked like the drives were showing up - listed name, stripe, etc.
That's a good start.
CindyJ wrote:I typed dmraid -a and got this message "dmraid: option requires an argument-- a" Do you know what this means?
Bear with me CindyJ, I don't have a RAID system with which to test, myself.
I think the "-a" switch needs the "y" (yes) argument. Thus -

Code: Select all

dmraid -a y

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

Next Step

#10 Post by CindyJ »

Thank you I think this part worked. It says:
Raid set "nvidia_dciffcae" was activated.

However, after this it says
The dynamic shared library "libdmraid-events-nvidia.so" could not be loaded: libdmraid-events-nvidia.so: cannot open shared object file: no such file or directory. It says this three times for dciffcae, dciffcae1, dciffcae2.

I entered ls /dev/mapper

It came back in yellow on white - hard to read but it seems to be

Control nvidia_dciffcae nvidia_dciffcae1 nvidia_dciffcase2

Not sure if this means all is working or not. If it is working, I'm not sure about the next step. I'm guessing I type after code:
mkdir /mnt/raid
mount /dev/mapper/nvidia_dciffcae/mnt raid

If this is correct, what do I do next or where do I look for the data. Am I mounting all three things (the regular one and 1 and 2) or is it changing the 1 and 2 to just the regular dciffcae?

Do I need to be clicking on the Mount icon?

Thanks,
Cindy

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

More Info

#11 Post by CindyJ »

Ok, I have some more info. Two drives showed up at the bottom on the Puppy Program. one says dm-1 and the other dm-2. dm-1 is showing 39mb and dm-2 is showing 465g which was the hard drive space. Before we only had the one on there showing sda-1 at 39mb (along with the disk drive and external hard drive). I'm thinking I should mount the 465 one using the mount icon? I don't want to mess anything up so I'm going to wait to here from you before I do anything else.

Thanks,
Cindy

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#12 Post by tempestuous »

CindyJ wrote:The dynamic shared library "libdmraid-events-nvidia.so" could not be loaded: libdmraid-events-nvidia.so: cannot open shared object file:
That may be due to the somewhat non-standard location of the dmraid files I packaged. I will rework these locations shortly, but just press on for now.
CindyJ wrote:Two drives showed up at the bottom on the Puppy Program. one says dm-1 and the other dm-2.
That's interesting - Puppy's automount function can now see 2 new drives. There's a fair chance that just clicking on these icons will automount, but for now - DON'T. Let's do things by the book.
CindyJ wrote:I entered ls /dev/mapper
It came back in yellow on white - hard to read but it seems to be

Control nvidia_dciffcae nvidia_dciffcae1 nvidia_dciffcase2
OK, there appears to be 3 RAID partitions listed. We will try to mount them at /mnt/raid0, /mnt/raid1, and /mnt/raid2. After the "dmraid -a y" command, do this -

EDIT: commands amended, and confirmed to be correct.

Code: Select all

mkdir /mnt/raid0
mkdir /mnt/raid1
mkdir /mnt/raid2
mount /dev/mapper/nvidia_dciffcae /mnt/raid0
mount /dev/mapper/nvidia_dciffcae1 /mnt/raid1
mount /dev/mapper/nvidia_dciffcae2 /mnt/raid2
Take careful note of where the spaces occur.
If these commands seem to run successfully, browse with ROX into /mnt/raid0 /mnt/raid1 and /mnt/raid2 to see if there are files there.
Last edited by tempestuous on Thu 24 Feb 2011, 13:28, edited 2 times in total.

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

so far no luck

#13 Post by CindyJ »

Ok, I typed all that in. It came back and said:
mount: special device /dev/nvidia_dciffcae does not exist.

This came back for each one. I can click on the icons at the bottom and the mount screen comes up. However, when I look under the drive section it is showing the sda1 as before. Is there something else I need to do in the mount section to select these drives? Is this a bad sign?

Also, I'm afraid to turn the computer off until I've done all I can. When I turned it on this last time, it had some trouble booting up (not sure if this was a problem from the last session or a cd drive problem). I had to turn it off and on a couple of times to get it to completely boot up.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#14 Post by tempestuous »

Ah, sorry, this mount command is wrong -

Code: Select all

mount /dev/nvidia_dciffcae /mnt/raid0
it should be -

Code: Select all

mount /dev/mapper/nvidia_dciffcae /mnt/raid0
and so on, for the other two devices.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#15 Post by tempestuous »

And I just updated the dmraid dotpet, here -
http://www.murga-linux.com/puppy/viewto ... 111#459111
This new version has more Puppy-compatible file locations, and it also includes upgraded libdevmapper libraries.

Because of the revised file locations, though, a fresh boot to the Puppy CD would be well advised.

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

#16 Post by CindyJ »

I typed in the new command and received:

mount: /dev/mapper/nvidia_dciffcae already mounted or /mnt/raid0 busy

For the other two I just received does not exist. I'll download the new file sometime today and will shut down the computer and reboot. I'll save this session this time but I may need help if i need to delete a saved file or something and start over. Thanks for sticking with me and for your help.

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

#17 Post by CindyJ »

I downloaded the updated version of the program. I tried everything again and got the same results. It shows the one as busy or already mounted and the other two as not existing. I can't seem to do anything with the icons on the bottom that say dm-1 and dm-2. In the mount section they don't seem to show up. Is there anything else I could try?

Thanks,
Cindy

CindyJ
Posts: 11
Joined: Tue 25 Jan 2011, 23:11

#18 Post by CindyJ »

It worked!!! I had it typed in wrong. Anyway they mounted. I found the files, I can see the files and I'm copying them to my external hard drive.

I am so excited!!! I am so grateful to all your help. I really didn't think this was going to work. Other forums kept saying if you have a Raid 0 drive your data is probably lost without a lot of money to data recovery companies. Local computer repair shops couldn't help. I am still in shock that it actually worked!

I've gotten the kids pictures back and many many hours of work back. I can't thank you enough!! Thank you, thank you, thank you!!

Cindy

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#19 Post by tempestuous »

That's great CindyJ. We like good news stories on the Puppy forum.

Just to confirm - it was the manual commands which successfully mounted the RAID array, yes?
If so, was your data located in /mnt/raid0 or /mnt/raid1 or /mnt/raid2?

I would be surprised if Puppy's desktop automount function worked, because I don't imagine it contains logic to handle the special situation of bios-raid devices.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#20 Post by jpeps »

Nice work tempestuous!

Post Reply