Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using xubuntu on a box that has 2 drives. One is quite small mounted as / and the other larger drive is mounted as /home
Both drives are IDE
The /home drive has had some failure in the past & occasionally creates errors. Is there any way of identify which sectors are bad (or good) and isolating them to try & get some more use out of the drive?
It won't be used for storing valuable data.It is an old box for visitors to use. But it would be handy to use it to store some large read-only audio files.
I've installed smartctl & could post output from there if you think it is useful. I can't work out how to interpret the information.
You can use the -c option on fsck to add any bad blocks to the bad block inode also, as a general rule this can be done on a file system with data on it without loss but make sure you have backups (and make sure you don't run it on a currently mounted file system... login as root unmount /home, fsck -c it, remount it.)
Keep this in mind however-- once blocks start to "go" bad (as opposed to having a bad block or two that never change) it tends to cascade over time and at the current price of drives... my inclination is to replace it. $50 for a 250gb ide.
Either way get regular current backups done and keep more than one due to the possibility of corruption of data.
This is the result of running smartctl -a /dev/sdb
seems rather a lot of stuff & I don't know what is useful.
How much life do you think the drive is likely to have?
Quote:
=== START OF INFORMATION SECTION ===
Model Family: Maxtor DiamondMax Plus 9 family
Device Model: Maxtor 6Y120L0
Serial Number: Y36LCHPE
Firmware Version: YAR41BW0
User Capacity: 122,942,324,736 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 0
Local Time is: Fri Jun 4 02:39:38 2010 CEST
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: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 118) The previous self-test completed having
the read element of the test failed.
Total time to complete Offline
data collection: ( 242) 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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 54) minutes.
SMART Error Log Version: 1
ATA Error Count: 32285 (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 32285 occurred at disk power-on lifetime: 7783 hours (324 days + 7 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 00 fb ca 5d f8 Error: ICRC, ABRT at LBA = 0x085dcafb = 140364539
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 0c fb ca 5d f8 08 00:05:54.336 READ DMA
f8 00 00 00 00 00 f0 08 00:05:54.320 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 b0 0a 00:05:54.320 IDENTIFY DEVICE
ef 03 45 00 00 00 b0 0a 00:05:54.320 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 f0 08 00:05:54.320 READ NATIVE MAX ADDRESS
Error 32284 occurred at disk power-on lifetime: 7783 hours (324 days + 7 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 00 fb ca 5d f8 Error: ICRC, ABRT at LBA = 0x085dcafb = 140364539
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 0c fb ca 5d f8 08 00:05:54.128 READ DMA
f8 00 00 00 00 00 f0 08 00:05:54.128 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 b0 0a 00:05:54.112 IDENTIFY DEVICE
ef 03 45 00 00 00 b0 0a 00:05:54.112 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 f0 08 00:05:54.112 READ NATIVE MAX ADDRESS
Error 32283 occurred at disk power-on lifetime: 7783 hours (324 days + 7 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 00 fb ca 5d f8 Error: ICRC, ABRT at LBA = 0x085dcafb = 140364539
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 0c fb ca 5d f8 08 00:05:53.920 READ DMA
f8 00 00 00 00 00 f0 08 00:05:53.920 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 b0 0a 00:05:53.904 IDENTIFY DEVICE
ef 03 45 00 00 00 b0 0a 00:05:53.904 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 f0 08 00:05:53.904 READ NATIVE MAX ADDRESS
Error 32282 occurred at disk power-on lifetime: 7783 hours (324 days + 7 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 00 fb ca 5d f8 Error: ICRC, ABRT at LBA = 0x085dcafb = 140364539
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 0c fb ca 5d f8 08 00:05:53.728 READ DMA
c8 00 13 e8 ca 5d f8 08 00:05:53.728 READ DMA
c8 00 01 e7 ca 5d f8 08 00:05:53.728 READ DMA
c8 00 07 e0 ca 5d f8 08 00:05:53.728 READ DMA
c8 00 01 df ca 5d f8 08 00:05:53.728 READ DMA
Error 32281 occurred at disk power-on lifetime: 7783 hours (324 days + 7 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
84 51 00 10 09 20 f0 Error: ICRC, ABRT at LBA = 0x00200910 = 2099472
If the drive is from IBM or Hitachi, then you could salvage the drive. Use the hard drive manufacture's utility to fix the drive. It should be mostly fix after IBM or Hitachi utilities are done. Though other hard drive manufacture's utilities are not that good to resurrect a drive, so try to use DBAN or "Darik's Boot and Nuke" to get rid of your data and send it to an eWaste.
You are making a rod for your own back. If the hardware has reached end of life, bad blocks spread. If the box has no major uses and you don't want to spend on drives you could
1. run a livecd - you never heard of this one, buit it's space efficient and not bad http://kevux.org
2. If the bios allows a network boot, use pxe and no drives.
I checked out the seagate-maxtor "seatools" utility & found this... (edited)
Quote:
Erase Drive
-----------
ZERO FILL DATA PATTERN WRITING IS A DATA DESTRUCTIVE OPERATION
EQUIVALENT TO ERASING THE DATA OFF THE DRIVE.....
Zero ALL. This command writes zeros to every sector on the
hard drive. This test may take several hours to complete.....
A "Defective drive" can often be revived with a data-
destructive zero fill data pattern or a low level format. This
is because today's modern disc drives contain thousands of
spare sectors which are automatically reallocated if the drive
senses difficulty reading or writing. Since SeaTools is read-
only (data safe) occasionally a drive with many problem sectors
that have not reallocated to a spare sectors can be forced to
do so by writing to the sectors. Spare sector reallocation is
a normal intelligent drive operation.
I'd be interested to know what the info from smartctl actually means. Are we talking bad sectors or other problems?
Like I said before I do have another smaller drive where I install the system & I was thinking of using this one for holding a few large audio files. It wasn't that old when I first started getting errors from it.
I quite like paying with old falling-apart hardware to learn how things work... I wouldn't do it with my main box!
Last edited by vayira; 06-04-2010 at 04:11 AM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.