Re: fsck!

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 06/28/03

  • Next message: Robert Storey: "4-CD set"
    Date: Fri, 27 Jun 2003 18:11:00 -0500
    To: Brett Glass <brett@lariat.org>
    
    

    In the last episode (Jun 27), Brett Glass said:
    > Often, after a FreeBSD 4.x system has been powered down without a
    > proper shutdown, the system complains of inconsistencies on the disk.
    > Yet, if one runs the command "fsck -f" after it's rebooted, the fsck
    > program doesn't fix the problems it finds; instead, it says "NO
    > WRITE" at the beginning of each report. (It seems not to want to
    > touch things unless they're unmounted.) So, the system has to come
    > down AGAIN.
    >
    > What's the best and fastest way of ensuring disk consistency on a
    > system that you're powering up after an abrupt outage? What about a
    > system that powered up again before you arrived to nurse it through a
    > reboot?

    An fsck that fails with "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY."
    should cause the boot process to stop right there and drop to
    single-user mode. Under 4.x, it will run fsck -p on any dirty
    filesystems, and only if the preen returned success on all filesystems
    will it continue to multi-user mode. 5.x is a bit more lenient, since
    it can clean softupdates filesystems in the background.

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Robert Storey: "4-CD set"

    Relevant Pages

    • Re: mounting LVM partitions fails after etch upgrade
      ... upgrade and you got an fsck warning that said to run fsck manually and ... Boot into single-user mode and ensure that non-root fs are totally ... threads on the choice of filesystems. ... FS corruption is nasty to put it politely. ...
      (Debian-User)
    • Re: fsck to fix HD problem
      ... >> so I decided to use fsck to check my HD. ... > you should drop into single-user mode, ... on the filesystems ... trying to fix it. ...
      (freebsd-questions)
    • [HPADM] SUMMARY: Must fsck be run in single-user mode?
      ... fsck should only be run on filesystems that are unmounted. ... to single-user mode. ... To subscribe/unsubscribe to this list, ...
      (HP-UX-Admin)
    • Re: Major filesystem problems after crash on 7.0-BETA3
      ... of coffee while the background fsck took care of the file systems. ... access the /var or /tmp filesystems, I received panics similar to: ... Dumping 101 MB:Aborting dump due to I/O error. ... it looked like my filesystems weren't ...
      (freebsd-questions)
    • Re: recover superblock
      ... > I just lost all of my filesystems on my 5.1 box. ... > I plugged the harddisk into another computer and tried to run fsck. ... I have lost over 1,000 to 2,000 emails like three times when the Nvidia ... > Even trying to copy an alternate superblock using dd faied. ...
      (freebsd-current)