From owner-freebsd-hackers Fri May 28 0:27: 0 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id BA47E14C96 for ; Fri, 28 May 1999 00:26:55 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from lot.gsoft.com.au (lot.gsoft.com.au [203.38.152.106]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id QAA01866; Fri, 28 May 1999 16:56:39 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <374E45A6.B5682AC5@ensim.com> Date: Fri, 28 May 1999 16:56:39 +0930 (CST) From: "Daniel O'Connor" To: Xun Wilson Huang Subject: RE: Help: mount disk.img as file system? Cc: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 28-May-99 Xun Wilson Huang wrote: > Suppose I have a disk image of some sort ( floppy or I do a "dd > /dev/hda1 > disk.img" ), How can I mount it as part of my file system? I > would like to do something like > > mount -t diskimage disk.img /mnt > > and then being able to play with files under /mnt? > > This would be a nice thing to have if I want to say rescue a disk or > partition on this virtual thing first before playing with fire. Or > seeing how well a defraqmentation prog works. > > Is there such thing avail on FreeBSD? Yes, you need to use the vnode device (look in LINT) Try vnconfig vn0 disk.img mount /dev/vn0c /mnt --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message