freebsd-nq/tools/tools/find-sb
Pawel Jakub Dawidek b9116fb333 Add fs_unrefs field to the super block structure.
Sponsored by:	home.pl
2006-10-31 22:18:33 +00:00
..
find-sb.c Initializate "offset" variable to zero; otherwise, if not using 2006-09-28 12:33:36 +00:00
Makefile Initializate "offset" variable to zero; otherwise, if not using 2006-09-28 12:33:36 +00:00
mini_ufs.h Add fs_unrefs field to the super block structure. 2006-10-31 22:18:33 +00:00
README

$FreeBSD$

find-sb is a program which scans the input file you specify (normally a
raw disk slice) for filesystems.  It's not very smart, nor particularly
efficient.  All it does is read the input file one device block at a time,
and when it reads a block that has a UFS superblock magic number in the
right place, it tells you about it.  It helped me find an important partition
after the disklabel got somehow trashed.  It might not work for you.  After
looking carefully at the output of this program and creating a new disklabel,
you should use `fsck -n' or a tool like ffsinfo(8) to verify that there is
in fact something vaguely sane located at that spot on the disk.  (There are
checks that fsck can do to verify the validity of the superblock which
this program does not even attempt.)

If you use this program and as a result trash what was left of your disk,
well, too bad.  You should have kept a backup anyway.  If you read the source
code and don't immediately understand how it works and what it's doing, then
DON'T USE IT.