Linux Sector Modeling

How can I simulate a bad sector block device in Linux to test some tools?

Did I follow the steps in Simulate a faulty block device with read errors? but it throws "device-mapper: ioctl reload to bad_disk failed: invalid argument" error.

Are there other ways to create a locked block device?

+4
source share
1 answer

This is far beyond my knowledge base, but you may find this discussion helpful. They talk about using the hdparm and --make-bad-sector options. Buyer beware ....

Another interesting discussion - this one , which talks about the difference between the actual presence of a bad sector and manual creation - depending on which tools you are testing, can these two be registered and / or treated differently?

In any case, the most relevant things I found online were on the forums in hddguru , so maybe people can have a good contribution for you :)

Hope something helps ...

+2
source

All Articles