成为超级用户。
确定文件系统类型,然后选择以下操作之一:
检查 UFS 文件系统。
# fsck -F ufs device-name |
检查 UDFS 文件系统。
# fsck -F udfs device-name |
检查 PCFS 文件系统。
# fsck -F pcfs device-name |
以下示例说明如何检查介质上的 PCFS 文件系统的一致性。在本示例中,vold 没有运行。
# 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. # |