
Wiping with random data offers no benefit over using zeros, and it is slower. Think about it like this If a disk write was not absolute, how would you ever be able to use one to reliably store and retrieve data? When you write zeros to the disk, from that point on it will read zeros. I have never found even one solution that could recover any data from a disk wiped with the command you asked about. This has NEVER actually been demonstrated though, in any way. Years ago it was posited that using special types of reading hardware and special algorithms, one could theoretically recover wiped info from a disk. For example, to display the contents of an image file called onie-installer located in the /var/lib/cumulus/installer directory: cumulusswitch: sudo /var. To display the contents of the Cumulus Linux image file, pass the info option to the image file. The dd command you posted is the perfect solution for you. From a running switch, you can display, extract, and verify the contents of the image file. I have spent hundreds of hours doing R&D on this subject. wipefs does not erase the filesystem itself nor any other data from the device. From man wipefs wipefs can erase filesystem, raid or partition-table signatures (magic strings) from the specified device to make the signatures invisible for libblkid.

Though there is not agreement if it's enough or something more is needed (eg random characters way).īut I want to answer this: wiping the drive (with zeros or random characters) won't delete things that are necessary for the laptop use, as for example BIOS? Thanks. wipefs -a /dev/sda You still have to stop any process using the device though, such as LVM. Code: Select all dd if=/dev/zero of=/dev/sda Method 2: Securely wipe hard disk with shred command You can use the shred command to securely remove everything so that no one recover any data: shred -n 5 -vz /dev/sdb Method 3: Say hello to scrub command You can also use disk scrubbing program such as scrub.
