disklabel recovery

Maxim Konovalov maxim at macomnet.ru
Sat Oct 29 23:22:23 PDT 2005


On Sat, 29 Oct 2005, 20:59+0200, Gal Ben-Haim wrote:

> Hello,
> Im running FreeBSD 5.4
> I accedently enabled swap on /dev/ad2s1c (raw label), this destroyed my
> disklabel, the data is still on the disk (after doing 'cat' on the /dev
> device).
> When I try to mount the filesystem I get: the mount is successful, but when
> I 'ls' the mount point I get bad file descriptor.
> I tried to create a new label with 'sysinstall', but the label which is
> created seems to be with invalid values.
> I tried running scan_ffs, after it read all the blocks on the disk it
> outputs 'input/output error.
>
> is there any way to reconstruct the label properly or access atleast some of
> the files ?

src/tools/tools/find-sb/
ports/sysutils/scan_ffs/
ports/sysutils/ffsrecov/

-- 
Maxim Konovalov


More information about the freebsd-fs mailing list