Re: mounting 1.3 generic pc image under linux (mount -o loop,ufstype=44bsd -t ufs DOES NOT WORK FOR 1.3)

Joey Morin <[email protected]>
Newsgroups gmane.comp.security.firewalls.m0n0wall
Message-ID <[email protected]>
i wrote a little script:

#!/bin/bash
offset=0
until mount -o offset=$offset $@ > /dev/null 2>&1 ; do
  printf "offset=%d failed\r" $offset
  offset=$(($offset+512))
done
printf "Successful mount at offset=%d\n" $offset
mount

with it i was able to determine that i could mount the 1.3 image with an
offset of 8192

hope this helps anyone else trying to accomplish the same thing...

cheers,
jj

On Mon, Dec 28, 2009 at 1:51 AM, Joey Morin <[email protected]> wrote:

> i've been trying to mount the generic-pc-1.3.img under linux as per:
>
> http://www.linuxquestions.org/questions/debian-26/how-to-mount-freebsd-partition-from-debian-gnu.linux.-etch-4.0-583605/
>
> mount -o loop,ufstype=44bsd -t ufs generic-pc-1.3 /mnt/m0n0
>
> i've experienced the same problems as the users in the above link.  bad
> magic number.
>
> i poked around quite a bit, tried different versions of linux (ubuntu,
> insert) and the result is the same.
>
> years ago, i had succeded in mounting the image under slackware using the
> above technique.
>
> on a hunch i tried the same with 1.2... works just fine!
>
> so looks like the problem is that something has changed between 1.2 and 1.3
>
> anyone have any idea how to mount the 1.3 image?
>
> jj
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.