NameDateSize

..03-May-202482

find-sb.cH A D17-Aug-20232.8 KiB

MakefileH A D17-Aug-202344

mini_ufs.hH A D17-Aug-20238.5 KiB

READMEH A D17-Aug-20231 KiB

README

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