<div dir="ltr"><div>> For s-ata drives, you can use hdparm to create a bad sector that will cause an IO error on read. (Write will fix it)</div><div><br></div><div>Thanks Ric Wheeler. Just looked into hdparm, it has nice option to </div>

<div>corrupt sectors but I need to manipulate disk-entries also (like </div><div>add invalid nlink value in an inode structure etc). </div><div><br></div><div>> We have a script that adds corruption to ext2/3/4 filesystems and runs </div>

<div>> e2fsck on it. It definitely could be improved, but it still catches some</div><div><br></div><div>Thanks Andreas. I was going the script, liked idea to create file system </div><div>image based on random files. It has minimal option as now of. Will look </div>

<div>into fsfuzzer.</div><div><br></div><div>> The other major question I have is why you are trying to create a new</div><div>> proprietary filesystem?  </div><div><br></div><div>Sorry, I should have been clearer. I was assigned with a task of creating a </div>

<div>framework to corrupt disk-layout on an existing FreeBSD based closed source</div><div>file system. We have e2fsck like integrity checker, but corrupting disk script </div><div>needs to be added. Thanks!</div><div><br>

</div><div class="gmail_extra"><div><br></div>-- <br>----<br>Cheers,<br>Lakshmipathi.G<br>FOSS Programmer.<br><a href="http://www.giis.co.in" target="_blank">www.giis.co.in</a>
</div></div>