System Administration Guide: Devices and File Systems

ProcedureHow to Check a File System on Removable Media

  1. Become superuser.

  2. Identify the file system type and select one of the following:

    • Check a UFS file system.


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


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


      # fsck -F pcfs device-name
      

Example 2–4 Checking a PCFS File System on Removable Media

The following example shows how check the consistency of a PCFS file system on media. In this example, vold is not running.


# 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.
#