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, that's what that hardware did - it would present the drive to the OS in very different ways, depending on those CMOS/BIOS settings.
No longer have that laptop in operable condition to show it directly, but, do still have some of the documentation, and that fairly well covers it, e.g. at least in some relevant parts, from the hardware documentation (and omitting also a bunch of redundant/related stuff):
"
IBM Mobile Systems
ThinkPad Computer
Hardware Maintenance Manual
October 2003
You can delete the Access IBM Predesktop Area by going
into the BIOS (F1 at IBM Splash Screen), and then
choosing Security --> IBM Predesktop Area -->
Disabled. This will make the Service Partition area
available to FDISK. If you choose Disabled, the following
warning appears:
Attention! If you select Disabled, the IBM Predesktop
Area will be visible and can be reclaimed by the OS.
Once the area is overwritten by OS tools, it can’t be
used with Normal or Secure again and you will need to
obtain a Recovery CD to retrieve original HDD. Please
confirm that you wish to select Disabled.
FDISK will not delete the Access IBM Predesktop Area
unless you do this, because it is not visible. You would
have to use “bootkil2 /psa” to completely wipe the drive.
"
So, unless one disabled that in BIOS, that portion of the disk entirely invisible to the OS - whatever OS - Microsoft Windows, Linux, whatever - it's hidden at the hardware level - and the drive shows different (smaller) size when that content is hidden.
ref.:
ftp.software.ibm.com/pc/pccbbs/mobiles_pdf/13n5911_01.pdf
Alas, Wayback machine didn't capture it, and probably long gone from IBM's site, as that's now long been Lenovo, and that was over 20 years ago.