Why Isn’t the dd Command Wiping My Drive?

0
17
Asked By TechyTurtle42 On

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

Answered By GadgetGuru77 On

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.

Answered By HardwareHacker99 On

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.

Answered By QuestionQuest22 On

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.

Answered By DiskDynamo23 On

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.

Answered By SystemSavvy88 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.