Sign in with
Sign up | Sign in
Your question

How to move my RAID 0 HDDs to check for failure

Last response: in Storage
Share
March 13, 2010 11:07:47 AM

I think my hard drive failed the other day (Not the computer I'm using to write this.). When I turned on the computer I wouldn't to get to choose my OS (dual boot Vista/7) i just had a blinking cursor in the top left hand side of the screen. Then it had some code and said 'Error 15: File not found" then it took me to a red screen telling me to run with or withour RILS Loader (I dont think the letters are actually right but something along those lines) but eithehr option i choose just takes me back to the blinking cursor screen. I don't know if this is a hard drive fail or not so i want to test but i'm running with 2 1TB harddrives in RAID 0 and I don't have a computer in my house that supports RAID.

Can someone tell me what my problem is and what i can do to fix it I'm kind of worried about my computer.

Sorry about the long story but Thank You
a c 127 G Storage
March 13, 2010 11:20:34 AM

Since you run RAID0, i assume you have a full backup.

You can delete the RAID and restore the backup, starting fresh.

You can also take out the disks and fix them manually in another system.

If you still need the data on the disks, you should connect them to another system without RAID and boot up with Ubuntu, then access the RAID and copy the data off via the network.

So, do you want to fix your RAID or do you want to recover your data?
m
0
l
March 13, 2010 12:13:26 PM

I actually do not have any sort of backup. (Obvious place for problems...) I was planning on recovering the data using another computer but does the computer have to be RAID capatable to fix them? Because at the moment I do not have access to any computer with RAID capatable.

Another idea I had was to put the HDDs into USB housings and fixing them as if they were external HDDs but I dont know of any housings that support RAID. Do you know of any?
m
0
l
Related resources
a c 127 G Storage
March 13, 2010 12:26:35 PM

You can only perform the Ubuntu-recovery on NON-RAID SATA ports. Ubuntu will use software RAID to create the virtual RAID-array. You can then copy the contents of the RAID to another harddrive (local or via the network).

Running RAID0 without a backup does imply your data is not worth a dime. If that's not true, you really should consider buying a 1.5TB HDD solely for backups.
m
0
l
March 13, 2010 1:14:16 PM

Thank you very much kind sir, but I have one more question. Only my main computer has SATA ports. My other 2 are older computers that only have IDE but they do have PCI slots. If i were to get a PCI SATA controller and hook up the HDDs through that would the Ubuntu recovery work?

And later today I am going out to get a 2TB external HDD for backup.
m
0
l
a c 127 G Storage
March 13, 2010 2:45:58 PM

If the PCI card is supported under Linux (most are) then yes.

Though you may wish to opt for PCI-express x1 slots, unless your older systems don't have those as well - likely if they also lack SATA. In that case, a simple PCI SATA would work.

But you can also use your own computer. You only need a CD/DVDROM drive (on PATA?) and the two disks on SATA. Then disable RAID mode in BIOS and boot into Ubuntu, you should be able to access the data on the RAID - unless the filesystem is damaged also.

In that last case, buy a single 2TB drive. Ubuntu can byte-copy the contents of the 2x1TB RAID (with damaged NTFS filesystem) to the 2TB RAID. So now you don't rely on RAID anymore, and can use Windows utilities to recover your data; who do not need to support RAID. Note that this would require 3 SATA ports - unless you connect the new 2TB drive by USB.
m
0
l
March 13, 2010 3:31:33 PM

Thank you so much! I think I have all the information I need now. I will post back here if somethinig goes wrong.

Again, Thank you!
m
0
l
March 14, 2010 10:11:08 PM

Ugh.. Another problem. I have Ubuntu running from a LiveUSB, I turned my HDDs from RAID mode to SATA mode from the BIOS, and both of the HDDs show up in my BIOS but they don't show up in Ubuntu. What could be wrong?
m
0
l
March 15, 2010 12:52:20 AM

What could be wrong is you're an idiot... RAID 0 is for losers, welcome to the club!
m
0
l
March 15, 2010 1:19:04 AM

marcellis22 said:
What could be wrong is you're an idiot... RAID 0 is for losers, welcome to the club!


So does this mean I can't recover my data myself?
m
0
l
a c 127 G Storage
March 15, 2010 1:39:08 AM

Just ignore his unhelpful remark.

You said your HDDs do not show up under Ubuntu. Did you try looking in Places -> Home, then on the left side you should see ".... Filesystem" If you click those, does any of these contain your RAID-data?

If not, can you give me the output of:
# simple one-one output or no ouput at all if no software-RAID device was created
ls -l /dev/md*
ls -l /dev/sd*
dmesg | grep sd

# do not need output of the following command
# will install mdadm
sudo apt-get install mdadm

# send output of:
mdadm --detail /dev/md0

If those give no output, you may have to manually create your raid. In that case you would need to supply the stripesize of your RAID0 array. Do you know it?
m
0
l
March 15, 2010 9:45:06 AM

sub mesa said:
Just ignore his unhelpful remark.

You said your HDDs do not show up under Ubuntu. Did you try looking in Places -> Home, then on the left side you should see ".... Filesystem" If you click those, does any of these contain your RAID-data?

If not, can you give me the output of:
# simple one-one output or no ouput at all if no software-RAID device was created
ls -l /dev/md*
ls -l /dev/sd*
dmesg | grep sd

# do not need output of the following command
# will install mdadm
sudo apt-get install mdadm

# send output of:
mdadm --detail /dev/md0

If those give no output, you may have to manually create your raid. In that case you would need to supply the stripesize of your RAID0 array. Do you know it?


I'm sorry but I don't know how to do that output thing (new with Linux). And I have my stripesize written down somewhere I would just have to find it
m
0
l
a c 127 G Storage
March 15, 2010 11:28:43 AM

Commands are typed in on the Terminal; much like Command Prompt in Windows. Click the menu Applications, then click Accessories, click Terminal.

That opens a text window you can enter commands in. So you start with the first command:

ls -l /dev/md*

type exactly as shown. When you press enter, you get text output; i need to have the output of each of those commands listed in my previous post. Except the output of the command "sudo apt-get install mdadm" because that's just for installing the "mdadm" application.

Finding your stripesize is quite important, i hope you can find it. That would make it easier to recover your data if you have a broken array.
m
0
l
March 15, 2010 7:00:02 PM

sub mesa said:
Commands are typed in on the Terminal; much like Command Prompt in Windows. Click the menu Applications, then click Accessories, click Terminal.

That opens a text window you can enter commands in. So you start with the first command:

ls -l /dev/md*

type exactly as shown. When you press enter, you get text output; i need to have the output of each of those commands listed in my previous post. Except the output of the command "sudo apt-get install mdadm" because that's just for installing the "mdadm" application.

Finding your stripesize is quite important, i hope you can find it. That would make it easier to recover your data if you have a broken array.


ok I don't really know what this means, I just copied everything in the Terminal after typing what you gave me.

Quote:
ubuntu@ubuntu:~$ # simple one-one output or no ouput at all if no software-RAID device was created
ubuntu@ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu@ubuntu:~$ ls -l /dev/sd*
brw-rw---- 1 root disk 8, 0 2010-03-16 04:52 /dev/sda
brw-rw---- 1 root disk 8, 1 2010-03-16 04:52 /dev/sda1
brw-rw---- 1 root disk 8, 16 2010-03-16 04:52 /dev/sdb
brw-rw---- 1 root disk 8, 17 2010-03-16 04:52 /dev/sdb1
brw-rw---- 1 root disk 8, 32 2010-03-16 04:52 /dev/sdc
brw-rw---- 1 root disk 8, 33 2010-03-16 04:52 /dev/sdc1
ubuntu@ubuntu:~$ dmesg | grep sd
[ 63.778087] sd 10:0:0:0: Attached scsi generic sg0 type 0
[ 63.781164] sd 10:0:0:0: [sda] 1952151552 512-byte logical blocks: (999 GB/930 GiB)
[ 63.783245] sd 8:0:0:0: Attached scsi generic sg2 type 0
[ 63.783512] sd 10:0:0:0: [sda] Write Protect is off
[ 63.783515] sd 10:0:0:0: [sda] Mode Sense: 23 00 10 00
[ 63.783516] sd 10:0:0:0: [sda] Assuming drive cache: write through
[ 63.783819] sd 9:0:0:0: Attached scsi generic sg3 type 0
[ 63.785073] sd 9:0:0:0: [sdc] 1465149168 512-byte logical blocks: (750 GB/698 GiB)
[ 63.785580] sd 8:0:0:0: [sdb] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)
[ 63.785702] sd 9:0:0:0: [sdc] Write Protect is off
[ 63.785704] sd 9:0:0:0: [sdc] Mode Sense: 2d 08 00 00
[ 63.785705] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 63.786573] sd 10:0:0:0: [sda] Assuming drive cache: write through
[ 63.786575] sda:
[ 63.786706] sd 8:0:0:0: [sdb] Write Protect is off
[ 63.786708] sd 8:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 63.786710] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 63.786945] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 63.786947] sdc:
[ 63.790702] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 63.790705] sdb: sdb1
[ 63.794713] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[ 63.794716] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[ 63.812457] sdc1
[ 63.816102] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[ 63.816107] sd 9:0:0:0: [sdc] Attached SCSI disk
[ 64.273429] sda1
[ 64.277424] sd 10:0:0:0: [sda] Assuming drive cache: write through
[ 64.277428] sd 10:0:0:0: [sda] Attached SCSI disk
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ # do not need output of the following command
ubuntu@ubuntu:~$ # will install mdadm
ubuntu@ubuntu:~$ sudo apt-get install mdadm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
resolvconf postfix-cdb
The following NEW packages will be installed:
mdadm postfix
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,544kB of archives.
After this operation, 3,932kB of additional disk space will be used.
Do you want to continue [Y/n]?

