On Sun, Apr 16, 2017 at 4:54 AM, Dave Plater <dplater.list@gmail.com> wrote:
On 14/04/2017 17:33, Greg Freemyer wrote:
On Fri, Apr 14, 2017 at 11:15 AM, Dave Plater <dplater.list@gmail.com> wrote:
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.
?? How does a bad cable cause a bad sector?
The drive electronics themselves take 512 bytes (or whatever the sector size is) of data and generate an appropriate header/footer incuding the ECC info.
A correctable read error means the data was only slightly corrupt and the ECC data allowed the data to be corrected.
A bad sector means the contents of the sector are corrupted such that the ECC info isn't sufficient to correct the sector data.
The sata cable is not involved in the ECC generation process, nor the low level read/verify process.
Greg
-- Greg Freemyer
Correction, it was the 5V pin on the connector to the sata power cable that was loose. The sata cable was also defective. Dave P
Thanks Dave, A bad power cable could definitely cause corrupted sectors. I was thinking of the data cable. Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org