Corrupting ext3 paration

hi guys,

I am testing some embedded device.. In which there were a bug due to the corruption of the ext3 partition. ( if the partition was currapated all system was crashing )

Now developers are mounting that particular partition to check whether it is corrupted or not and taking other actions according to that...

Now I need to reproduce the bug to confirm that it has been solved....

My problem is. is there any way we can corrupt the ext3 partition ??

I recommend you use ext2 and not ext3. ext3 causes more problems than any benefits.

Yup. u are right.. but it's not in my hand to change it.. I am working as a QA member and now I need to check that even thought the ext3 partition is corrupted the system should take care of it.

And I don't know how to corrupt the ext3 partition.. any idea ??

It might be easier to just run fsck and see if it finds problems or not.

dd some data on the disk.
First, skip some blocks of the disk and write some random data.
dd if=/dev/urandom bs=1024 count=1 of=/dev/disk seek=10353