]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/find-sb/README
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / find-sb / README
1 $FreeBSD$
2
3 find-sb is a program which scans the input file you specify (normally a
4 raw disk slice) for filesystems.  It's not very smart, nor particularly
5 efficient.  All it does is read the input file one device block at a time,
6 and when it reads a block that has a UFS superblock magic number in the
7 right place, it tells you about it.  It helped me find an important partition
8 after the disklabel got somehow trashed.  It might not work for you.  After
9 looking carefully at the output of this program and creating a new disklabel,
10 you should use `fsck -n' or a tool like ffsinfo(8) to verify that there is
11 in fact something vaguely sane located at that spot on the disk.  (There are
12 checks that fsck can do to verify the validity of the superblock which
13 this program does not even attempt.)
14
15 If you use this program and as a result trash what was left of your disk,
16 well, too bad.  You should have kept a backup anyway.  If you read the source
17 code and don't immediately understand how it works and what it's doing, then
18 DON'T USE IT.