Xavier Callejas wrote:
Hi,
How can I be sure that my hard disk has badblocks? How can I test all the entire disk if it has badblocks?
I'm getting this in my '/var/log/messages':
Xavier, IMMEDIATELY copy any data you need to another disk. While there is always the potential that you just have a spurious bad block that needs to be marked as a bad block, but my experience is that after you notice the first badblock with smart, its not too much longer before the second, then third, etc... (following example of suspect drive /dev/sdb2) Save your bacon. Find a spare drive with as much space as needed to duplicate your critical data (the device with bad blocks) dd if=/dev/sdb2 of=/dev/{backup device name} To find out which bad blocks are giving problems, boot from the install DVD and choose rescue system. Then make a list of the badblocks with: /sbin/badblocks -b 4096 /dev/sdb2 >> badblocks.txt ** confirm your blocksize with dumpe2fs -h /dev/sdb2 | grep 'Block size' Then you will need to use fsck.ext3 to see if you can repair the system and add the badblocks to the badblock table: fsck.ext3 -l badblocks.txt /dev/sdb2 You can also create and add the badblocks list to the badblocks table using just the fsck.ext3 command with the -c option: fsck.ext3 -c /dev/sdb2 Good luck! -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org