1.\" $OpenBSD: fsck_msdos.8,v 1.16 2015/10/14 14:33:45 deraadt Exp $ 2.\" $NetBSD: fsck_msdos.8,v 1.4 1996/10/17 20:41:24 cgd Exp $ 3.\" 4.\" Copyright (C) 1995 Wolfgang Solfrank 5.\" Copyright (c) 1995 Martin Husemann 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 17.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" 27.\" 28.Dd $Mdocdate: October 14 2015 $ 29.Dt FSCK_MSDOS 8 30.Os 31.Sh NAME 32.Nm fsck_msdos 33.Nd DOS/Windows (FAT) file system consistency checker 34.Sh SYNOPSIS 35.Nm fsck_msdos 36.Op Fl fnpy 37.Ar filesystem 38.Sh DESCRIPTION 39The 40.Nm 41utility verifies and repairs 42.Tn FAT 43file systems (more commonly known as 44.Tn DOS 45file systems). 46It checks the specified filesystem and tries to repair all 47detected inconsistencies, requesting confirmation before 48making any changes. 49.Pp 50If the 51.Fl p 52flag is given, 53.Nm 54preens the specified filesystem. 55It is normally started this way by 56.Xr fsck 8 57run from 58.Xr rc 8 59during automatic reboot, when a FAT file system is detected. 60When preening file systems, 61.Nm 62will fix common inconsistencies non-interactively. 63If more serious problems are found, 64.Nm 65does not try to fix them, indicates that it was not 66successful, and exits. 67.Pp 68The options are as follows: 69.Bl -tag -width Ds 70.It Fl f 71This option is ignored by 72.Nm fsck_msdos , 73and is present only for compatibility with programs that 74check other file system types for consistency, such as 75.Xr fsck_ffs 8 . 76.It Fl n 77Assume a 78.Dq no 79response to all questions asked by 80.Nm 81except for 82.Dq CONTINUE? , 83which is assumed to be affirmative. 84The filesystem will not be opened for writing. 85This is the default for file systems to be checked that are 86concurrently mounted writable. 87.It Fl p 88Preen the specified filesystem. 89.It Fl y 90Causes 91.Nm 92to assume 93.Dq yes 94as the answer to all operator questions. 95.El 96.Pp 97If neither of the 98.Fl y 99or 100.Fl n 101options are specified, the user may force 102.Nm 103to assume an answer of 104.Dq yes 105to all the remaining questions by replying to a question with a value of 106.Dq F . 107.Sh SEE ALSO 108.Xr fs 5 , 109.Xr fstab 5 , 110.Xr fsck 8 , 111.Xr fsck_ffs 8 , 112.Xr mount_msdos 8 , 113.Xr newfs_msdos 8 , 114.Xr rc 8 115.Sh BUGS 116.Nm 117is still under construction. 118