-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-10-08 16:10, Greg Freemyer wrote:
On Wed, Oct 8, 2014 at 10:04 AM, Carlos E. R. <> wrote:
Also, use ext3, not xfs: it is difficult to find the lba; far from trivial.
My testing has actually been with raw unformated disks.
Fill with random data:
dd if=/dev/urandom of=/dev/sdx bs=4K
No need for data to be random for this particular test :-)
use hdparm to corrupt a sector (or more)
Use various raw sector level read tools to attempt to read the sector.
Verify dd terminates when it hits the bad sector. What about "dd conv=noerror". Compare that to "dd conv=noerror,sync".
What about shred /dev/sdx. Does it terminate on the bad sector?
etc, etc, etc.
I see. Yes, that's easier. Question: would not the write attempt to a failed sector automatically remap it, to one of those sectors reserved by the manufacturer for that purpose? In that case, I'm not sure it can be undone.
I have run large numbers of similar tests over the last 10 years.
Not many people have to :-) - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlQ1S5MACgkQtTMYHG2NR9VFgQCbBuJy9yjOjkCZ5LmgUxwjh1fi dPUAn1HV/59DCCJkJfEdF8s4LOjY3xyU =l/Jz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org