Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2014 21:07:26 -0400
From:      Elliot Robinson <elliot.robinson@argiopetech.com>
To:        "Martin G. McCormick" <martin@server1.shellworld.net>, freebsd-questions@freebsd.org
Subject:   Re: Mounting One of the memstick Image Files
Message-ID:  <CAG7kECOoEXa2O45XLbzJJ6EWviqLqLTMCcpGU8G4LUq=wN3Khw@mail.gmail.com>
In-Reply-To: <20140822003749.ACA4C229A7@server1.shellworld.net>
References:  <20140822003749.ACA4C229A7@server1.shellworld.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I know your pain. On Linux, `mount -t ufs -o ufstype=44bsd` is what you're
looking for.  This requires that your system knows how to write UFS, which
might be a problem.

A possibly easier way to do this would be to boot off the memstick, remount
root as rw, and make the change from the live memstick. I've seen some
problems reading any new/modified files created by doing this from
Linux (complains about bad inodes), but it seems to work from the BSD
perspective...

---
Elliot Robinson
PGP Key: 9FEDE59A


On Thu, Aug 21, 2014 at 8:37 PM, Martin G. McCormick <
martin@server1.shellworld.net> wrote:

>         Sometimes, one runs in to an amazing amount of trouble
> trying to do the simplest things. I need to modify
> FreeBSD-9.1-RELEASE-amd64-memstick.img to enable a serial
> console. It involves adding only one more line to
> /boot/loader.conf. Dirt simple, right? Well, maybe. I have a
> Debian system with USB ports and a virtual FreeBSD system hosted
> by a Mac. The USB ports on the Mac are not passed through to the
> FreeBSD VM and technical difficulties are likely to prevent me
> from modifying the VirtualBox VM to set this up. No, you don't
> want to hear that story.
>
>         So, if I could mount FreeBSD-9.1-RELEASE-amd64-memstick.img,
> read/write,
> make the change, write back to the image and then copy the image
> back to the Debian system, I could still accomplish what needs
> to be done.
>         I am sure the mount process is similar to mounting an
> ISO image, but what type description goes in the -t flag?
>         In all of this, I also discovered that you can't mount
> the ufs file system in Debian although it almost happens. The
> mount appears to work but one gets a spew of I/O errors any time
> one does anything in what should be the UFS tree.
>         I think I also read that if you recompile the Debian
> kernel, you can mount ufs read-only which doesn't help anyway.
>         This is definitely in the "For want of a nail, a shoe
> was lost" department.
>         Many thanks.
>
> Martin McCormick
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG7kECOoEXa2O45XLbzJJ6EWviqLqLTMCcpGU8G4LUq=wN3Khw>