LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   may my hd be recoverable? (https://www.linuxquestions.org/questions/linux-hardware-18/may-my-hd-be-recoverable-552822/)

Eppo 05-10-2007 03:52 AM

may my hd be recoverable?
 
the other day one of the hd in my raid array began making a clicking noise, and i wasnt able to write to the drive. i was going to just copy the stuff over to my other computer, but i couldnt do that either. then when i restarted the computer, the drive wasnt even recognized. the drives are disconnected as of now, and only the 1 hd with the os on it is running. of course that raid is a raid 0, it has all my mp3 and other stuff i would like to get my hands on.
i'm just wondering if any of you have been in a similar situation.
hopefully i can recover from this, then i'm going to build a raid5 so i can have some peace of mind that i wont lose all my files.
thanks
joe

carl0ski 05-10-2007 04:33 AM

Quote:

Originally Posted by Eppo
the other day one of the hd in my raid array began making a clicking noise, and i wasnt able to write to the drive. i was going to just copy the stuff over to my other computer, but i couldnt do that either. then when i restarted the computer, the drive wasnt even recognized. the drives are disconnected as of now, and only the 1 hd with the os on it is running. of course that raid is a raid 0, it has all my mp3 and other stuff i would like to get my hands on.
i'm just wondering if any of you have been in a similar situation.
hopefully i can recover from this, then i'm going to build a raid5 so i can have some peace of mind that i wont lose all my files.
thanks
joe

your not going to like this but unless you can get the second drive to stay running long enough to copy you've lost everything.

basically every file is divided into 64Kbyte pieces every second one is written to a seperate disk.

even if you get anything back from a single drive you''l get

the first 64kb third 64kb fifth 64kb etc

you won't get any full use able files.

excepetion of course is files smaller than 64Kb you can be lucky.

Eppo 05-10-2007 04:49 AM

yah i know, i guess i'll play around and see what i can do. i've heard good things about spinrite, i'm going to see if i can get the drive to be recognise, and see if i can ghost it, or run spinrite on it. but i'm looking for some other ideas from you guys. basically i just want to get the info off it and ghost it onto another drive, get the raid working, then i'm going to copy all of the files onto a raid5. just want this to be a learning experience that wont cost me all my files.:cry:

jschiwal 05-10-2007 05:01 AM

How many drives made up the array. Raid 0 isn't really raid. One drive is appended to the other. You might be able to mount the first drive if it isn't the one that was bad. I'm not sure of that however. They do sing the praises of SpinRight on Security Now, but Steve Gibson is the host, so that is what you would expect.

You might want to check with an email or phone call to make sure that a linux drive that is a part of a raid 0 array can be repaired.

theYinYeti 05-10-2007 06:27 AM

You might get your data back with
http://www.garloff.de/kurt/linux/ddrescue/
or
http://www.gnu.org/software/ddrescue/ddrescue.html
(those are two different products despite the similar names)

Yves.

lambchops468 05-10-2007 09:36 PM

Use System REscue CD
 
You can burn system rescue CD from
www.sysresccd.org
its a good lightweight live cd to rescue your system. It has ddrescue.

update

I forgot to say that if I were you and the files weren't valuable to me, and I had a backup, I would use ddrescue to copy the broken hard drive bit for bit to another, of the same size or larger hard drive. That way, the new drive will have the same exact data form as the old HDD and act the same way, as if nothing ever happened.

The risky thing about this is that copying that much data takes a long time, and having a hard drive that's failing and attempting to ddrescue it is very very nerveracking.

if you try this (remember, it's risky), use the bs=500k or some other block copy size to speed up the operation. (limited by your memory amount)

Quakeboy02 05-10-2007 09:53 PM

Since it's a RAID0, it's unlikely that you'll get anything usable off of it unless you can get that drive back up for a bit.. Like carl0ski points out, the data is striped and every other chunk (64K generally) is on a different drive. If you can get the failed drive running long enough to use ddrescue to make a copy, then you can get it back. Otherwise, sorry; it's all gone.

urgeNtly 05-10-2007 09:55 PM

Trying to mount a directory on a server called server2.

mount -t nfs 192.168.1.20:/woot/one /one
mount to NFS server '192.168.1.20' failed: server is down
mount -t nfs server2:/woot/one /one
mount: can't get address for server2

why?

mr.v. 05-11-2007 12:12 AM

I had good luck recovering a dead drive using spinrite but it costs a perty penny...

Eppo 05-11-2007 02:30 AM

i had a few minutes to play around with it yesterday morning. it only makes that clicking noise when it starts up, lets say for about 30 seconds. after the 30 seconds it sits just like a normal hd, and it is spinning. but the problem is that during that 30 seconds is when the bios gets the info from the drive, so it never finds it. i through the drive in a windows box, and it doesnt recognise the drive, and windows doesnt see it either. i might open up the top to see whats going on. or maybe there is a program i can use that will actually look to detect drives after the os is loaded. guess i'll have to play around with different programs and see what i can get. would be nice if i could ghost that drive.

mr.v. 05-11-2007 08:38 AM

Why not then just enter bios when the computer starts up to let it sit there for a while until the drive spins up okay? Then, exit bios and let it continue on its merry way...

lambchops468 05-11-2007 09:30 AM

Or you could use an old AT PSU at the same time, with your broken drive connected to that....Maybe that would work (because At PSU's have a power switch that actually turns on power to the molex connectors)

carl0ski 05-11-2007 08:41 PM

Quote:

Originally Posted by jschiwal
How many drives made up the array. Raid 0 isn't really raid. One drive is appended to the other. You might be able to mount the first drive if it isn't the one that was bad. I'm not sure of that however. They do sing the praises of SpinRight on Security Now, but Steve Gibson is the host, so that is what you would expect.

You might want to check with an email or phone call to make sure that a linux drive that is a part of a raid 0 array can be repaired.

your thinking to LVM or JBOD
Raid 0 splits up the file system every chunk
the file system is divided into two right from the beginning.
it interlaces one disk to the next.

It does not use one disk till its full and then move to the next


All times are GMT -5. The time now is 09:18 AM.