From owner-freebsd-questions@FreeBSD.ORG Tue Feb 21 18:02:40 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74BF5106564A for ; Tue, 21 Feb 2012 18:02:39 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF4A8FC0C for ; Tue, 21 Feb 2012 18:02:38 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa02 [127.0.0.1]) by ltcfislmsgpa02.fnfis.com (8.14.4/8.14.4) with SMTP id q1LHQwuM006417; Tue, 21 Feb 2012 12:02:38 -0600 Received: from smtp.fisglobal.com ([10.132.206.31]) by ltcfislmsgpa02.fnfis.com with ESMTP id 134f7tra1p-2 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 21 Feb 2012 12:02:38 -0600 Received: from dtwin (10.14.152.15) by smtp.fisglobal.com (10.132.206.31) with Microsoft SMTP Server (TLS) id 14.1.323.3; Tue, 21 Feb 2012 12:02:36 -0600 From: Devin Teske To: "'jb'" , References: <201045320adcd61af12f6d6df2ffdd4e@ramattack.net> In-Reply-To: Date: Tue, 21 Feb 2012 10:02:42 -0800 Message-ID: <006b01ccf0c3$0263b6c0$072b2440$@fisglobal.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHsHIm8O7oKNxzWWqIj3M6QjIbxxAHsSoXTlfnok+A= Content-Language: en-us X-Originating-IP: [10.14.152.15] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361, 1.0.260, 0.0.0000 definitions=2012-02-21_06:2012-02-21, 2012-02-21, 1970-01-01 signatures=0 Cc: Subject: RE: New iso format on 9.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2012 18:02:40 -0000 > -----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 > > 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.