Go to main content

Managing File Systems in Oracle® Solaris 11.3

Exit Print View

Updated: October 2017
 
 

Preening UFS File Systems

The fsck –o p command checks a UFS file system and automatically fix the problems that normally result from an unexpected system shutdown. This command exits immediately if it encounters a problem that requires operator intervention. This command also permits parallel checking of the file systems.

You can run the fsck –o p command to preen the file systems after an unclean shutdown. In this mode, the fsck command does not look at the clean flag and performs a full check. These actions are a subset of the actions performed by the interactive fsck command.

How to Preen a UFS File System

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Unmount the UFS file system.
    # umount /mount-point
  3. Check the UFS file system using the preen (–p) option.
    # fsck -o p /dev/rdsk/device-name

    You can preen individual file systems by using /mount-point or /dev/rdsk/device-name as arguments to the fsck command.

Example 13  Preening a UFS File System

The following example shows how to preen the /export/home file system.

# fsck -o p /export/home