Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ffsfsck(8) — CLIX 3.1r7.6.22

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

newfs(8)

ffsmkfs(8)

fsck(8)



  ffsfsck(8)                          CLIX                          ffsfsck(8)



  NAME

    ffsfsck - Checks and interactively repairs a Fast File System (FFS)

  SYNOPSIS

    /etc/ffsfsck [-B block#] [-y] [-n] [-b] [-q] [file-system ... ]

  FLAGS

    -B block#   Uses block# as the superblock for the file system.  Block 32
                is always an alternate superblock.

    -y          Assumes a ``yes'' response to all questions asked by ffsfsck;
                this flag should be used with caution.

    -n          Assumes a ``no'' response to all questions asked by ffsfsck;
                does not open the file system for writing.

    -b          Reboots.  If the file system being checked is the root file
                system and modifications have been made, this flag either
                remounts the root file system or reboots the system depending
                on the extent of the modifications.  Remounts only if there
                was minor damage.

    -q          Suppresses messages about unreferenced sockets.  This flag is
                referred to as ``quiet mode.''  Quiet mode only works when the
                -n or -y flags are used.  Note that only the messages are
                suppressed; the actions taken on these files are still taken.

  DESCRIPTION

    The ffsfsck command audits and interactively repairs inconsistent
    conditions for file systems of type ffsfs.  If the file system is
    inconsistent, the operator is prompted for confirmation before each
    correction is attempted.  Some of the corrective actions will result in
    some data loss.  The amount and severity of lost data may be determined
    from the diagnostic output.  The default action for each consistency
    correction is to wait for the operator to respond ``yes'' or ``no''.  If
    the operator does not have write permission on the file system, ffsfsck
    will default to a -n action.

    The ffsfsck command is called by fsck for file systems of type ffsfs.
    After correcting a file system, ffsfsck will display the number of files
    on that file system, the number of used and free blocks, and the
    percentage of fragmentation.

    If sent a QUIT signal, ffsfsck will finish the file system checks and then
    exit with a nonzero return status.

    The following inconsistencies are checked:



  2/94 - Intergraph Corporation                                              1






  ffsfsck(8)                          CLIX                          ffsfsck(8)



    1.  Blocks claimed by more than one inode or the free list.

    2.  Blocks claimed by an inode or the free list outside the range of the
        file system.

    3.  Incorrect link counts.

    4.  Directory size not in proper format.

    5.  Bad inode format.

    6.  Blocks not accounted for.

    7.  Directory checks including file pointing to unallocated inode and
        inode number out of range.

    8.  More blocks for inodes than the file system has.

    9.  Bad free block list format.

    10. Total free block and/or free inode count incorrect.

    Orphaned (allocated but unreferenced) files and directories are (with the
    operator's concurrence) reconnected by placing them in the lost+found
    directory.  The name assigned is the inode number.  If the file system's
    lost+found directory does not exist, it is created.  If space is
    insufficient, its size is increased.

  EXAMPLES

    1.  The following command checks file systems listed in /etc/checklist,
        suppressing messages about sockets, and assuming a YES answer for all
        questions:

        ffsfsck -q -y


    2.  Checks the file system, using the alternate superblock at block 32.
        The system will be rebooted when the check is finished.

        fsfsck -B 32 -b /dev/dsk/s0u0p7.0


  FILES

    lost+found       Directory where orphaned files are placed.

    /etc/checklist   Default list of file systems to check

  DIAGNOSTICS




  2                                              Intergraph Corporation - 2/94






  ffsfsck(8)                          CLIX                          ffsfsck(8)



    The diagnostics produced by ffsfsck are explained in the CLIX System Guide
    (ISS 05.00 and earlier releases) or the CLIX Programming Guide (ISS 06.00
    and later releases).

  EXIT VALUES

    The ffsfsck command exits with a value of 0 if successful.   If
    unsuccessful, ffsfsck returns one of the following values:

    8    Internal or system error.

    12   Stopped due to signal.

  RELATED INFORMATION

    Commands: newfs(8), ffsmkfs(8), fsck(8)

    CLIX System Guide, CLIX Programming Guide




































  2/94 - Intergraph Corporation                                              3




Typewritten Software • bear@typewritten.org • Edmonds, WA 98026