Thursday, 4 July 2019

hard drive - Tool to read all blocks from HDD and write it back


I need tool to read each sector(block) from HDD and write it back to same HDD. Disk is big and so it is not possible to use image creation tools (backup/restore).


Purpose of it - to avoid/resolve Silent Data Degradation (bit rot, decay of storage media,UNC sectors).


Single UNC sector (soft-bad error) could caused Read Instability and as result whole HDD disconnected from OS. I am personally experienced such issue and it disappears when I write zeroes to that UNC sector. Question is - how to solve this problem on regular bases.



Answer



You can do a "non-destructive read-write test" using "badblocks", which has exactly this effect. It transparently backups the data, tests the sectors and then writes it back:



badblocks -nsv /dev/sdx



No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...