2

I am using an external 1 TB WD hard drive with Advanced Format (4096 bytes sector size). What is the recommended value for the bs option in dd? Should I use dd bs=4096? And if I get this value "wrong" is there any data problem that could appear or is this option only in terms of speed?

Also I am securely wiping the hard drive, could I not fully wipe the drive if I am using the bs option?

Sector size (logical/physical): 512 bytes / 4096 bytes

1 Answer 1

0

A block size between 4096 and 512K should suffice.
A bs smaller than than the physical sector would be horribly slow.
More than 128 times the sector size is also a waste since the ATAPI command set cannot handle such a large transfer.

And if I get this value "wrong" is there any data problem that could appear or is this option only in terms of speed?

If it's too small (i.e. less than the logical sector size), then there could be issues. Otherwise it's a speed optimization.

Also I am securely wiping the hard drive, could I not fully wipe the drive if I am using the bs option?

As long as you use a reasonable value for bs, then there should be no issues.

3
  • "If it's too small (i.e. less than the logical sector size), then there could be issues" – Other than in terms of speed? Can you elaborate? What could they be? Jan 25, 2018 at 5:33
  • @KamilMaciorowski -- If you use the seek option or an oddball count with a less-than-sector-size bs (i.e. expect dd to perform a read before a write in order to perform partial sector operations), then dd will probably not do what you want.
    – sawdust
    Jan 25, 2018 at 23:50
  • Do you have any code or link to support this? Jan 26, 2018 at 4:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .