Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sdffsck(1M) — HP-UX 8.07

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sdfmkdir(1)

sdf(4)

sdffsck(1M)

NAME

sdffsck − SDF file system consistency check, interactive repair

SYNOPSIS

sdffsck [−y] [−n] [−s] [−d] SDFdevice ...

DESCRIPTION

sdffsck is intended to mimic the Series 500 implementation of fsck.

sdffsck checks and interactively repairs inconsistent conditions for SDF file systems.  If the file system is consistent, then the number of files, the number of blocks used, the number of blocks free, and the percent of volume unused are reported.  If the file system is inconsistent, the operator is prompted for concurrence before each correction is attempted.  Note that many corrective actions will result in some loss of data.  The amount and severity of the loss can 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, sdffsck defaults to −n. 

sdffsck makes multiple passes over the SDF file system, so care should be taken to ensure that the SDF device is quiescent. 

Options

The following options are interpreted by sdffsck:

−y Assume a yes response to all questions asked. 

−n Assume a no response to all questions asked; do not open the file system for writing. 

−s Ignore the actual free list and unconditionally reconstruct a new one.  This option is useful in correcting multiply claimed blocks when one of the claimants is the free list.  When using this option, the number of unclaimed blocks reported by sdffsck includes all the blocks in the free map.  This can produce extensive output if −d is also selected. 

This option should only be selected after a previous sdffsck indicates a conflict between a file and the free map.  After sdffsck −s has executed, the integrity of the conflicting file(s) should be checked. 

−d Dump additional information.  The more ds that are present, the more information that is dumped.  Up to five ds can be specified.  Using more than two, however, can result in an overwhelming amount of output. 

sdffsck also recognizes, but ignores, the −S and −t options found in other versions of fsck. An appropriate warning is printed. The diagnostics are intended to be self-explanatory.

SDFdevice is a device file name describing the device on which the SDF file system to be checked resides (e.g., /dev/rdsk/c1d1s4). 

Error messages from sdffsck are written to standard error.  Information resulting from use of the −d option and normal output are both written to the standard output.  Both standard output and standard error are unbuffered. 

Inconsistencies checked include:

• Blocks claimed by more than one inode, or by the free list;

• Blocks claimed by an inode or the free list outside the range of the file system;

• Incorrect link counts;

• Blocks not accounted for anywhere;

• Bad inode format;

• Directory checks:

Files pointing to unallocated inodes;
Inode numbers out of range;
Multiply linked directories;
Link to the parent directory.

Orphaned files (allocated but unreferenced) with non-zero sizes are, with the operator’s concurrence, reconnected by placing them in the lost+found directory on the SDF file system.  The name assigned is the inode number.  The only restriction is that lost+found must exist in the root of the SDF file system being checked, and must have empty slots in which entries can be made.  This is accomplished by executing

sdfmkdir SDFdev:/lost+found

(using the name of the SDF device for SDFdev).

Orphaned directories and files with zero size are, with the operator’s concurrence, returned directly to the free list.  This also happens if the lost+found directory does not exist. 

WARNINGS

sdffsck cannot check devices with a logical block size greater than 4096. 

AUTHOR

sdffsck was developed by HP. 

SEE ALSO

sdfmkdir(1), sdf(4),

Series 500 HP-UX System Administrator Manual.

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

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