mdconfig - need some help

From: Christoph P. Kukulies (kuku_at_kukulies.org)
Date: 10/31/04


Date: Sun, 31 Oct 2004 22:40:57 +0100
To: hackers@freebsd.org

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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


Relevant Pages

  • cannot boot-up linux, unable to read superblock
    ... mount: error 22 mounting ext3 ... enable lvm and tried fsck for the volumes (one is empty volume? ... Attempt to read block from filesystem resulted in short read while trying to open /dev/VolGroup00/LogVol00 ...
    (RedHat)
  • Re: freebsd-security Digest, Vol 187, Issue 4
    ... I was so transfixed on Josh stating that the attacker could as well ... just mount a filesystem with suid root binaries and how that would be ... more useful than a buffer overflow in the filesystem driver. ... How about something to force a fsck ...
    (FreeBSD-Security)
  • Re: Cannot mount hard disk
    ... I could mount it with no problem. ... Sounds like something bad has happened to the filesystem... ... Thanks, Andy and Karl. ... Meanwhile, I ran fsck, and now I can mount ...
    (Fedora)
  • Force mount with HPUX 11.00 when Block Read Error
    ... This error can't be fixed by fsck. ... find suggest to force the mounting of the involved filesystem. ... find a -f switch in HPUX 11.00, so I can't mount the filesystem. ...
    (comp.sys.hp.hpux)
  • Re: Cannot mount hard disk
    ... I could mount it with no problem. ... Sounds like something bad has happened to the filesystem... ... between partitions in its history? ... Meanwhile, I ran fsck, and now I can mount ...
    (Fedora)