I'm new to system administration and recently needed to wipe a company computer. I booted from a live Debian USB and verified that /dev/sda was the system disk while /dev/sdb was my live USB using lsblk. I then executed the command `sudo dd if=/dev/zero of=/dev/sda status=progress bs=4M`, and it completed successfully. However, when I restarted the computer, it booted into Windows as if nothing happened. Can anyone explain why the dd command didn't completely wipe the drive or suggest a more reliable method to ensure it works?
5 Answers
Without seeing your disk list or commands in detail, it's tricky to diagnose. You might want to try using shred instead, which is specifically designed for secure data deletion. You can find it at github.com/PartialVolume/shredos.x86_64.
Could network boot be a factor here? If your BIOS is set to boot from the network first, it could be bypassing the wipe completely. Just double-check your boot order in the BIOS settings.
Make sure you run `sync` after completing your dd command to ensure all data is fully written to the disk. Though some say dd writes directly to the disk, running sync is a good practice just to be safe.
The issue might be because you're only targeting sda instead of the individual partitions on it. You could also run dd on those partitions directly. Just be aware that if you do that, the partition table will also be wiped, which could complicate things.
It's possible your computer has hidden partitions that aren't being wiped by dd. Some systems can boot from recovery partitions without showing them in normal disk listings. Also, make sure the Windows was completely shut down and not just hibernating because that could interfere with the wipe. Check your BIOS settings for hidden partitions too. For better results, try using the drive's secure erase feature instead of dd, as it can wipe reserved sectors that dd might miss.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures