[ILUG] Mounting FreeBSD disk images under Linux?

Ronan Cunniffe rcunniff at stp.dias.ie
Mon Sep 27 14:46:22 IST 2004


Hi all,

   I have some ex-FreeBSD disks that (I hope) contains some fossil source
code I now unexpectedly need.  I've been through the Linux + FreeBSD
Mini-HOWTO, and Google, and no luck.

   Debian unstable, 2.6.7 kernel with ufs and bsd disklabel support, disk
images set up via loopback rather than real disks.

If I do fdisk /dev/loop0, I get:

  This disk has both DOS and BSD magic.
  Give the 'b' command to go to BSD mode.

  The number of cylinders for this disk is set to 371597.
  There is nothing wrong with that, but this is larger than 1024,
  and could in certain setups cause problems with:
  1) software that runs at boot time (e.g., old versions of LILO)
  2) booting and partitioning software from other OSs
     (e.g., DOS FDISK, OS/2 FDISK)

  Command (m for help): b
  Partition /dev/loop0p1  has invalid starting sector 0.

  Command (m for help):

(I've no idea whether the above is a real error or not)

Anyway

   mount -t ufs -o ro,ufstype=44bsd /dev/loop0 tmp

gives me

  mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       or too many mounted file systems

which I suspect is because I'm not getting at the partitions within the
slice, but I don't know how this works from the linux worldview.

Somebody better help, or the penguin gets a pitchfork where it's going
to hurt.

Thanks

Ronan



More information about the ILUG mailing list