Re: File System corruption tool
"Lakshmipathi.G" <[email protected]> Sun, 19 Jan 2014 19:54:28 +0530
| Newsgroups | gmane.comp.file-systems.ext3.user |
|---|---|
| Message-ID | <CAKuJGC9LgpaQ-yV8a8jv1jxp3j_5K7wtU5D+zzi-ZNZ2GQV5KA@mail.gmail.com> |
--===============8447495199998824596== Content-Type: multipart/alternative; boundary=001a11c280b09e7d8204f0538998 --001a11c280b09e7d8204f0538998 Content-Type: text/plain; charset=ISO-8859-1 > 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) Thanks Ric Wheeler. Just looked into hdparm, it has nice option to corrupt sectors but I need to manipulate disk-entries also (like add invalid nlink value in an inode structure etc). > We have a script that adds corruption to ext2/3/4 filesystems and runs > e2fsck on it. It definitely could be improved, but it still catches some Thanks Andreas. I was going the script, liked idea to create file system image based on random files. It has minimal option as now of. Will look into fsfuzzer. > The other major question I have is why you are trying to create a new > proprietary filesystem? Sorry, I should have been clearer. I was assigned with a task of creating a framework to corrupt disk-layout on an existing FreeBSD based closed source file system. We have e2fsck like integrity checker, but corrupting disk script needs to be added. Thanks! -- ---- Cheers, Lakshmipathi.G FOSS Programmer. www.giis.co.in --001a11c280b09e7d8204f0538998 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"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=A0</div> <div>corrupt sectors but I need to manipulate disk-entries also (like=A0</d= iv><div>add invalid nlink value in an inode structure etc).=A0</div><div><b= r></div><div>> We have a script that adds corruption to ext2/3/4 filesys= tems and runs=A0</div> <div>> e2fsck on it. It definitely could be improved, but it still catch= es some</div><div><br></div><div>Thanks Andreas. I was going the script, li= ked idea to create file system=A0</div><div>image based on random files. It= has minimal option as now of. Will look=A0</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 fil= esystem? =A0</div><div><br></div><div>Sorry, I should have been clearer. I = was assigned with a task of creating a=A0</div> <div>framework to corrupt disk-layout on an existing FreeBSD based closed s= ource</div><div>file system. We have e2fsck like integrity checker, but cor= rupting disk script=A0</div><div>needs to be added. Thanks!</div><div><br> </div><div class=3D"gmail_extra"><div><br></div>-- <br>----<br>Cheers,<br>L= akshmipathi.G<br>FOSS Programmer.<br><a href=3D"http://www.giis.co.in" targ= et=3D"_blank">www.giis.co.in</a> </div></div> --001a11c280b09e7d8204f0538998-- --===============8447495199998824596== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ext3-users mailing list [email protected] https://www.redhat.com/mailman/listinfo/ext3-users --===============8447495199998824596==--