3

I did an ATA secure erase on an SSD (with SystemRescueCD and hdparm). Some parts of the disk are reset to zero, but some parts are not. In particular, the MBR and the boot sector of a Windows Vista partition are zero-ed, but the boot sector of a Windows 7 partition is completely untouched. Enhanced secure erase gives the same results.

The Windows 7 partition was the 2nd logical partition inside the extended partition (i.e. /dev/sda6) before the partition tables were erased. I attempted to zero it's boot sector with dd:

dd if=/dev/zero of=/dev/sda bs=512 skip=184252416 count=1
dd if=/dev/sda bs=512 skip=184252416 count=1 | hexdump -C

The command returned successfully, but the sector is still unchanged, as if the write request is completely ignored.

Before the SSD was erased, it was completely functional. After it was erased, it passed a SMART extended offline self-test so I believe it's still functional.

I searched through the BIOS option but couldn't find any options related to write-protection. The TPM module is deactivated. The disk was not encrypted.

Any idea why a disk may ignore erase and write commands?

  • System: Dell Latitude E4200
  • BIOS version: A19
  • SSD model: SAMSUNG SSD Thin uSATA 128GB M (I believe it's a mini PCIe card)
  • SSD firmware version: VAM05D1Q (I haven't been able to find any updates)
  • SATA mode: tried both AHCI and ATA
1
  • Have you tried chkdsk command with repair chkdsk /r.
    – avirk
    Commented Aug 14, 2011 at 1:15

1 Answer 1

1

There are two options to dd for skipping blocks. From the manpage:

seek=N skip N obs-sized blocks at start of output

skip=N skip N ibs-sized blocks at start of input

So the first command reads block 184252416 from /dev/zero (filled with zeros), and writes it to block 0 on /dev/sda . The second reads from (untouched) block 184252416 on /dev/sda.

The first command should be:

dd if=/dev/zero of=/dev/sda bs=512 seek=184252416 count=1

which reads one block from /dev/zero, seeks to block 184252416 on /dev/sda, then writes it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .