Sun Microsystems Logo
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Syntax and Options for the fsck Command

The fsck command checks and repairs inconsistencies in file systems. If you run the fsck command without any options, it interactively asks for confirmation before making repairs. This command has four options:

Command and Option

Description

fsck -m

Checks whether a file system can be mounted

fsck -y

Assumes a yes response for all repairs

fsck -n

Assumes a no response for all repairs

fsck -o p

Noninteractively preens the file system, fixing all expected (innocuous) inconsistencies, but exits when a serious problem is encountered

Previous Previous     Contents     Index     Next Next