I didn't do anything after this, just exited the Terminal

And I found my stripe size paper it said,

RAID Mode: Striped
Stripe Width: 2
Stripe Block: 64K

Hopefully this is promising information.
m
0
l
March 15, 2010 7:03:09 PM

Oh, one more thing that may be important. I have a 1TB, and a 750GB external HDD plugged in and I am running Ubuntu on a 2GB USB drive.
m
0
l
March 16, 2010 9:47:04 PM

Another thing I tried. I used TestDisk and it did not detect my drives weather they were separate or in RAID.
m
0
l
a c 127 G Storage
March 17, 2010 7:23:46 PM

Ubuntu sees three drives:
/dev/sda: the external 1TB
/dev/sdb: the 2GB USB pendrive
/dev/sdc: the external 750GB

So it doesn't appear to see the two RAID drives. Please make sure you have disabled RAID mode and are running in AHCI mode instead; check your BIOS. Also, i would suggest disconnecting all storage from the system except the DVDROM drive and the two former RAID0 1TB disks. So disconnect your two external disks and USB pendrive for the moment, and boot Ubuntu with cd/dvd instead.

If you do this, it should only detect your CD/DVD drive and your two RAID disks as two separate disks. If Ubuntu detects your disks, it may automatically be able to access it. All you need to do is click the Places menu on top, click Home. In the window that opens, a "... GB Filesystem" mount will appear on the left side of the screen. That should contain your data.
m
0
l
March 17, 2010 7:30:04 PM

