1fsck.exfat(8) System Manager's Manual fsck.exfat(8)
2
3
4
6 fsck.exfat - check an exFAT filesystem
7
9 fsck.exfat [ -a ] [ -n ] [ -r ] [ -v ] [ -y ] [ -b ] [ -v ] device
10 fsck.exfat -V
11
13 fsck.exfat checks an exFAT filesystem and repairs the filesystem de‐
14 pending on the options passed. The following corruptions can be re‐
15 paired, and see the option, '-s'.
16
17 - Boot sector has invalid parameters. If backup boot sector is
18 valid, replace the boot sector with it.
19
20 - Cluster is marked as free but belonged to a file, or vise versa.
21 The bitmap for the cluster is marked properly.
22
23 - File size is abnormally large considering the count of clusters.
24 The size is changed.
25
26 - File size is abnormally small considering the count of clusters.
27 The remaining clusters are deleted.
28
29 - File's cluster chain has an invalid cluster number. The number
30 are changed to EOF, and the file size is also changed.
31
32 - File's cluster chain contains a loop. The loop is broken.
33
34 - Files share the same cluster. Cluster chains for files except
35 one are broken.
36
37 - Start cluster number is invalid. The cluster number and file
38 size are changed to 0.
39
40 - Checksum value of direcotry entry set is invalid. Directory en‐
41 try set is deleted.
42
43 - Bad hash value of a file name. The hash value is changed prop‐
44 erly.
45
46 - Fields of directory entry set have invalid values. Directory en‐
47 try set is deleted.
48
50 -a This option does the same thing as the -p option. It is pro‐
51 vided for backwards compatibility only; it is suggested that
52 people use -p option whenever possible.
53
54 -n Check the filesystem but do not attempt to repair the filesys‐
55 tem.
56
57 -p Repair the filesystem without user interaction if it can be done
58 safely.
59
60 -r Repair the filesystem interactively.
61
62 -s Create files in /LOST+FOUND for orphan clusters. These files
63 have clusters allocated but not belonged to any files when
64 reparing the filesystem. clusters unused and contiguous in bit‐
65 map are allocated to the same file.
66
67 -v Prints verbose debugging information while checking the exFAT
68 filesystem.
69
70 -V Prints the version number and exits.
71
72 -y Repair the filesystem answering yes to all questions.
73
74 -b Try to repair the filesystem even if the exFAT filesystem is not
75 found.
76
77
79 repair a corrupted device and create files in /LOST+FOUND, which have
80 clusters allocated but not belonged to any files when reparing the de‐
81 vice.
82 $ fsck.exfat -p -s /dev/sda1
83
84
86 fsck(8), fstab(5),
87
88
89
90 fsck.exfat(8)