Is there an application, script or similar to do this (the best sanitation method for disks): duplicate large monolithic file (to speed up copying) like movie, until the disk is filled? This is the procedure:
1. Format disk.
2. Copy into it and duplicate large monolithic file (like movie) until the disk is filled with it. Probably, some free space will be left, so, continue copying-duplicating smaller file(s) until 0 bytes are left.
3. Unmount and mount the disk (that may show some free space), and repeat step 2, if needed, until 0 bytes are left.
4. Format disk (optional).
Note: the above method should work fine for old HFS+ disks. For new APFS disks, a method to randomly change the bits inside the file to copy in real time before duplicating it would be needed, since otherwise it will not be really duplicated.
That is the most convenient, quick and ecological method to sanitize a disk, using a single pass of writing data.
1. Format disk.
2. Copy into it and duplicate large monolithic file (like movie) until the disk is filled with it. Probably, some free space will be left, so, continue copying-duplicating smaller file(s) until 0 bytes are left.
3. Unmount and mount the disk (that may show some free space), and repeat step 2, if needed, until 0 bytes are left.
4. Format disk (optional).
Note: the above method should work fine for old HFS+ disks. For new APFS disks, a method to randomly change the bits inside the file to copy in real time before duplicating it would be needed, since otherwise it will not be really duplicated.
That is the most convenient, quick and ecological method to sanitize a disk, using a single pass of writing data.