On Thu, Jun 10, 2021 at 11:31:07PM -0500, David Wright wrote:
I'm about to install buster or bullseye on a newly acquired laptop with an SSD (a first for me). I'm intending to clean (zero or randomise) the entire drive with dd before I start, and am interested in any pitfalls with that.
Do not try to write data to the drive, it'll just wear the drive out a bit and won't actually accomplish what you're trying to do.
Install the nvme-cli package and use something like (this will destroy the data on the drive, don't play with it):
nvme format -s1 /dev/nvme0n1 the -s1 triggers the drive's secure erase functionality.If you're lucky that will work. If not (some manufacturers are more trouble than others) you can look for a workaround.