On 2017-04-14 17:15, Dave Plater wrote:
On 14/04/2017 15:59, Carlos E. R. wrote:
On 2017-04-14 15:52, Dave Plater wrote:
On 12/04/2017 15:28, Anton Aylward wrote:
'smartctl -h /dev/sda' just says "PASSED" which is nice but not detailed. 'smartctl --all /dev/sda' tells me a lot but doesn't seem to tell me what I'm looking for. smartctl -t long /dev/sdX is the command that tests all sectors, if it reports an error send it back. I've successfully extended the life of drives with uncorrectable sectors by using the hdparm --write-sector command on the sector output in smartctl -l selftest.
How do you get the list of bad sectors from smartctl?
using "smartctl -l selftest" it gives you the first failed sector. It's a long process if you have many bad sectors. In my case I only had four that I suspect came from a defective sata cable. You don't get a list.
Ah. But not always. I have one disk that doesn't, so I run badblocks on it, which found none, and then smartctl also found none. I thought that perhaps there was another place where smartctl listed them. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)