https://www.smartmontools.org/browser/trunk/www/badblockhowto.xml

This will help you figure out what data is in the bad sector, and
whether it's important or replaceable from a backup.

Note that this is an AF drive, specifically 512e variety. 512 bytes
logical sector, 4096 bytes physical sector. To erase, you have to do a
4KiB write. If you do a 512 byte write, or 8 512 byte writes, the
drive will likely do read,modify,write which will fail at read and
you'll get a read error from the drive even though you're writing.
This is of course confusing. So if you use dd to do the overwrite,
bs=4096 and then you have to adjust the seek= value since it too will
be based on 4096 bytes; whereas LBA for a 512e drive is based on 512
byte sectors. So yeah, make sure you get it right or you'll zero some
other sector. Make sure count=1 to avoid a mess...

hdparm has a way to do this also but I haven't used it, so I'm not
sure how the whole 512 vs 4096 thing gets sorted out.

---
Chris Murphy
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to