i just had a hdd failure (well, at least partiton failure). i am using arch linux.
Code:
$ uname -a
Linux 3.4.9-1-ARCH #1 SMP PREEMPT Wed Aug 15 18:59:31 CEST 2012 x86_64 GNU/Linux
the hard drive is 1tb usb 3.0 wd externel drive (sdc). hd was already plugged in, its first partition (i.e. sdc1,ext4) mounted when the problem happened. i was working, nothing that io to sdc1. then i realized sdc1 is no longer mounted. i tried to mount it,but the command took at least 1m untill i ^C it. there is no uuid entry in /dev/disk/by-uuid/
partition list:
Code:
$ fdisk -l /dev/sdc
/dev/sdc1 2048 1843202047 921600000 83 Linux
/dev/sdc2 1943218176 1953458175 5120000 83 Linux
/dev/sdc3 1843202048 1943218175 50008064 7 HPFS/NTFS/exFAT
i tried to back up it using dd, but that failed too.
Code:
$ dd if=/dev/sdc1 > /mnt/sg/fs
dd: reading '/dev/sdc1': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 5.56793 s, 0.0 kB/s
i am not sure that it got locked, because every other partions is working.
syslog:
Code:
Nov 5 01:08:44 localhost kernel: [18427.158620] sd 17:0:0:0: [sdc] Unhandled sense code
Nov 5 01:08:44 localhost kernel: [18427.158627] sd 17:0:0:0: [sdc] Result: hostbyte=0x00 driverbyte=0x08
Nov 5 01:08:44 localhost kernel: [18427.158632] sd 17:0:0:0: [sdc] Sense Key : 0x3 [current]
Nov 5 01:08:44 localhost kernel: [18427.158638] sd 17:0:0:0: [sdc] ASC=0x11 ASCQ=0x0
Nov 5 01:08:44 localhost kernel: [18427.158643] sd 17:0:0:0: [sdc] CDB: cdb[0]=0x28: 28 00 00 00 08 00 00 00 08 00
smart info
Code:
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.4.9-1-ARCH] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital My Passport (USB, AF)
Device Model: WDC WD10TMVW-11ZSMS4
Serial Number: xxxx
LU WWN Device Id: xxxx
Firmware Version: 01.01A01
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Mon Nov 5 22:09:45 2012 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART STATUS RETURN: incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.
General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
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: (26460) 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: ( 257) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x7035) SCT Status 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 167 162 021 Pre-fail Always - 4608
4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 1054
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 098 098 000 Old_age Always - 1494
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 - 574
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 406
193 Load_Cycle_Count 0x0032 195 195 000 Old_age Always - 17202
194 Temperature_Celsius 0x0022 119 100 000 Old_age Always - 31
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 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0008 100 253 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 Extended offline Completed: read failure 90% 1492 2048
# 2 Short offline Completed: read failure 90% 1492 2048
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.
i ran testdisk too. here is testdisk.log, orignally of 560mb , what you see here is first and last 100 lines
Code:
Using locale 'C'.
Mon Nov 5 16:47:45 2012
Command line: TestDisk /log /debug /dev/sdc
TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 3.4.9-1-ARCH (#1 SMP PREEMPT Wed Aug 15 18:59:31 CEST 2012) x86_64
Compiler: GCC 4.6
Compilation date: 2012-02-08T22:31:53
ext2fs lib: 1.42.5, ntfs lib: libntfs-3g, reiserfs lib: 0.3.0.5, ewf lib: none
Hard disk list
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121597 255 63, sector size=512 - WD My Passport 0740, FW:1003
Partition table type (auto): Intel
Disk /dev/sdc - 1000 GB / 931 GiB - WD My Passport 0740
Partition table type: Intel
Analyse Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121597 255 63
Geometry from i386 MBR: head=255 sector=63
file_pread(3,16,buffer,2051(0/32/36)) read err: Input/output error
file_pread(3,1,buffer,2048(0/32/33)) read err: Input/output error
check_part_i386 failed for partition type 83
NTFS at 114734/5/24
Current partition structure:
No ext2, JFS, Reiser, cramfs or XFS marker
1 P Linux 0 32 33 114734 5 23 1843200000
1 P Linux 0 32 33 114734 5 23 1843200000
2 P Linux 120959 187 61 121597 37 40 10240000 [arch_wd]
3 P HPFS - NTFS 114734 5 24 120959 187 60 100016128 [temp]
No partition is bootable
Computes LBA from CHS for Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121598 255 63
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sdc - 1000 GB / 931 GiB - CHS 121598 255 63
file_pread(3,16,buffer,2048(0/32/33)) read err: Input/output error
file_pread(3,1,buffer,2048(0/32/33)) read err: Input/output error
Linux 130 170 41 130 203 17 2056
LUKS 1 (Data size unknown), 1052 KB / 1028 KiB
file_pread(3,16,buffer,5615632(349/142/2)) read err: Partial read
file_pread(3,16,buffer,5615679(349/142/49)) read err: Input/output error
file_pread(3,1,buffer,5615679(349/142/49)) read err: Input/output error
file_pread(3,8,buffer,5615695(349/143/2)) read err: Input/output error
file_pread(3,11,buffer,5615742(349/143/49)) read err: Input/output error
file_pread(3,2,buffer,5617664(349/174/18)) read err: Input/output error
file_pread(3,6,buffer,5617666(349/174/20)) read err: Input/output error
file_pread(3,8,buffer,5617672(349/174/26)) read err: Input/output error
file_pread(3,3,buffer,5617680(349/174/34)) read err: Input/output error
file_pread(3,3,buffer,5617727(349/175/18)) read err: Input/output error
file_pread(3,8,buffer,5617743(349/175/34)) read err: Input/output error
file_pread(3,11,buffer,5617790(349/176/18)) read err: Input/output error
file_pread(3,2,buffer,5619712(349/206/50)) read err: Input/output error
file_pread(3,6,buffer,5619714(349/206/52)) read err: Input/output error
file_pread(3,8,buffer,5619720(349/206/58)) read err: Input/output error
file_pread(3,3,buffer,5619728(349/207/3)) read err: Input/output error
file_pread(3,3,buffer,5619775(349/207/50)) read err: Input/output error
file_pread(3,8,buffer,5619791(349/208/3)) read err: Input/output error
file_pread(3,11,buffer,5619838(349/208/50)) read err: Input/output error
file_pread(3,2,buffer,5621760(349/239/19)) read err: Input/output error
file_pread(3,6,buffer,5621762(349/239/21)) read err: Input/output error
file_pread(3,8,buffer,5621768(349/239/27)) read err: Input/output error
file_pread(3,3,buffer,5621776(349/239/35)) read err: Input/output error
file_pread(3,3,buffer,5621823(349/240/19)) read err: Input/output error
file_pread(3,8,buffer,5621839(349/240/35)) read err: Input/output error
file_pread(3,11,buffer,5621886(349/241/19)) read err: Input/output error
file_pread(3,2,buffer,5623808(350/16/51)) read err: Input/output error
file_pread(3,8,buffer,5622750(350/0/1)) read err: Input/output error
file_pread(3,8,buffer,5622758(350/0/9)) read err: Input/output error
file_pread(3,3,buffer,5622766(350/0/17)) read err: Input/output error
file_pread(3,3,buffer,5622813(350/1/1)) read err: Input/output error
file_pread(3,8,buffer,5622829(350/1/17)) read err: Input/output error
file_pread(3,11,buffer,5622876(350/2/1)) read err: Input/output error
file_pread(3,2,buffer,5624798(350/32/33)) read err: Input/output error
file_pread(3,5,buffer,5622816(350/1/4)) read err: Input/output error
file_pread(3,8,buffer,5622821(350/1/9)) read err: Input/output error
file_pread(3,8,buffer,5622892(350/2/17)) read err: Input/output error
file_pread(3,11,buffer,5622939(350/3/1)) read err: Input/output error
file_pread(3,2,buffer,5624861(350/33/33)) read err: Input/output error
file_pread(3,6,buffer,5623810(350/16/53)) read err: Input/output error
file_pread(3,8,buffer,5623816(350/16/59)) read err: Input/output error
file_pread(3,3,buffer,5623824(350/17/4)) read err: Input/output error
file_pread(3,3,buffer,5623871(350/17/51)) read err: Input/output error
file_pread(3,8,buffer,5623887(350/18/4)) read err: Input/output error
file_pread(3,11,buffer,5623934(350/18/51)) read err: Input/output error
file_pread(3,2,buffer,5625856(350/49/20)) read err: Input/output error
file_pread(3,6,buffer,5625858(350/49/22)) read err: Input/output error
file_pread(3,8,buffer,5625864(350/49/28)) read err: Input/output error
file_pread(3,3,buffer,5625872(350/49/36)) read err: Input/output error
file_pread(3,3,buffer,5625919(350/50/20)) read err: Input/output error
file_pread(3,8,buffer,5625935(350/50/36)) read err: Input/output error
file_pread(3,11,buffer,5625982(350/51/20)) read err: Input/output error
file_pread(3,2,buffer,5627904(350/81/52)) read err: Input/output error
file_pread(3,6,buffer,5627906(350/81/54)) read err: Input/output error
file_pread(3,8,buffer,5627912(350/81/60)) read err: Input/output error
file_pread(3,3,buffer,5627920(350/82/5)) read err: Input/output error
.
.
.
file_pread(3,11,buffer,1953439866(121596/2/1)) read err: Input/output error
file_pread(3,2,buffer,1953441788(121596/32/33)) read err: Input/output error
file_pread(3,1,buffer,1953439759(121596/0/20)) read err: Input/output error
file_pread(3,3,buffer,1953439760(121596/0/21)) read err: Input/output error
file_pread(3,3,buffer,1953439807(121596/1/5)) read err: Input/output error
file_pread(3,4,buffer,1953439827(121596/1/25)) read err: Input/output error
file_pread(3,4,buffer,1953439877(121596/2/12)) read err: Input/output error
file_pread(3,2,buffer,1953441792(121596/32/37)) read err: Input/output error
file_pread(3,5,buffer,1953439806(121596/1/4)) read err: Input/output error
file_pread(3,8,buffer,1953439811(121596/1/9)) read err: Input/output error
file_pread(3,8,buffer,1953439882(121596/2/17)) read err: Input/output error
file_pread(3,11,buffer,1953439929(121596/3/1)) read err: Input/output error
file_pread(3,2,buffer,1953441851(121596/33/33)) read err: Input/output error
file_pread(3,6,buffer,1953441794(121596/32/39)) read err: Input/output error
file_pread(3,8,buffer,1953441800(121596/32/45)) read err: Input/output error
file_pread(3,3,buffer,1953441808(121596/32/53)) read err: Input/output error
file_pread(3,3,buffer,1953441855(121596/33/37)) read err: Input/output error
file_pread(3,8,buffer,1953441871(121596/33/53)) read err: Input/output error
file_pread(3,11,buffer,1953441918(121596/34/37)) read err: Input/output error
file_pread(3,2,buffer,1953443840(121596/65/6)) read err: Input/output error
file_pread(3,6,buffer,1953443842(121596/65/8)) read err: Input/output error
file_pread(3,8,buffer,1953443848(121596/65/14)) read err: Input/output error
file_pread(3,3,buffer,1953443856(121596/65/22)) read err: Input/output error
file_pread(3,3,buffer,1953443903(121596/66/6)) read err: Input/output error
file_pread(3,8,buffer,1953443919(121596/66/22)) read err: Input/output error
file_pread(3,11,buffer,1953443966(121596/67/6)) read err: Input/output error
file_pread(3,2,buffer,1953445888(121596/97/38)) read err: Input/output error
file_pread(3,6,buffer,1953445890(121596/97/40)) read err: Input/output error
file_pread(3,8,buffer,1953445896(121596/97/46)) read err: Input/output error
file_pread(3,3,buffer,1953445904(121596/97/54)) read err: Input/output error
file_pread(3,3,buffer,1953445951(121596/98/38)) read err: Input/output error
file_pread(3,8,buffer,1953445967(121596/98/54)) read err: Input/output error
file_pread(3,11,buffer,1953446014(121596/99/38)) read err: Input/output error
file_pread(3,2,buffer,1953447936(121596/130/7)) read err: Input/output error
file_pread(3,6,buffer,1953447938(121596/130/9)) read err: Input/output error
file_pread(3,8,buffer,1953447944(121596/130/15)) read err: Input/output error
file_pread(3,3,buffer,1953447952(121596/130/23)) read err: Input/output error
file_pread(3,3,buffer,1953447999(121596/131/7)) read err: Input/output error
file_pread(3,8,buffer,1953448015(121596/131/23)) read err: Input/output error
file_pread(3,11,buffer,1953448062(121596/132/7)) read err: Input/output error
file_pread(3,2,buffer,1953449984(121596/162/39)) read err: Input/output error
file_pread(3,6,buffer,1953449986(121596/162/41)) read err: Input/output error
file_pread(3,8,buffer,1953449992(121596/162/47)) read err: Input/output error
file_pread(3,3,buffer,1953450000(121596/162/55)) read err: Input/output error
file_pread(3,3,buffer,1953450047(121596/163/39)) read err: Input/output error
file_pread(3,8,buffer,1953450063(121596/163/55)) read err: Input/output error
file_pread(3,11,buffer,1953450110(121596/164/39)) read err: Input/output error
file_pread(3,2,buffer,1953452032(121596/195/8)) read err: Input/output error
file_pread(3,6,buffer,1953452034(121596/195/10)) read err: Input/output error
file_pread(3,8,buffer,1953452040(121596/195/16)) read err: Input/output error
file_pread(3,3,buffer,1953452048(121596/195/24)) read err: Input/output error
file_pread(3,3,buffer,1953452095(121596/196/8)) read err: Input/output error
file_pread(3,8,buffer,1953452111(121596/196/24)) read err: Input/output error
file_pread(3,11,buffer,1953452158(121596/197/8)) read err: Input/output error
file_pread(3,2,buffer,1953454080(121596/227/40)) read err: Input/output error
file_pread(3,6,buffer,1953454082(121596/227/42)) read err: Input/output error
file_pread(3,8,buffer,1953454088(121596/227/48)) read err: Input/output error
file_pread(3,3,buffer,1953454096(121596/227/56)) read err: Input/output error
file_pread(3,3,buffer,1953454143(121596/228/40)) read err: Input/output error
file_pread(3,8,buffer,1953454159(121596/228/56)) read err: Input/output error
file_pread(3,11,buffer,1953454206(121596/229/40)) read err: Input/output error
file_pread(3,2,buffer,1953456128(121597/5/9)) read err: Input/output error
file_pread(3,8,buffer,1953455805(121597/0/1)) read err: Input/output error
file_pread(3,8,buffer,1953455813(121597/0/9)) read err: Input/output error
file_pread(3,3,buffer,1953455821(121597/0/17)) read err: Input/output error
file_pread(3,3,buffer,1953455868(121597/1/1)) read err: Input/output error
file_pread(3,8,buffer,1953455884(121597/1/17)) read err: Input/output error
file_pread(3,11,buffer,1953455931(121597/2/1)) read err: Input/output error
file_pread(3,2,buffer,1953457853(121597/32/33)) read err: Input/output error
file_pread(3,5,buffer,1953455871(121597/1/4)) read err: Input/output error
file_pread(3,8,buffer,1953455876(121597/1/9)) read err: Input/output error
file_pread(3,8,buffer,1953455947(121597/2/17)) read err: Input/output error
file_pread(3,11,buffer,1953455994(121597/3/1)) read err: Input/output error
file_pread(3,2,buffer,1953457916(121597/33/33)) read err: Input/output error
file_pread(3,6,buffer,1953456130(121597/5/11)) read err: Input/output error
file_pread(3,8,buffer,1953456136(121597/5/17)) read err: Input/output error
file_pread(3,3,buffer,1953456144(121597/5/25)) read err: Input/output error
file_pread(3,3,buffer,1953456191(121597/6/9)) read err: Input/output error
file_pread(3,8,buffer,1953456207(121597/6/25)) read err: Input/output error
file_pread(3,11,buffer,1953456254(121597/7/9)) read err: Input/output error
Results
L Linux 130 170 41 130 254 63 5315
LUKS 1 (Data size unknown), 2721 KB / 2657 KiB
interface_write()
1 E extended 130 170 1 130 254 63 5355
5 L Linux 130 170 41 130 254 63 5315
simulate write!
write_mbr_i386: starting...
file_pread(3,1,buffer,0(0/0/1)) read err: Input/output error
Partition: Read error
Store new MBR code
write_all_log_i386: starting...
write_all_log_i386: CHS: 130/170/1,lba=2099160
file_pread(3,1,buffer,2099160(130/170/1)) read err: Input/output error
TestDisk exited normally.
the topic is also being followed at linuxquestion
https://www.linuxquestions.org/question ... ?p=4822153any help is appriciated .
thanks