The command lsblk
returns the following output that lists 4 partitions.
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 8M 0 part
├─sda2 8:2 0 40G 0 part /
├─sda3 8:3 0 883.8G 0 part /home
└─sda4 8:4 0 7.7G 0 part [SWAP]
When executing one or more of the following commands, is the necessary to delete the partitions prior?
If no, why and if yes, why?
If partitions are not deleted prior to the commands below being run, what is the risk of data remanence?
When executing one or more of the commands below, the partitions are not deleted.
dd if=/dev/urandom of=/dev/sda bs=2MB conv=fsync
hdparm --user-master u --security-erase password /dev/sda
pv /dev/urandom > /dev/sda
partprobe
? – AndrolGenhald Dec 26 '18 at 20:21