sub mesa said:
Ubuntu sees three drives:
/dev/sda: the external 1TB
/dev/sdb: the 2GB USB pendrive
/dev/sdc: the external 750GB

So it doesn't appear to see the two RAID drives. Please make sure you have disabled RAID mode and are running in AHCI mode instead; check your BIOS. Also, i would suggest disconnecting all storage from the system except the DVDROM drive and the two former RAID0 1TB disks. So disconnect your two external disks and USB pendrive for the moment, and boot Ubuntu with cd/dvd instead.

If you do this, it should only detect your CD/DVD drive and your two RAID disks as two separate disks. If Ubuntu detects your disks, it may automatically be able to access it. All you need to do is click the Places menu on top, click Home. In the window that opens, a "... GB Filesystem" mount will appear on the left side of the screen. That should contain your data.


Oh...You are suposed to use AHCI, I was using SATA. I will try this as soon as possible and see how it goes.
m
0
l
a c 127 G Storage
March 17, 2010 7:36:42 PM

Alright. You're booting from the Ubuntu cd, right?

Open a terminal like you did before, and execute this command:

dmesg | grep sd

That would reveal if Ubuntu detects your two former RAID disks.
m
0
l
a c 127 G Storage
March 17, 2010 7:38:04 PM

actually, this one might be better:

dmesg | grep GiB

Be sure to use the upper/lower case right for the GiB part.
m
0
l
March 17, 2010 8:17:58 PM

Ok, I was using a LiveUSB before. Now when I try to use the CD I get this message

(initramfs) Unable to find a medium containing a live file system

