Mounting One of the memstick Image Files

A.J. Kehoe IV (Nanoman) nanoman at nanoman.ca
Fri Aug 22 01:37:41 UTC 2014


Martin G. McCormick 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

The memstick images are UFS, so on FreeBSD, you'd use "mount -t ufs".  And if you don't want your installation media to be mounted read-write automatically, note that there's an unresolved bug affecting the memstick images:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187161

-- 
A.J. Kehoe IV (Nanoman)     |  /"\  ASCII Ribbon Campaign
Nanoman's Company           |  \ /   - No HTML/RTF in E-mail
E-mail: nanoman at nanoman.ca  |   X    - No proprietary attachments
WWW: http://www.nanoman.ca/ |  / \   - Respect for open standards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3924 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140821/c621afdb/attachment.bin>


More information about the freebsd-questions mailing list