From owner-freebsd-stable Wed Jan 24 20:58:58 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lynx.aba.net.au (lynx.esec.com.au [203.21.84.1]) by hub.freebsd.org (Postfix) with SMTP id 2EA9337B6B0 for ; Wed, 24 Jan 2001 20:58:39 -0800 (PST) Received: (qmail 17306 invoked from network); 25 Jan 2001 04:58:35 -0000 Received: from swun.esec.com.au (HELO esec.com.au) (203.21.85.207) by lynx.esec.com.au with SMTP; 25 Jan 2001 04:58:35 -0000 Message-ID: <3A6FB3AC.22BA40BF@esec.com.au> Date: Thu, 25 Jan 2001 16:03:41 +1100 From: Sam Wun Organization: eSec Limited X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: John Reynolds~ Cc: Kevin LEE , stable@freebsd.org Subject: Re: How to mount iso image file???? References: <3A6F69FD.97E74874@esec.com.au> <14959.27599.550911.821713@hip186.ch.intel.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I got the following errors: #vnconfig -c /dev/vn0c songs.iso vnconfig: VNIOCATTACH: Device busy Sam John Reynolds~ wrote: > [ 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/). > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message