Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 16:57:03 -0700 (MST)
From:      John Reynolds~ <jreynold@sedona.ch.intel.com>
To:        Kevin LEE <klee@esec.com.au>
Cc:        stable@freebsd.org
Subject:   Re: How to mount iso image file????
Message-ID:  <14959.27599.550911.821713@hip186.ch.intel.com>
In-Reply-To: <3A6F69FD.97E74874@esec.com.au>
References:  <3A6F69FD.97E74874@esec.com.au>

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

[ 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14959.27599.550911.821713>