dd and Advanced Format drives
While troubleshooting some script problems, I noticed dd was giving very different results on an Advanced Format drive vs my old drive. Both drives should be identical, bootable copies with the only difference the sector size.
dd if=/dev/sda of=/test.dd bs=512 count=63
hexdump test.dd | nl
Replace drive, reboot, repeat.
On both drives the file test.dd reads as 32k, however a hexdump shows vastly different results. On the old drive 35 lines of hex are shown, but on the new drive 860+ lines of hex are shown. How can both files be the same size?
It worries me because I use dd a lot and want to know it is reading/writing the correct blocks and offsets. Even if I assume there should be 4x as much data on the Advanced Format drive due to a sector sie of 4096 vs 512 860 is more than 4x the size of 35. It just doesn't make sense.
Last edited by shadowbox12; 08-06-2013 at 12:39 AM.
|