Have you tried badblocks -b 8192 -ws /dev/da0
?
In the long term the solution is to move out of (mis)using badblocks though.
I haven't tried. The reason is that there may be some subtelties that are not accounted for that would cause the test to be unreliable.
I just don't have enough experience in this area.
@jgreco mentioned BadBlocks isn't designed for testing disk, and to some level it is and it is not.
From my understanding, what Badblocks is trying to do is validate the disk is able to write and read sets of bits without errors. What Badblocks does is checking any bits can be written as "0" and "1":at least ones and the default pattern used is to check for bit walking as well.
The drives I am testing are the Seagate EXOS 18TB and while trying to understand the migration setting to switch from 512e to 4Kn (I have contacted Seagate support in the matter), I went to read through the SeaChest series of utilities documents, and it would appear there may be a specific series of test SeaChest could perform to write patterns to disk.
If Badblocks wasn't designed to test drives, why is it the only recommended solution?
On a second note, if I am able to perform transition from 512e to 4Kn, then theoritically, I would have to undergo the same stress test as I believe the physical location of the block maybe slightly offset from where the 512e block resided.
Doesn't it make sense?