I try to run simple test case on linux operating system with dd command .
I create a simple disk image with this command :
dd if=/dev/urandom of=disk.img bs=1M count=100
This is First Test :
Now I run this commands :
dd if=disk.img of=output_1 bs=1k count=4
dd if=disk.img of=output_2 bs=4k count=1
md5sum output_1 output_2
bc0245c10ff529042fd2a5335ed1573f output_1
bc0245c10ff529042fd2a5335ed1573f output_2
You can see output_1 and output_2 exactly has same md5 hash .
This is Second Test :
Now I add skip parameter to dd command :
dd if=disk.img of=output_1 skip=1500 bs=1k count=4
dd if=disk.img of=output_2 skip=1500 bs=4k count=1
c5b0e8dde317c25011b31a5c48580477 output_1
4585d39fcf93cec4abc6c55094aac724 output_2
Why result is difference for this blocks ?
What part of my test is wrong ?
iflag=fullblock