On 2017/12/16 04:00, ti...@openmailbox.org wrote: > > On 2017-12-15, Stuart wrote: > > You can use dd to write zeroes over the start of the device to overwrite > > the partition table and disklabel, I'm not surehow far you have to go > > but would expect "dd if=/dev/zero of=/dev/rsdXc bs=1m count=8" to do > > the trick (with the correct disk number here ^ obviously). > .. > > Hi, > > In the past I thought the principle was that you wipe the disklabel by > overwriting the first megabyte (bs=1m count=1). > > What is the safe practice really, 1MB or 8MB? > > Tinker
I'd rather err on the side of wiping too much when I'm clearing out the old partition table and disklabel, it doesn't take much longer. When I'm partitioning SSDs I usually align to 2048 sectors anyway in an attempt to align to flash erase blocks, so just wiping the first 1MB wouldn't be enough in that case.