> -----Original Message-----
> From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> questi...@freebsd.org] On Behalf Of jb
> Sent: Tuesday, February 21, 2012 9:53 AM
> To: freebsd-questions@freebsd.org
> Subject: Re: New iso format on 9.0
> 
>  <egoitz <at> ramattack.net> writes:
> 
> >
> > Good morning,
> >
> > Previously I was doing a : 'tar -C /expert/netboot/freebsd8 -pxvf
> > 8.0-RELEASE-amd64-disc1.iso' for extracting iso files.
> > ...
> 
> There is a simple way to access contents of an iso file:
> # mount -o loop some.iso /mnt
> 

That works on FreeBSD? I commonly use that (daily even) on Linux, but was not
aware that would work on FreeBSD.

Here's the method I use on [modern] FreeBSD:

        mdconfig -a -t vnode -u 99 -f $ISOFILE
        mount -t cd9660 /dev/md99 /mnt

And here's the method I would use on LEGACY FreeBSD:

        cd /dev && sh MAKEDEV vn99
        vnconfig -c vn99 $ISOFILE
        mount -t cd9660 /dev/vn99c /mnt

Or, you can just download this script which works on both Linux and FreeBSD:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/src/tools/mou
nt_iso.sh?view=log

Usage:
        ./mount_iso.sh $ISOFILE /mnt

Don't forget that when you're done, you have to deconfigure the device...

On [modern] FreeBSD:

        umount /mnt
        mdconfig -d -u 99

And here's the method for LEGACY FreeBSD:

        umount /mnt
        vnconfig -u vn99c

Or, you can just download this script which works on both Linux and FreeBSD:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/src/tools/umo
unt_iso.sh?view=log

Usage:
        ./umount_iso.sh /mnt

-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to