Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Feb 2005 10:04:44 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Warren <shinjii@virusinfo.rdksupportinc.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Extracting an img file
Message-ID:  <20050226090444.GA88928@slackbox.xs4all.nl>
In-Reply-To: <200502261632.03478.shinjii@virusinfo.rdksupportinc.com>
References:  <200502261632.03478.shinjii@virusinfo.rdksupportinc.com>

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

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Feb 26, 2005 at 04:32:03PM +1000, Warren wrote:

> How do i extract the contents of an img file so i can view // empty
> the contents out?  without burning due to it being a 3.1gig img file
> and i got no DVD Burner.

You mean an ISO9660 image? Use an md(4) device. See =A716.12.2 of the handb=
ook.

First create a file-backed md device:

# mdconfig -a -t vnode -f diskimage -u 0

Then you mount it somewhere:

# mount -t cd9660 /dev/md0 /mnt

When you are done with it, unmount the filesystem and then detach the md
device:

# umount /mnt
# mdconfig -d -u 0

--=20
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards

--GvXjxJ+pjyke8COw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCIDusEnfvsMMhpyURAkf3AKCddSDwkqJ3sk6YvjeklAWGH+0fCACgo+Xj
pOI7ZpktujIfkGubAlDC2ow=
=UBwk
-----END PGP SIGNATURE-----

--GvXjxJ+pjyke8COw--



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