1.\" $NetBSD: fsck_udf.8,v 1.2 2022/04/06 13:41:13 wiz Exp $ 2.\" 3.\" Copyright (C) 2022 Reinoud Zandijk 4.\" Based on fsck_msdos(8) by 5.\" Copyright (C) 1995 Wolfgang Solfrank 6.\" Copyright (c) 1995 Martin Husemann 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. 16.\" 17.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 18.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27.\" 28.\" 29.Dd February 6, 2022 30.Dt FSCK_UDF 8 31.Os 32.Sh NAME 33.Nm fsck_udf 34.Nd Universal Disk Format file system consistency checker 35.Sh SYNOPSIS 36.Nm 37.Fl p 38.Op Fl fH 39.Ar file system ... 40.Nm 41.Op Fl fHnSsy 42.Ar file system ... 43.Sh DESCRIPTION 44The 45.Nm 46utility verifies and repairs 47.Tn Universal Disk Format 48file systems (more commonly known as 49.Tn UDF 50file systems). 51.Pp 52The first form of 53.Nm 54preens the specified file systems. 55It is normally started by 56.Xr fsck 8 57run from 58.Pa /etc/rc 59during automatic reboot, when an UDF 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 second form of 69.Nm 70checks the specified file systems and tries to repair all 71detected inconsistencies, requesting confirmation before 72making any changes. 73.Pp 74The options are as follows: 75.Bl -tag -width XXXoptions 76.It Fl f 77Force detailed checking even when file system is marked closed. 78.It Fl H 79Enables heuristic repair options repairing known corruptions in the wild 80caused by bugs. 81.It Fl n 82Causes 83.Nm 84to assume no as the answer to all operator questions. 85.It Fl p 86Preen the specified file systems. 87.It Fl S 88Causes 89.Nm 90to scan for older VAT tables on recordable media. 91This allows older snapshots of the file system on recordable media to 92be recovered. 93.It Fl s Ar session 94Select session 95.Ar session 96to be checked on recordable media. 97This allows older sessions of the file system on recordable media to 98be recovered. 99.It Fl y 100Causes 101.Nm 102to assume yes as the answer to all operator questions. 103.El 104.Sh SEE ALSO 105.Xr fsck 8 , 106.Xr fsck_ffs 8 , 107.Xr mount_udf 8 108.Sh HISTORY 109A 110.Nm 111utility appeared in 112.Nx 10.0 . 113.Sh BUGS 114.Nm 115is still under construction. 116Not all possible reparations are implemented. 117