And it doesn't let me boot from a USB in AHCI mode.
m
0
l
March 17, 2010 8:20:55 PM

Oh wait, I think I got it to boot into USB from AHCI.
m
0
l
March 17, 2010 8:24:15 PM

Nevermind, It doesn't work with the USB. Do you know what is wrong with the CD?
m
0
l
a c 127 G Storage
March 17, 2010 9:57:07 PM

You selected the first menu option? Called "Try Ubuntu without changing anything on your computer" or something like that. Thats the livecd that requires no installation.

It should boot and give you a desktop to work with. There you can open the terminal and do your tests. So you never have to install anything to do this stuff - all you need to do is boot from the Ubuntu livecd.
m
0
l
March 17, 2010 11:35:13 PM

sub mesa said:
You selected the first menu option? Called "Try Ubuntu without changing anything on your computer" or something like that. Thats the livecd that requires no installation.

It should boot and give you a desktop to work with. There you can open the terminal and do your tests. So you never have to install anything to do this stuff - all you need to do is boot from the Ubuntu livecd.


Yes, that's what I did. It works for my LiveUSB but I get that error message when I use the CD.
m
0
l
a c 127 G Storage
March 18, 2010 12:23:44 AM

Could you run "Check Disc Contents" when you boot from the cd? That should check whether your cd contains errors. In that case, please burn it again.
m
0
l
March 18, 2010 12:29:16 AM

Well, I actually had this problem before and re-burned the disk about 3 times without getting different results. I don't think the .iso is the problem since I'm getting it from the Ubuntu website but I can't seem to find out what's wrong. But the USB works just fine for some reason.
m
0
l
a c 127 G Storage
March 18, 2010 12:37:26 AM

Okay well, you should be able to do this with Ubuntu on a USB-stick too. Though i'm uncertain why that works in your case and not the cd.

Either way, can you set the disks to AHCI and see if Ubuntu recognises them? The dmesg | grep GiB command should work for that. It should see your USB stick + two RAID0 disks.
m
0
l
March 18, 2010 5:43:50 PM

Using the "dmesg | grep GiB" (without quotes) command only detected the USB drive that it was running from.
m
0
l
a c 127 G Storage
March 18, 2010 9:30:41 PM

Can you tell how you connected your RAID drives?

What transfer mode is set in the BIOS? (AHCI/RAID/IDE/SATA one of those)

Are the disks detected by the BIOS power-on self test? That's the screen just after you power on the machine.

It appears your disks are not detected, please make sure you connected them properly.
m
0
l
March 19, 2010 12:20:44 AM

My mother actually needs the computer in a few minutes and since when you restart all of your data gets erased I will have to do this by memory.

Transfer Mode: At the moment AHCI but I set it to RAID before the HDD crash happened
After I power up my PC I get the XFX logo then I get a Nvidia RAID controller menu which syas

Stripe RAID array 1.8T Status: Healthy
(long name for my DVD drive) Status: Healthy

So yes, the disks show up in my BIOS and they do show up as a RAID array.
m
0
l
a c 127 G Storage
March 19, 2010 1:37:37 AM

Well that's wrong. You need to use AHCI which disabled RAID. Does your motherboard have multiple controllers? Are you _SURE_ RAID is disabled in the BIOS and AHCI is set? Triple check this, because it must be set wrong in your BIOS. That's why Ubuntu can't see your drives.
m
0
l
March 20, 2010 1:17:03 PM

Ok I've double and triple checked I did all the BIOS settings right and both disks show up in the BIOS

Transfer Mode: AHCI
AHCI DID for Linux: Enabled
Boot: USB 2.0 Disk
Boot Ubuntu with "Try without changing computer"
Applications>Accessories>Terminal
dmesg | grep GiB
Quote:
ubuntu@ubuntu:~$ dmesg | grep GiB
[ 63.772527] sd 8:0:0:0: [sda] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)
ubuntu@ubuntu:~$


I don't know what to do from here.

m
0
l
a c 127 G Storage
March 20, 2010 6:40:55 PM

Your only option would be to use another computer; with NORMAL serial ATA port. Then repeat what you did and you should get a /dev/sdb and /dev/sdc device; your RAID disks.

