Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

How to Check a File System on Removable Media

  1. Become an administrator.

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

  2. Identify the file system type and select one of the following:
    • Check a UDFS file system, as follows:
      # fsck -F udfs device-name
    • Check a PCFS file system, as follows:
      # fsck -F pcfs device-name
Example 14-1  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.