From owner-freebsd-ports Fri Oct 1 15:43:42 1999 Delivered-To: freebsd-ports@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id 414D314C39 for ; Fri, 1 Oct 1999 15:43:39 -0700 (PDT) (envelope-from jose@we.lc.ehu.es) Received: from we.lc.ehu.es (lxpxba.lx.ehu.es [158.227.99.126]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id AAA28160; Sat, 2 Oct 1999 00:43:18 +0200 (MET DST) Message-ID: <37F53905.27ADE87D@we.lc.ehu.es> Date: Sat, 02 Oct 1999 00:43:17 +0200 From: "Jose M. Alcaide" Organization: Universidad del =?iso-8859-1?Q?Pa=EDs?= Vasco - Dept. de Electricidad y =?iso-8859-1?Q?Electr=F3nica?= X-Mailer: Mozilla 4.6 [en] (X11; U; FreeBSD 3.3-RELEASE i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: Michael Oski Cc: freebsd-ports@FreeBSD.ORG Subject: Re: ISO Image question - possibly strange References: <37F52ED8.A6D4ACF0@jps.net> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Michael Oski wrote: > > OK, I know there is a port called mkisofs which will take a directory > structure and create an ISO image of it, but is there anything that will > do the opposite? I want to take an ISO image and dump it to a file > system, rather than a CDR. Is this even possible? > You do not need any port for doing that. First, you must build a kernel with support for vnode devices; add a line like this to the kernel configuration file: pseudo-device vn Rebuild the kernel, reboot, and type: cd /dev; sh MAKEDEV vn0 This will create the vnode devices under /dev (vn0, vn0a, vn0b,...). Then, attach the file containg the file system to the vnode device: vnconfig -v /dev/vn0c isoimage.raw And then, mount the filesystem: mount -r -t cd9660 /dev/vn0c /mnt Voilà :-) When you finish using that file system, umount it and detach the vnode: vnconfig -u -v /dev/vn0c Hope this helps, -- JMA ----------------------------------------------------------------------- José Mª Alcaide | mailto:jose@we.lc.ehu.es Universidad del País Vasco | mailto:jmas@FreeBSD.ORG Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-946013071 ----------------------------------------------------------------------- "Keyboard not present -- Press F1 to resume" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message