If you don't have access to any other computer, you may also try recovery with RAID reconstructor and similar windows utilities. The Ubuntu recovery method is the easiest with nothing to do really; but it appears Ubuntu does not detect your disks. Why that is; i'm unsure. I would try it on another computer; both BIOS and Ubuntu should detect your disks.
m
0
l
March 20, 2010 9:00:15 PM

Ok so apparently one of the computers that I thought didn't have SATA did. So I'm again booting from the USB and this time my HDDs show up! It even separated out my different partitions. So now what? Do I just do a drag and drop maneuver into my external HDDs? Or is it more complicated than that.

And I must say once more, thank you for being so patient with me thus far. I'm pretty sure a lot of people would have lost patience with me at about 5 messages. You don't realize how happy I am now that I can see my data again. This has really been one of the longest weeks of my life. So once more Thank You!
m
0
l
March 21, 2010 12:13:53 PM

So if I'm just looking to recover my data, not worrying about my installed programs, I can just drag and drop it right? I don't mind re-installing everything.
m
0
l
a c 127 G Storage
March 21, 2010 1:48:44 PM

Alright, so now your two HDDs are detected? What did you change, why were they not detected before?

Could you send me the output of earlier commands?

dmesg | grep GiB
ls -l /dev/md*

If the /dev/md0 device exists, all you need to do is click Places, click Home. Then in the new window that appears, you should see ".... GB Filesystem" on the left side. Click those and see if your data is accessible now. If you can see your data, you can copy it over from the network.

But first you need to confirm Ubuntu can detect your disks and create a RAID array for them. If Ubuntu can see your disks, but doesn't create the RAID; there is damage on your disks and you need to execute commands manually. In that case, send me the output of above commands, and also execute this:

# do not send output of following command
sudo apt-get install mdadm

# send output of following command
mdadm --detail /dev/md0
m
0
l
March 21, 2010 1:58:55 PM

I used another computer. The SATA ports were kind of hidden so I didn't know they were there

Here is the output for "dmesg | grep GiB"
The Bolded ones are my external HDDs

Quote:
ubuntu@ubuntu:~$ dmesg | grep GiB
[ 2.471613] sd 1:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[ 2.475744] sd 2:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[ 7.784074] sd 8:0:0:0: [sdc] 3915776 512-byte logical blocks: (2.00 GB/1.86 GiB)
[ 3717.825255] sd 10:0:0:0: [sde] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 3813.390860] sd 11:0:0:0: [sdf] 1952151552 512-byte logical blocks: (999 GB/930 GiB)
[ 3818.084063] sd 12:0:0:0: [sdg] 1465149168 512-byte logical blocks: (750 GB/698 GiB)

ubuntu@ubuntu:~$


I can see my HDDs as 2 file systems in Places. I checked and all of my data is accessible. It actually even split up my 2 partitions for me.
m
0
l
March 21, 2010 2:02:03 PM

But when I tried to install mdadm I got this

Quote:
ubuntu@ubuntu:~$ sudo apt-get install mdadm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin
resolvconf postfix-cdb
The following NEW packages will be installed:
mdadm postfix
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the download directory
ubuntu@ubuntu:~$
m
0
l
March 21, 2010 3:07:53 PM

I got two or three files and transfered tham from my RAID HDDs to a laptop to see if the files still worked and they did. So I'm going on ahead and copying my data onto my external HDDs and rebuilding my RAID array and re-installing Windows.

I will post back if something goes wrong in that process
m
0
l
a c 127 G Storage
March 21, 2010 8:30:16 PM

Alright sounds like it works now! I'm not sure why the mdadm thing didn't work; but frankly you don't need it if you can already access your data right now.

Just copy it over to some windows filesystem or computer over the network, then you should be done and can reformat/repartition/re-RAID your two 1TB disks.
m
0
l
March 28, 2010 1:10:08 AM

Great news! I got all of my data transfered (it took 4 days but oh well), re RAID-ed my drives and re-installed Windows and everything is working great. I will make sure to have total backup now.

And I can not stress enough how much I need to thank you. I am pretty sure if I asked anyone, once they saw that I had more than one or two problems they would have just left. You were very patient with me and made sure I had it working until the end so for that I must say Thank You.
m
0
l
a c 127 G Storage
April 7, 2010 7:08:09 PM

Hey ChoTai,

Sorry i'm late with my response. Still, i would like to say thanks to your kind remark.
Wish you the best of luck! :) 

- sub
m
0
l
!