1 .\" $NetBSD: scan_ffs.8,v 1.13 2007/05/01 21:28:50 perseant Exp $
2 .\" OpenBSD: scan_ffs.8,v 1.13 2004/12/14 00:04:21 jmc Exp
4 .\" Copyright (c) 2005 Juan Romero Pardines
5 .\" Copyright (c) 1997 Niklas Hallqvist, Tobias Weingartner
6 .\" All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
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.
17 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
34 .Nd find FFSv1/FFSv2/LFS partitions on a disk or file
44 will take a raw disk device that covers the whole disk or a file
45 and will find all possible FFSv[12]/LFS partitions, independent
47 It will show the file system type (FFSv1, FFSv2, or LFS), size, and
49 Also it has an option to show the values with a disklabel-alike
52 The options are as follows:
53 .Bl -tag -width XXsXstartXX
55 Report every superblock found with its sector address, rather than trying
56 to report the partition boundaries.
57 This option can be useful to find the other superblocks in a partition if
58 the first superblock has become corrupted.
61 refers to the raw device for the partition, rather than the entire disk.
63 Where to stop searching for file systems.
66 argument specifies the last sector that will be searched.
67 Default is the last sector of
70 Path to a file containing possible partitions inside of it.
72 Print out a string looking much like the input to disklabel.
73 With a little massaging, this output can usually be used by
76 Where to start searching for file systems.
77 This makes it easier to skip swap
78 partitions or other large non-UFS/FFS partitions.
81 argument specifies the first sector that will be searched.
82 Default is the first sector of
87 is doing, and what has been found.
92 argument specifies which device
94 should scan for file systems.
97 is just another name for the same program, both behave in exactly
104 program first appeared in
108 Support for searching in files was added in
118 .An Tobias Weingartner .
122 .An Juan Romero Pardines ,
123 who added support for LFS/FFSv2,
124 partitions with fragsize/blocksize greater than
125 2048/16384 for FFSv1, searching on files, etc.
129 won't find partitions with fragsize/blocksize greater than