JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Devices and File Systems
search filter icon
search icon

Document Information

Preface

1.  Managing Removable Media (Overview)

2.  Managing Removable Media (Tasks)

3.  Accessing Removable Media (Tasks)

4.  Writing CDs and DVDs (Tasks)

5.  Managing Devices (Overview/Tasks)

6.  Dynamically Configuring Devices (Tasks)

7.  Using USB Devices (Overview)

8.  Using USB Devices (Tasks)

9.  Using InfiniBand Devices (Overview/Tasks)

10.  Managing Disks (Overview)

11.  Administering Disks (Tasks)

12.  SPARC: Adding a Disk (Tasks)

13.  x86: Adding a Disk (Tasks)

14.  Configuring Oracle Solaris iSCSI Targets and Initiators (Tasks)

15.  The format Utility (Reference)

16.  Managing File Systems (Overview)

What's New in File Systems?

File System Monitoring Tool (fsstat)

Oracle Solaris ZFS File System

Enhancements to UFS File System Utilities (fsck, mkfs, and newfs)

Automatic Search for Backup Superblocks

fsck Reports When it Needs to be Rerun

New fsck Messages Regarding Extended Attributes

Better Handling of Duplicate Blocks or Fragments

Where to Find File System Management Tasks

Overview of File Systems

Types of File Systems

Disk-Based File Systems

The Universal Disk Format (UDFS) File System

Network-Based File Systems

Virtual File Systems

CacheFS File System

NFS Version 4 and CacheFS Compatibility Issues

Temporary File System

The Loopback File System

Process File System

Additional Virtual File Systems

libc_hwcap

Extended File Attributes

Swap Space

Commands for UFS File System Administration

How File System Commands Determine the File System Type

Manual Pages for Generic and Specific File System Commands

Default Solaris File Systems

UFS File System

UFS File System Features

Planning UFS File Systems

64-bit: Support of Multiterabyte UFS File Systems

Features of Multiterabyte UFS File Systems

Limitations of Multiterabyte UFS File Systems

Where to Find Multiterabyte UFS Tasks

UFS Logging

UFS Snapshots

UFS Direct Input/Output (I/O)

Mounting and Unmounting File Systems

The Mounted File System Table

The Virtual File System Table

The NFS Environment

NFS Version 4

Automounting (autofs)

Determining a File System's Type

How to Determine a File System's Type

17.  Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)

18.  Mounting and Unmounting File Systems (Tasks)

19.  Using The CacheFS File System (Tasks)

20.  Configuring Additional Swap Space (Tasks)

21.  Checking UFS File System Consistency (Tasks)

22.  UFS File System (Reference)

23.  Backing Up and Restoring UFS File Systems (Overview)

24.  Backing Up UFS Files and File Systems (Tasks)

25.  Using UFS Snapshots (Tasks)

26.  Restoring UFS Files and File Systems (Tasks)

27.  UFS Backup and Restore Commands (Reference)

28.  Copying UFS Files and File Systems (Tasks)

29.  Managing Tape Drives (Tasks)

Index

Commands for UFS File System Administration

Most commands for file system administration have both a generic component and a file system–specific component. Whenever possible, you should use the generic commands, which call the file system–specific component. The following table lists the generic commands for file system administration. These commands are located in the /usr/sbin directory.

Table 16-1 Generic Commands for File System Administration

Command
Description
Man Page
clri
Clears inodes
df
Reports the number of free disk blocks and files
ff
Lists file names and statistics for a file system
fsck
Checks the integrity of a file system and repairs any damage found
fsdb
Debugs the file system
fstyp
Determines the file system type
labelit
Lists or provides labels for file systems when they are copied to tape (for use only by the volcopy command)
mkfs
Creates a new file system
mount
Mounts local and remote file systems
mountall
Mounts all file systems that are specified in the virtual file system table (/etc/vfstab)
ncheck
Generates a list of path names with their inode numbers
umount
Unmounts local and remote file systems
umountall
Unmounts all file systems that are specified in the virtual file system table (/etc/vfstab)
volcopy
Creates an image copy of a file system

How File System Commands Determine the File System Type

The generic file system commands determine the file system type by following this sequence:

  1. From the -F option, if supplied.

  2. By matching a special device with an entry in the /etc/vfstab file (if the special device is supplied). For example, fsck first looks for a match against the fsck device field. If no match is found, the command then checks the special device field.

  3. By using the default specified in the /etc/default/fs file for local file systems and in the /etc/dfs/fstypes file for remote file systems.

Manual Pages for Generic and Specific File System Commands

Both the generic commands and specific commands have manual pages in the man pages section 1M: System Administration Commands. The manual pages for the generic file system commands provide information about generic command options only. The manual page for a specific file system command has information about options for that file system. To look at a manual page for a specific file system, append an underscore and the abbreviation for the file system type to the generic command name.

For example, to see the specific manual page for mounting a UFS file system, type the following:

$ man mount_ufs

For example, to see the specific manual page for mounting a ZFS file system, type the following:

$ man zfs