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/michaelpaoli Oct 24 '25
No, not nonsense at all - whole drive looks different when it's got that stuff "Hidden" at the hardware level - all the way down to different geometry, number of sectors, etc. I had the hardware, an dang well know, Very much seen it in action. OS talks to what looks to it like a controller, and whatever exists between that and drive, well, that's hardware, and the hardware does whatever it's set up or programmed to do. Very similar applies to, e.g. hardware RAID controllers, what they show to the OS may be very different than what the drive(s) physically are. Hardware can do all kinds of stuff between drive(s) and OS.