r/linuxadmin • u/TheDafca • Oct 24 '25
dd command not working
Hi, I’m a beginner sysadmin and I had to wipe a company computer. I booted a live Debian and ran lsblk, which showed that I had sda as the system disk and sdb as the live USB. So I ran sudo dd if=/dev/zero of=/dev/sda status=progress bs=4M. After the task finished successfully, I tried restarting the computer, and it booted into Windows as if nothing had happened.
Does anyone know why it didn’t wipe the drive, or any other reliable method that’s guaranteed to work?
0
Upvotes
View all comments
Show parent comment
1
u/Academic-Gate-5535 Oct 24 '25
The partition table is stored on the disk, in MBR it's at the first sector.
GPT in the second and third. With a backup MBR in first.
Wiping the disk (/dev/sda) will wipe the partition table entirely