LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 10-20-2012, 06:15 PM   #1
Eupator
LQ Newbie
 
Registered: May 2008
Distribution: Slackware/Slackintosh
Posts: 25

Rep: Reputation: 0
Question External Hard Drive failure


Hi all,

I have an HDD Gear Pro 1TB external HD. It is formatted in ext2. Recently, it has stopped mounting, with this error:

Code:
# mount -t ext2 /dev/sdb1 /media/usb0
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
I ran e2fsck on it, but it complained:

Code:
# e2fsck /dev/sdb1 -y         
e2fsck 1.42.6 (21-Sep-2012)
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdb1
Could this be a zero-length partition?
So I ran it with an alternate superblock:
Code:
# e2fsck /dev/sdb1 -b 32768 -y
/dev/sdb1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong for group #0 (31223, counted=0).
Fix? yes

( . . . many lines omitted for brevity . . . )

Free inodes count wrong for group #7447 (8192, counted=8189).
Fix? yes

Directories count wrong for group #7447 (0, counted=1).
Fix? yes

Free inodes count wrong (61054965, counted=61000828).
Fix? yes


/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdb1: 54148/61054976 files (1.4% non-contiguous), 130432233/244190000 blocks
I get similar results no matter how many times I run e2fsck, but the drive still won't mount.

Finally, I tried to mount with alternate superblock:

Code:
# mount /dev/sdb1 /media/usb0 -o sb=32768 -t ext2
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
. . . and now I'm not sure where to go. I've read that smartctl is useful in documenting these issues, but I really don't have any idea how, so I'll post the output:

Code:
#smartctl -a /dev/sdb
smartctl 5.43 2012-06-30 r3573 [i686-linux-3.2.29-smp] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     WL1000GSA3272
Serial Number:    WOL240121613
LU WWN Device Id: 5 0014ee 00187638d
Firmware Version: 05.00K05
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sat Oct 20 19:09:06 2012 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x84)	Offline data collection activity
					was suspended by an interrupting command from host.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(18600) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 214) minutes.
Conveyance self-test routine
recommended polling time: 	 (   5) minutes.
SCT capabilities: 	       (0x303f)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   229   229   021    Pre-fail  Always       -       8550
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       315
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       270
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       293
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       204
193 Load_Cycle_Count        0x0032   200   200   000    Old_age   Always       -       315
194 Temperature_Celsius     0x0022   101   097   000    Old_age   Always       -       49
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       1
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed without error       00%        17         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Any pointers are much appreciated!
 
Old 10-20-2012, 07:38 PM   #2
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
Start here: http://linuxcat.org/showthread.php?tid=45

You're going to want to do
Quote:
smartctl -t long /dev/sdb
then
Quote:
smartctl -l selftest /dev/sdb
 
1 members found this post helpful.
Old 10-20-2012, 11:44 PM   #3
Eupator
LQ Newbie
 
Registered: May 2008
Distribution: Slackware/Slackintosh
Posts: 25

Original Poster
Rep: Reputation: 0
I ran both commands, and got this:

Code:
# smartctl -l selftest /dev/sdb
smartctl 5.43 2012-06-30 r3573 [i686-linux-3.2.29-smp] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       90%       270         68
# 2  Conveyance offline  Completed without error       00%        17         -
 
Old 10-21-2012, 06:21 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,883
Blog Entries: 1

Rep: Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307Reputation: 1307
Moderator Response

Moved: This thread is more suitable in <Linux-Hardware> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-21-2012, 07:36 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
The extended test failed, this means the drive is failing. If you still have important info on the disk, either carve the data off it using testdisk or foremost, or image the drive using ddrescue to a larger drive, and then carve the data off.
 
Old 10-21-2012, 09:46 AM   #6
Eupator
LQ Newbie
 
Registered: May 2008
Distribution: Slackware/Slackintosh
Posts: 25

Original Poster
Rep: Reputation: 0
Thanks, even though that isn't exactly what I wanted to hear.

Unfortunately, I don't have any drive larger than 1 TB available as a destination for ddrescue. Other than shelling out the money for a 1.5 TB, is there a way around this issue?
 
Old 10-21-2012, 10:58 AM   #7
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Quote:
Originally Posted by Eupator View Post
Thanks, even though that isn't exactly what I wanted to hear.

Unfortunately, I don't have any drive larger than 1 TB available as a destination for ddrescue. Other than shelling out the money for a 1.5 TB, is there a way around this issue?
Yes, use testdisk or foremost to carve data off the failing drive and onto a good drive. The good drive just has to contain the carved data, so unless the 1 TB drive is full, it should work fine with a smaller drive. Carved data means the files that it can find on the failing drive.
 
1 members found this post helpful.
Old 10-23-2012, 01:29 PM   #8
Eupator
LQ Newbie
 
Registered: May 2008
Distribution: Slackware/Slackintosh
Posts: 25

Original Poster
Rep: Reputation: 0
Unfortunately, it seems testdisk cannot list or recover my files. Still, I'll count this thread as "solved," with a reminder to backup your files.
 
Old 10-24-2012, 02:14 AM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Try foremost, maybe it can do something:
http://foremost.sourceforge.net/
I've had better luck with it personally.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 02:55 PM
External hard drive failure cdarrah010 Linux - Hardware 4 01-06-2010 10:16 AM
External hard drive failure? Sense key: medium error Mister_Abc Linux - Hardware 6 07-23-2009 10:27 AM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 09:59 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM


All times are GMT -5. The time now is 08:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration