Tuxera NTFS driver
[tomato.git] / release / src-rt-6.x.4708 / router / tuxera / broadcom_arm / hfsplus / docs / text / fsck_hfs.txt
blobed654214043bdba86dee4e8d8a58cd2ade168864
1 FSCK_HFS(8)                                                        FSCK_HFS(8)
5 NAME
6        fsck_hfs - check and repair an HFS+ volume
8 SYNOPSIS
9        fsck_hfs [options] device
11 DESCRIPTION
12        fsck_hfs  will  check an HFS+ volume for errors, and optionally correct
13        them.  Run fsck_hfs without arguments for a full list of options.
15 OPTIONS
16        Below is a summary of all the options that fsck_hfs accepts.
18        -q     Do only a quick test to check  if  the  file-system  will  mount
19               properly.  This  is  useful  when you want to do a fast check to
20               find out if the volume was unmounted cleanly. It returns  a  non
21               non-zero  exit  value  if  the volume was not unmounted cleanly,
22               otherwise an exit value of 0 is returned.
24        -d     Verbose output. This is useful for debugging when fsck_hfs  can‐
25               not repair a corrupted HFS+ volume.
27        -f     Force  fsck_hfs  to check and repair journaled HFS+ file-system.
28               When used with -p option, forces fsck_hfs to check 'clean'  file
29               systems.
31        -l     Lock the file-system and perform a read-only check. This is use‐
32               ful when you want to check a mounted volume, without  trying  to
33               repair it.
35        -m  MODE
36               Set  permissions  for  the lost+found directory when created. It
37               accepts an octal value that will be used to set the  permission.
38               fsck_hfs  places  orphaned  files  and directories in lost+found
39               directory (located in the  root  directory).   Default  mode  is
40               01777.
42        -p     Preen the specified file-system.
44        -c  SIZE
45               Specify  the  internal  cache size used by fsck_hfs. Bigger size
46               can ensure better performance but can deadlock when used with -l
47               option.  It  accepts  size  value as an argument, which can be a
48               decimal, octal, or a hexadecimal number. Numbers ending  with  a
49               'k',  'm'  or  'g'  are multiplied by 1024 (1K), 1048576 (1M) or
50               1073741824 (1G), respectively.
52        -r     Rebuild the catalog file on the specified file-system.
54        -y     Always try to repair every corruption that is found.
56        -n     Never try to repair any corruption that is found.
59 EXIT STATUS
60        0: Success quick test, file-system was cleanly unmounted.
62        3: File-system Dirty, no checks.
64        4: Writeable Root File-system was fixed.
66        8: Standard error exit.
68 BUGS
69        If you find a bug please send an email describing the problem  to  hfs-
70        support@tuxera.com.
72 AVAILABILITY
73        fsck_hfs is part of the Tuxera HFS+ package.
77 Tuxera HFS+ 3014.5.8             December 2013                     FSCK_HFS(8)