Wilfully dirtying a filesystem

Chuck Swiger cswiger at mac.com
Thu Aug 17 17:09:26 UTC 2006


On Aug 17, 2006, at 9:55 AM, Ceri Davies wrote:
> I cannot easily get to single-user on this machine, so is there a good
> way for me to dirty the filesystem just enough to force "fsck -p" to
> fail (yanking power also difficult)?  "umount -f /usr; reboot" doesn't
> seem to work...

Edit a file on /usr and leave the editor session going to make sure  
you've got an open file on that filesystem, then do a "reboot -nq"  
instead...

-- 
-Chuck



More information about the freebsd-questions mailing list