From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 20:52:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 095EF16A402 for ; Mon, 23 Apr 2007 20:52:14 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id ECED913C44C for ; Mon, 23 Apr 2007 20:52:13 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 651A71A4DBE; Mon, 23 Apr 2007 13:52:36 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 18D9C513E9; Mon, 23 Apr 2007 16:52:13 -0400 (EDT) Date: Mon, 23 Apr 2007 16:52:12 -0400 From: Kris Kennaway To: Dan Nelson Message-ID: <20070423205212.GA99749@xor.obsecurity.org> References: <48CA2894022F35F0D83C3AFD@utd59514.utdallas.edu> <20070423191854.GD49993@glitch.rwxrwxrwx.net> <3EC8E3B8930912D6CD250E65@utd59514.utdallas.edu> <20070423204514.GD50353@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070423204514.GD50353@dan.emsphone.com> User-Agent: Mutt/1.4.2.2i Cc: Paul Schmehl , freebsd-questions@freebsd.org Subject: Re: Mount an iso image? 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: Mon, 23 Apr 2007 20:52:14 -0000 On Mon, Apr 23, 2007 at 03:45:14PM -0500, Dan Nelson wrote: > In the last episode (Apr 23), Paul Schmehl said: > > --On Monday, April 23, 2007 21:18:55 +0200 Martin Tournoij > > > On Mon 23 Apr 2007 14:04, Paul Schmehl wrote: > > >> Is it possible to mount an iso image? I'm not referring to a cd, > > >> but a single file that has been created using mkisofs. If so, > > >> what command would you use? mount_cd9660 wants a block device. > > >> Do I need to use some sort of pseudo block device? > > > > > > To mount a iso image: > > > mdconfig -at nvode -f MYIMAGE.ISO > > > mount_cd9960 /dev/md0 /somewhere > > > > > > If you want to mount multiple ISO images then you will have to use > > > md1, md2, ect. > > > > > > Don't forget to unmount and detach the memory disk: > > > umount /somewhere > > > mdconfig -ud 0 > > > > > > 0 should be replaced with the appropiate device number > > > > > > Note that this will only mount standard iso images (iso9660, > > > .usually iso or .bin), if you want to mount > > > .Nero/Alcohol/PowerISO/ect images > > > then you must first convert them, iat is a great tool for doing this: > > > Ports collection: sysutils/iat > > > Website: http://iat.berlios.de/ > > > > > > Thanks. That's what I was looking for. I wasn't trying to create > > an iso. I wanted to see what was inside one without burning a CD > > first. That works perfectly. > > If that's all you need, there's an even easier way: "tar tvf mycd.iso", > since libarchive understands the iso9660 filesystem format :) That's a neat trick that is worth publicizing. Maybe the freebsd-tips fortune file? Kris