System Administration Guide: Basic Administration

How to Check a File System on Removable Media

  1. Become superuser.

  2. Identify the name service and select one of the following:

    1. Check a UFS file system.


      # fsck -F ufs device-name
      
    2. Check a UDFS file system.


      # fsck -F udfs device-name
      
    3. Check a PCFS file system.


      # fsck -F pcfs device-name
      

Example—Checking a PCFS File System on Removable Media

The following example shows how check the consistency of a PCFS file system on media.


# fsck -F pcfs /dev/rdsk/c0t4d0s2
** /dev/rdsk/c0t4d0s2
** Scanning file system meta-data
** Correcting any meta-data discrepancies
1457664 bytes.
0 bytes in bad sectors.
0 bytes in 0 directories.
0 bytes in 0 files.
1457664 bytes free.
512 bytes per allocation unit.
2847 total allocation units.
2847 available allocation units.
#