From owner-freebsd-stable Wed Jan 24 15:57:44 2001 Delivered-To: freebsd-stable@freebsd.org Received: from pan.ch.intel.com (pan.ch.intel.com [143.182.246.24]) by hub.freebsd.org (Postfix) with ESMTP id 73F1037B401 for ; Wed, 24 Jan 2001 15:57:23 -0800 (PST) Received: from sedona.intel.com (sedona.ch.intel.com [143.182.218.21]) by pan.ch.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.33 2000/11/21 19:27:27 smothers Exp $) with ESMTP id QAA24564; Wed, 24 Jan 2001 16:57:04 -0700 (MST) Received: from hip186.ch.intel.com (hip186.ch.intel.com [143.182.225.68]) by sedona.intel.com (8.9.1a/8.9.1/d: sendmail.cf,v 1.14 2001/01/02 18:39:59 steved Exp $) with ESMTP id QAA20315; Wed, 24 Jan 2001 16:57:03 -0700 (MST) X-Envelope-From: jreynold@sedona.ch.intel.com Received: (from jreynold@localhost) by hip186.ch.intel.com (8.9.1a/8.9.1/d: client.m4,v 1.3 1998/09/29 16:36:11 sedayao Exp sedayao $) id SAA01662; Wed, 24 Jan 2001 18:57:03 -0500 (EST) X-Authentication-Warning: hip186.ch.intel.com: jreynold set sender to jreynold@sedona.ch.intel.com using -f From: John Reynolds~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14959.27599.550911.821713@hip186.ch.intel.com> Date: Wed, 24 Jan 2001 16:57:03 -0700 (MST) To: Kevin LEE Subject: Re: How to mount iso image file???? Newsgroups: comp.unix.bsd.freebsd.misc In-Reply-To: <3A6F69FD.97E74874@esec.com.au> References: <3A6F69FD.97E74874@esec.com.au> X-Mailer: VM 6.75 under Emacs 20.6.3 Cc: stable@freebsd.org Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ On Thursday, January 25, Kevin LEE wrote: ] > Hi all: > > In RH7.0, there is a option of loop in the mount command which > allows you to mount a iso image file to a specified mount point, so that > the actual content of the iso file can be,viiew.. > > ie > > mount -t iso9660 -o ro,loop /somedir/somedir.iso /mnt/iso/ > and > cd /mnt/iso > You can view the content of the iso file. > > But I can find this option in the mount command in FreeBSD ? > Is there any to view the context of an iso file before I burn it into a > CD ???? > Yup. You have to have 'pseudo-device vn' in your kernel config and you have to make sure the vn* devices are made in /dev. Once you do that, the following commands will work: vnconfig -c /dev/vn0c filename.iso mount -t cd9660 /dev/vn0c /mnt Then you can "cd /mnt" and play around in that "loopback" filesystem to your heart's content. Just be sure to umount it, and "vnconfig -u /dev/vn0c" the vn0c device after you're done with it. See the man page on vnconfig for more information. -Jr ps: actually, now that I look in /modules, there is "vn.ko" so you might be able to get away with doing "kldload vn.ko" (and make sure the device nodes are in /dev/). -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | John Reynolds WCCG, CCE, Higher Levels of Abstraction | | Intel Corporation MS: CH6-210 Phone: 480-554-9092 pgr: 602-868-6512 | | jreynold@sedona.ch.intel.com http://www-aec.ch.intel.com/~jreynold/ | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message