mdconfig - need some help

Christoph P. Kukulies kuku at kukulies.org
Sun Oct 31 13:41:01 PST 2004


I'm trying to recover a filesystem. I dd'd /dev/ad2s1e into a 10 GB 
file and transfered it to another system. 

# mdconfig -a -t vnode -f ad2s1.dmp
md2
# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a    257838   168758    68454    71%    /
devfs               1        1        0   100%    /dev
/dev/ad0s1e    257838     4752   232460     2%    /tmp
/dev/ad0s1f  57829724 32600992 20602356    61%    /usr
/dev/ad0s1d    257838    91456   145756    39%    /var
procfs              4        4        0   100%    /proc
# mount /dev/md2 /mnt
mount: /dev/md2 on /mnt: incorrect super block
# fsck /dev/md2
fsck: Could not determine filesystem type
# fsck -t ffs /dev/md2
** /dev/md2
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ffs: /dev/md2: can't read disk label

What am I doing wrong?
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org



More information about the freebsd-hackers mailing list