From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 01:58:17 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D8F916A4CE for ; Wed, 23 Feb 2005 01:58:17 +0000 (GMT) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 8167343D49 for ; Wed, 23 Feb 2005 01:58:14 +0000 (GMT) (envelope-from dkelly@HiWAAY.net) Received: (qmail 8654 invoked by uid 0); 23 Feb 2005 01:58:13 -0000 Received: from user-69-73-60-132.knology.net (HELO ?10.0.0.68?) (69.73.60.132) by smtp8.knology.net with SMTP; 23 Feb 2005 01:58:13 -0000 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <20050223011425.58994.qmail@web51010.mail.yahoo.com> References: <20050223011425.58994.qmail@web51010.mail.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <66bc4402192297cd5cbc34939140665f@HiWAAY.net> Content-Transfer-Encoding: 7bit From: David Kelly Date: Tue, 22 Feb 2005 19:58:09 -0600 To: FreeBSD X-Mailer: Apple Mail (2.619.2) Subject: Re: extract iso image X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 01:58:18 -0000 On Feb 22, 2005, at 7:14 PM, T.F. Cheng wrote: > hi, I am not sure if I am doing the right thing. I > want to extract an downloaded isoimage by first > mounting it. I tried: mount -t iso9660 -o loop > image.iso /mnt but turns out I don't have > mount_iso9660 under /sbin, only mount_cd9660. Is there > any other way to do this? I am running > freebsd5.3/i386. Thanks! Is my best guess you have been reading Linux docs to have tried a "loop" option to mount in FreeBSD. Isn't done that way here. What you have to do is create a memory disk which is backed by a file. Maybe someone else knows how to do it as non-root: % su Password: # mdconfig -a -t vnode -o readonly -f dvd_image.iso md0 # mount -t cd9660 /dev/md0 /mnt # ls -CF /mnt audio_ts/ jacket_p/ video_ts/ # umount /mnt # mdconfig -d -u md0 # mdconfig -l # What happens is that mdconfig creates the md0 device which contains the contents of the specified file. Once the file is turned into a device it can be handled same as any other device. Be sure to deallocate the device after you are finished as Unix doesn't release a file's space allocation until the last process closes it. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.