[opensuse] how to isolate bad blocks?
Dear List, I have an external 500 gb usb hard disk which I use for making backups. It seems to have some bad blocks.. when I am rsyncing files to it, I get error messages and it unmounts automatically (in dmesg: "kernel panic", etc.). I have tried the following: fsck.ext3 -v -f -y -c -c -C 0 /dev/sdb3 .. this should make a read/write test to the hard disk (it takes ages..!) and re-write the "bad block" inodes. Unfortunately, the program says finally: "could not allocate block in ext2 filesystem" .. How can I fix the hard drive and isolate the bad sectors? Regards, Sampsa -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-12-30 11:14, Sampsa Riikonen wrote:
.. How can I fix the hard drive and isolate the bad sectors?
Use SMART facilities. The long test usually does a surface test. Then simply writing to the bad sectors (or the entire disk) forces a remapping of the bad sector by the HD firmware. You have to watch the number of such remappings. If it keeps increasing, replace the HD. - -- Cheers / Saludos, Carlos E. R. (from 11.4 x86_64 "Celadon" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk79txQACgkQtTMYHG2NR9V0iQCcD2maXoDx3koELUkkAsnl7vOY 8tAAn0sfeeN9XqzFMTu4J9n1id8dIn4y =zM53 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Carlos E. R.
-
Sampsa Riikonen