Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2012 10:02:42 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        "'jb'" <jb.1234abcd@gmail.com>, <freebsd-questions@freebsd.org>
Subject:   RE: New iso format on 9.0
Message-ID:  <006b01ccf0c3$0263b6c0$072b2440$@fisglobal.com>
In-Reply-To: <loom.20120221T184703-253@post.gmane.org>
References:  <201045320adcd61af12f6d6df2ffdd4e@ramattack.net> <loom.20120221T184703-253@post.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006b01ccf0c3$0263b6c0$072b2440$>