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. Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org