As shown in the lsblk output below, I have 3 NVME SSDs and 4 Mechanical drives attached to my desktop.
My OS (Fedora WS 34) is installed in /dev/sdd which is a 250GB Samsung SSD.
I want to clean up /dev/sda, /dev/sdb, /dev/sdc, /dev/nvme0n1, /dev/nvme1n1, /dev/nvme2n1 drives as if it came out of the factory
i.e I want to remove partitions, LVM related stuff, filesystems,… everything in these disks. Wipe out everything !
What is the recommended and ‘neat’ way to do this?
for ssd’s/nvme’s:
you’re better off with the vendor tools, they usually have tools to build an “secure erase usb stick”.
secure erase on samsung nvme (ssd) lasts some seconds only
for samsung ssd’s (and nvme’s)
Magician:
you need an windows box or VM, tough.
cit: “…as if it came out of the factory”:
all the smartctl data survive a secure erase.
secure erase reset’s ssd’s/nvme’s to nearly initial speed (again)
anyway, I would prefer vendor tool regarding ssd’s/nvme’s, cause vendor usually (should) know the internals of their devices (better).
And if secure erase really erases all data from ssd’s/nvme’s is -AFAIK- still under discussion.
I guess with vendor tools one is better off, even in an warranty case, if something went wrong.
I want to remove partitions, LVM related stuff, filesystems,… everything in these disks. Wipe out everything
When I need to wipe a disk, I usually use Ultimate Boot CD (UBCD). It is free software and has several HDD wiping utilities.
UBCD has an option to wipe disks. Scroll down on the page and see the tools listed under “HDD/Disk Wiping.” I know one of the tools also wipes SCSI disks that are part of an array.