LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-08-2005, 01:24 PM   #1
FliesLikeABrick
Member
 
Registered: Aug 2005
Location: NY,USA
Distribution: Debian, Gentoo, Ubuntu
Posts: 103

Rep: Reputation: 15
Hard drive woes, something's borked


I have an external 250gb in a firewire case (maxtor hd) that i've been using for a while to store a bunch of video editing media and stuff... One day I rebooted the server and the drive didn't mount.

So I tried the following, mounting from the command line:

dozer:~# mount -t ext3 /dev/sdc1 /mnt/external250/Movies/
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dozer:~#

so then i checked dmesg, and found 15 or so errors like the following:
Current sdc: sense key Medium Error
Additional sense: Data phase error
end_request: I/O error, dev sdc, sector 75
scsi3: ERROR on channel 0, id 0, lun 0, CDB: Read (10) 00 00 00 00 4c 00 00 03 00
Current sdc: sense key Medium Error
Additional sense: Data phase error
end_request: I/O error, dev sdc, sector 76
scsi3: ERROR on channel 0, id 0, lun 0, CDB: Read (10) 00 00 00 00 4d 00 00 02 00
Current sdc: sense key Medium Error
Additional sense: Data phase error
end_request: I/O error, dev sdc, sector 77
scsi3: ERROR on channel 0, id 0, lun 0, CDB: Read (10) 00 00 00 00 4e 00 00 01 00
Current sdc: sense key Medium Error
Additional sense: Data phase error
end_request: I/O error, dev sdc, sector 78
EXT3-fs: can't read group descriptor 0

-----------------------

so then i tried checking the partition with e2fsck

dozer:~# e2fsck -v /dev/sdc1
e2fsck 1.37 (21-Mar-2005)
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc1
Could this be a zero-length partition?
dozer:~#

-------
... so then i tried checking the partition table
dozer:~# fdisk /dev/sdc

Unable to read /dev/sdc
dozer:~#

-----

and now i'm out of ideas. I really need to recover the data on the drive, a lot of family videos and stuff that I'm in the process of editing.

I was thinking I could possibly get away with repartitioning it with the same partitions and start/end cylinders... but since I can't view the partition tables I don't want to risk that.

any hardware junkies have anything to offer?
 
Old 12-08-2005, 05:26 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can change the partition table as many times you want. Your files will still be there. After you do that, I am not sure e2fsck can retrieve all the files with out any corruption. Before you use e2fsck, I suggest making a mirror copy of the drive (yes you will have two screw ups) and then run e2fsck on the backup drive. Keep the orginal from spying eyes, so you are not attempted to use it. Both drives have to be the same model and same brand to make a sector by sector copy with dd.
 
Old 12-08-2005, 06:56 PM   #3
FliesLikeABrick
Member
 
Registered: Aug 2005
Location: NY,USA
Distribution: Debian, Gentoo, Ubuntu
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Electro
You can change the partition table as many times you want. Your files will still be there. After you do that, I am not sure e2fsck can retrieve all the files with out any corruption. Before you use e2fsck, I suggest making a mirror copy of the drive (yes you will have two screw ups) and then run e2fsck on the backup drive. Keep the orginal from spying eyes, so you are not attempted to use it. Both drives have to be the same model and same brand to make a sector by sector copy with dd.

um... wanna tell me how the heck i'm supposed to make a copy of the drive when i can't fdisk/read/mount it or anything?
 
Old 12-08-2005, 07:17 PM   #4
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Sounds to me like the drive is failing or already failed. I would suggest you run Maxtor's PowerMax to see if it is still good or not.

I had this happen to me not too long ago. My files were lost and was unable to recover them.

By the way, I do not trust Maxtor anymore after having 3 drives fail on me in one year and have to repair/recover 2 more for a family member. Seagate is all I use now.
 
Old 12-08-2005, 08:35 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Just run cfdisk (front end to fdisk and sometimes more reliable) and hit enter to get past the error. Next make a new primary partition. You can try to use gpart to guess the partition table. Third use hdparm to re-scan the partition table. Finally you can run e2fsck. You should be running e2fsck on the backup hard drive instead of the orginal.

I said in my previous post to use dd to make a sector by sector copy of the drive to another drive. To do this and assuming the second drive is on /dev/sdd:

dd if=/dev/sdc of=/dev/sdd bs=512 conv=sync,noerrors

The command will take a long time, but it will make a mirror copy. It is best to this on a reliable PATA controller like the first controller on the motherboard.

I did the above a few years ago, but I was using XFS for the filesystem and a 120 GB Western Digital hard drive. The XFS utilites found every file, but they were all in lost+found.
 
Old 12-09-2005, 12:24 AM   #6
drorex2
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
e2fsck / fdisk / cfdisk: None of these will work if you can't even read from the drive!

At this point, there isn't really anything you can do, if you can't even talk to the drive. You may want to try some disk recovery tools, like SpinRite: http://www.grc.com/sr/spinrite.htm

There are also buisnesses that provide data recovery service, and are able to recover pretty much any data...however they tend to be expensive. Depends on how much your data is worth. Just google for 'data recovery' or something similar.

Hopefully you will learn from the school of hard knocks (I know I have), and start doing RAID + regular backups.
 
Old 12-09-2005, 05:02 PM   #7
alan_h404
LQ Newbie
 
Registered: Sep 2003
Location: watford UK
Distribution: Mepis 6.0
Posts: 28

Rep: Reputation: 15
It's a long shot - but try popping it in the refrigerator overnight - it worked for me once!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
hard drive woes FliesLikeABrick Linux - Hardware 3 10-10-2005 02:12 AM
Hard drive geometry possibly borked, weird random errors. purplecow Linux - Hardware 2 06-15-2005 01:11 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Hard Drive Woes jwchanman Linux - Hardware 11 02-12-2003 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration