FSCK_UDFS(8) | Maintenance Commands and Procedures | FSCK_UDFS(8) |
fsck_udfs - file system consistency check and interactive repair
fsck -F udfs [generic_options] [special ...]
fsck -F udfs [generic_options] [-o specific_options]
[special ...]
fsck audits and interactively repairs inconsistent conditions on file systems. A file system to be checked can be specified by giving the name of the block or character special device or by giving the name of its mount point if a matching entry exists in /etc/vfstab.
special represents the character special device, for example, /dev/rdsk/c0t2d0s0, on which the file system resides. The character special device, not the block special device should be used. fsck does not work on a mounted block device.
If no special device is specified, all udfs file systems specified in the vfstab file with a fsckdev entry are checked. If the -p (preen) option is specified, udfs file systems with an fsckpass number greater than 1 are checked in parallel. See fsck(8).
In the case of correcting serious inconsistencies, by default, fsck asks for confirmation before making a repair and waits for the operator to respond with either yes or no. If the operator does not have write permission on the file system, fsck defaults to the -n (no corrections) option. See fsck(8).
Repairing some file system inconsistencies can result in loss of data. The amount and severity of data loss can be determined from the diagnostic output.
fsck automatically corrects innocuous inconsistencies. It displays a message for each corrected inconsistency that identifies the nature of the correction which took place on the file system. After successfully correcting a file system, fsck prints the number of files on that file system and the number of used and free blocks.
Inconsistencies checked are as follows:
The following options are supported:
generic_options
-m
udfs fsck: sanity check: /dev/rdsk/c0t2d0s0 okay
-n | -N
-V
-y | -Y
-o specific_options
f
p
w
/etc/vfstab
vfstab(5), attributes(7), fsck(8), fsdb_udfs(8), fstyp(8), mkfs(8), mkfs_udfs(8), mountall(8), reboot(8)
The operating system buffers file system data. Running fsck on a mounted file system can cause the operating system's buffers to become out of date with respect to the disk. For this reason, use fsck only when the file system is unmounted. If this is not possible, take care that the system is quiescent and that it is rebooted immediately after running fsck. A panic will probably occur if running fsck on a file system that modifies the file system while it is mounted.
If an unmount of the file system is not done before the system is shut down, the file system might become corrupted. In this case, a file system check needs to be completed before the next mount operation.
not writable
Currently Mounted on
FILE SYSTEM WAS MODIFIED
Can't read allocation extent
Bad tag on alloc extent
Volume sequence tag error
Space bitmap tag error
UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
November 26, 2017 | OmniOS |