Re: Wilfully dirtying a filesystem



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

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: recommending reiserfs?
    ... >>simply returns a successful message back to fsck so the boot process ... When the boot process subsequently mounts the xfs ... > checked for the 'dirty bit' being set. ... > if the machine crashes without cleanly unmounting the filesystem, ...
    (Fedora)
  • Re: recommending reiserfs?
    ... you see where fsck options are *defined* on such cases. ... >>if the replay is successful the filesystem is considered clean. ... There's no such thing as a official "dirty bit". ... features so that the driver and checker can see when the filesystem is ...
    (Fedora)
  • Re: recommending reiserfs?
    ... > Can you prove that the system uses fsck to check the filesystem's dirty ... I see where it gets called if the filesystem is dirty, ... if the replay is successful the filesystem is considered clean. ...
    (Fedora)
  • Re: recommending reiserfs?
    ... >if the replay is successful the filesystem is considered clean. ... Where do you see anything that says fsck checks the dirty bit? ... I don't see anything that says "The file system is dirty/not clean ". ...
    (Fedora)
  • Re: recommending reiserfs?
    ... I could be wrong, but I understand that on boot, the filesystems are ... checked for the 'dirty bit' being set. ... the machine crashes without cleanly unmounting the filesystem, ... fsck is forced), ...
    (Fedora)