Hi,
Question: how do I erase/reset/reflash S.M.A.R.T.'s data on bad sectors?
The story so far:
I have a 4-year old Toshiba MK3255GSX Hard Drive with some ~50 bad blocks pending reallocation. These are mostly located in the first 75 gigabytes (sectors ~250~18000000-something). My idea is to repartition the HDD, leaving the first 75 gigabytes unallocated and allocate a new NTFS partition in the remaining "good" parts of the disk. This was already done. I have no data to recover.
The problem is S.M.A.R.T.'s "Reallocated_Sector_Ct" && "Current_Pending_Sector". I know the drive does automatically reallocate bad sectors and can only reallocate so many of these. But since it has already reallocated all it could reallocate, any new bad blocks on the new NTFS partition will be left un-reallocated, which is unacceptable.
But since I intend to leave the bad sectors in an non-partitioned part of the disk (the first 75 gb), I don't want S.M.A.R.T. to bother with these.
So, I want some guidance to run a procedure, be it reflashing the HDD, or any clever S.M.A.R.T. (re-)configuration or something else (I don't know how to accomplish this) to reset/free the reallocated sectors and start over with the remaining parts of the disk.
Do you know how can it be done?
Which tools are likely to be useful to reset SMART?
Is it likely that SMART will dumbly spent all reallocation space reallocating again the bad blocks from the non-partitioned space, leaving the partitioned space vulnerable to bad blocks once again?
Thanks for your consideration and input.
P.S.: smartctl -a /dev/sda output:
Question: how do I erase/reset/reflash S.M.A.R.T.'s data on bad sectors?
The story so far:
I have a 4-year old Toshiba MK3255GSX Hard Drive with some ~50 bad blocks pending reallocation. These are mostly located in the first 75 gigabytes (sectors ~250~18000000-something). My idea is to repartition the HDD, leaving the first 75 gigabytes unallocated and allocate a new NTFS partition in the remaining "good" parts of the disk. This was already done. I have no data to recover.
The problem is S.M.A.R.T.'s "Reallocated_Sector_Ct" && "Current_Pending_Sector". I know the drive does automatically reallocate bad sectors and can only reallocate so many of these. But since it has already reallocated all it could reallocate, any new bad blocks on the new NTFS partition will be left un-reallocated, which is unacceptable.
But since I intend to leave the bad sectors in an non-partitioned part of the disk (the first 75 gb), I don't want S.M.A.R.T. to bother with these.
So, I want some guidance to run a procedure, be it reflashing the HDD, or any clever S.M.A.R.T. (re-)configuration or something else (I don't know how to accomplish this) to reset/free the reallocated sectors and start over with the remaining parts of the disk.
Do you know how can it be done?
Which tools are likely to be useful to reset SMART?
Is it likely that SMART will dumbly spent all reallocation space reallocating again the bad blocks from the non-partitioned space, leaving the partitioned space vulnerable to bad blocks once again?
Thanks for your consideration and input.
P.S.: smartctl -a /dev/sda output:
Code:
smartctl -a /dev/sda
smartctl 5.43 2012-06-30 r3573 [i686-linux-3.6.10-4.fc18.i686] (local build)
Copyright (C) 2002-12 by Bruce Allen, [url=http://smartmontools.sourceforge.net]http://smartmontools.sourceforge.net[/url]
=== START OF INFORMATION SECTION ===
Model Family: Toshiba 2.5" HDD MK..55GSX
Device Model: TOSHIBA MK3255GSX
Serial Number: 69TKC0BKT
LU WWN Device Id: 5 000039 1d3c8165a
Firmware Version: FG011M
User Capacity: 320,072,933,376 bytes [320 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sun Nov 3 14:34:30 2013 EST
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: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 112) The previous self-test completed having
the read element of the test failed.
Total time to complete Offline
data collection: ( 120) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No 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: ( 146) minutes.
SCT capabilities: (0x0039) 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 0x000b 100 098 050 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0
3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 1226
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 3391
5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 4
7 Seek_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 050 Pre-fail Offline - 0
9 Power_On_Hours 0x0032 073 073 000 Old_age Always - 10857
10 Spin_Retry_Count 0x0033 167 100 030 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 3291
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 3075
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 62
193 Load_Cycle_Count 0x0032 098 098 000 Old_age Always - 28096
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 44 (Min/Max 20/57)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 4
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 33
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 34
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
220 Disk_Shift 0x0002 100 100 000 Old_age Always - 8327
222 Loaded_Hours 0x0032 078 078 000 Old_age Always - 8827
223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 0
224 Load_Friction 0x0022 100 100 000 Old_age Always - 0
226 Load-in_Time 0x0026 100 100 000 Old_age Always - 331
240 Head_Flying_Hours 0x0001 100 100 001 Pre-fail Offline - 0
SMART Error Log Version: 1
ATA Error Count: 27665 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 27665 occurred at disk power-on lifetime: 10856 hours (452 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 41 02 10 c9 83 68 Error: UNC at LBA = 0x0883c910 = 142854416
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 00 10 c9 83 40 08 17:51:17.977 READ FPDMA QUEUED
ef 10 02 00 00 00 a0 00 17:51:17.977 SET FEATURES [Reserved for Serial ATA]
27 00 00 00 00 00 e0 00 17:51:17.977 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 00 17:51:17.976 IDENTIFY DEVICE
ef 03 45 00 00 00 a0 00 17:51:17.976 SET FEATURES [Set transfer mode]
Error 27664 occurred at disk power-on lifetime: 10856 hours (452 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 41 02 10 c9 83 68 Error: UNC at LBA = 0x0883c910 = 142854416
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 00 10 c9 83 40 08 17:51:14.132 READ FPDMA QUEUED
ef 10 02 00 00 00 a0 00 17:51:14.132 SET FEATURES [Reserved for Serial ATA]
27 00 00 00 00 00 e0 00 17:51:14.132 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 00 17:51:14.131 IDENTIFY DEVICE
ef 03 45 00 00 00 a0 00 17:51:14.131 SET FEATURES [Set transfer mode]
Error 27663 occurred at disk power-on lifetime: 10856 hours (452 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 41 02 10 c9 83 68 Error: UNC at LBA = 0x0883c910 = 142854416
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 00 10 c9 83 40 08 17:51:10.288 READ FPDMA QUEUED
ef 10 02 00 00 00 a0 00 17:51:10.287 SET FEATURES [Reserved for Serial ATA]
27 00 00 00 00 00 e0 00 17:51:10.287 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 00 17:51:10.287 IDENTIFY DEVICE
ef 03 45 00 00 00 a0 00 17:51:10.287 SET FEATURES [Set transfer mode]
Error 27662 occurred at disk power-on lifetime: 10856 hours (452 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 41 02 10 c9 83 68 Error: UNC at LBA = 0x0883c910 = 142854416
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 00 10 c9 83 40 08 17:51:06.482 READ FPDMA QUEUED
60 08 00 08 c9 83 40 08 17:51:06.482 READ FPDMA QUEUED
60 08 00 00 c9 83 40 08 17:51:06.482 READ FPDMA QUEUED
60 08 00 f8 c8 83 40 08 17:51:06.481 READ FPDMA QUEUED
60 08 00 f0 c8 83 40 08 17:51:06.481 READ FPDMA QUEUED
Error 27661 occurred at disk power-on lifetime: 10856 hours (452 days + 8 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 41 02 30 6d 83 68 Error: UNC at LBA = 0x08836d30 = 142830896
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
60 08 00 30 6d 83 40 08 17:50:54.965 READ FPDMA QUEUED
ef 10 02 00 00 00 a0 00 17:50:54.964 SET FEATURES [Reserved for Serial ATA]
27 00 00 00 00 00 e0 00 17:50:54.964 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 00 17:50:54.964 IDENTIFY DEVICE
ef 03 45 00 00 00 a0 00 17:50:54.964 SET FEATURES [Set transfer mode]
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 00% 10843 0
# 2 Short offline Completed: read failure 00% 10838 2060
# 3 Short offline Aborted by host 90% 10838 -
# 4 Extended captive Interrupted (host reset) 90% 10807 -
# 5 Extended offline Aborted by host 90% 10807 -
# 6 Extended offline Interrupted (host reset) 90% 10764 -
# 7 Extended offline Interrupted (host reset) 90% 10764 -
# 8 Extended offline Interrupted (host reset) 90% 10746 -
# 9 Short offline Completed without error 00% 10741 -
#10 Extended offline Interrupted (host reset) 90% 10740 -
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.