HI,
In some test cases, I used tools like "dd" and "shed" to manually read a block from the disk, modify it using a hex editor and write it back using "dd".
I need help with some linux commands I can use to read the block and change the data to induce the corruption....as I want to automate my test case.
Thanks In Advance,
Prince Sharma
---------- Post updated at 05:39 AM ---------- Previous update was at 05:09 AM ----------
Test Scenario is like :
h)Using dd, copy out the contents of an EA block into a file.
i)Using shed editor, edit the contents at the offset 0004 to 00 instead of 01. This corrupts the EA header ref count.
j)Using dd, write back the contents of the modified block .
Plesae help me.
---------- Post updated at 06:29 AM ---------- Previous update was at 05:39 AM ----------
I do this to get a file with dumb block data.
dd bs=4096 skip="block number" count=1 if=/dev/ivg2/ilv2 of=yy.out
Please help me with some shell command which I can use to read the dumb block data and modify it.