Purposely corrupting a filesystem

From: Jeff Germain (j.germain@xpedite.com)
Date: Fri Jan 10 2003 - 11:19:41 EST


Group,

I'm writing a script which will contain something like:

mount /dev-path /mount-point
if [ it fails ]
then
        fsck -options /raw-dev-path
        mount /dev-path /mount-point
fi

I will want to test the script a few times. Is there a quick and relatively
painless way to force a *minor* corruption on a filesystem? It should do
enough so the mount will fail, but without hurting my fs too much, and
without having to crash/reboot the system.

Thanks, will summarize...

Jeff
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:34 EDT