Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 May 1999 16:56:39 +0930 (CST)
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Xun Wilson Huang <wilson@ensim.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: Help: mount disk.img as file system?
Message-ID:  <XFMail.990528165639.doconnor@gsoft.com.au>
In-Reply-To: <374E45A6.B5682AC5@ensim.com>

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

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




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