1*bad636d4Schs.\" $NetBSD: dumpfs.8,v 1.21 2022/12/19 18:51:42 chs Exp $ 20114e805Scgd.\" 3ccfa3742Smycroft.\" Copyright (c) 1983, 1991, 1993 4ccfa3742Smycroft.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 14326b2259Sagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 300114e805Scgd.\" @(#)dumpfs.8 8.1 (Berkeley) 6/5/93 31346aa5ddScgd.\" 3255641935Swiz.Dd February 27, 2010 3361f28255Scgd.Dt DUMPFS 8 34d1407362Sgarbled.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm dumpfs 3761f28255Scgd.Nd dump file system information 3861f28255Scgd.Sh SYNOPSIS 390dbf4ab9Slukem.Nm 4055641935Swiz.Op Fl acFijmsv 41e4ec9e7aSlukem.Ar filesys No \&| Ar device 42dc6113b2Swiz.Op Ar ... 4361f28255Scgd.Sh DESCRIPTION 440dbf4ab9Slukem.Nm 45e59ecd76Sdslprints out detailed information about the specified filesystems. 46e59ecd76Sdsl.Pp 47e59ecd76SdslOptions: 48e59ecd76Sdsl.Bl -tag -width Ds 4944b92621Sdsl.It Fl a 5044b92621SdslPrint details from each alternate superblock. 51e59ecd76Sdsl.It Fl c 52e59ecd76SdslPrint details of each cylinder group. 53dc6113b2Swiz.It Fl F 54dc6113b2SwizDump a file system image from a file, not a special device. 55e59ecd76Sdsl.It Fl i 56e59ecd76SdslPrint details of each allocated inode. 5755641935Swiz.It Fl j 5855641935SwizPrint details of the WAPBL journal. 59e59ecd76Sdsl.It Fl m 60e59ecd76SdslPrint details of the cylinder group summary. 61e59ecd76Sdsl.It Fl s 62e59ecd76SdslPrint details of the superblock. 63e59ecd76Sdsl.It Fl v 64e59ecd76SdslBe even more verbose. 65e59ecd76Sdsl.El 66e59ecd76Sdsl.Pp 67e59ecd76SdslIf none of 6844b92621Sdsl.Fl a , 69e59ecd76Sdsl.Fl c , 70e59ecd76Sdsl.Fl i , 7155641935Swiz.Fl j , 72dc6113b2Swiz.Fl m , 73e59ecd76Sdslor 7455641935Swiz.Fl s 75e59ecd76Sdslare given, then 76e59ecd76Sdsl.Nm 77e59ecd76Sdsldefaults to 7894c4dbf9Sdbj.Fl cmsv . 790dbf4ab9Slukem.Pp 800dbf4ab9Slukem.Nm 810dbf4ab9Slukemis useful mostly for finding out certain file system 820dbf4ab9Slukeminformation such as the file system block size, minimum 83*bad636d4Schsfree space percentage, and (for FFSv1) the file system level that 840dbf4ab9Slukemcan be upgraded with the 850dbf4ab9Slukem.Fl c 860dbf4ab9Slukemoption of 870dbf4ab9Slukem.Xr fsck_ffs 8 . 88e59ecd76SdslAll of this information is output by 89e59ecd76Sdsl.Nm 90e59ecd76Sdsl.Fl s . 9161f28255Scgd.Sh SEE ALSO 9261f28255Scgd.Xr disktab 5 , 930dbf4ab9Slukem.Xr fs 5 , 9461f28255Scgd.Xr disklabel 8 , 950dbf4ab9Slukem.Xr fsck 8 , 96a18d6f19Slukem.Xr fsck_ffs 8 , 9761f28255Scgd.Xr newfs 8 , 980dbf4ab9Slukem.Xr tunefs 8 9961f28255Scgd.Sh HISTORY 10061f28255ScgdThe 10161f28255Scgd.Nm 10261f28255Scgdcommand appeared in 10361f28255Scgd.Bx 4.2 . 104e59ecd76SdslThe 10544b92621Sdsl.Fl a , 106e59ecd76Sdsl.Fl c , 107e59ecd76Sdsl.Fl i , 108dc6113b2Swiz.Fl m , 109e59ecd76Sdsland 110e59ecd76Sdsl.Fl s 111dc6113b2Swizoptions, and the inode dump were added for 112dc6113b2Swiz.Nx 2.0 . 113b13adfa4SmlelstvThe 114b13adfa4Smlelstv.Fl j , 115b13adfa4Smlelstvoption was added for 116b13adfa4Smlelstv.Nx 6.0 . 117