2

Mounting an iso9660 iso file in Linux (ubuntu/debian)

May 2, 2011 by

In a previous article, I showed how to install the FBReader programme.

I download the April 2010 Dual Layer iso torrent from the Project Gutenberg Site.

I opened the torrent in Bit Tornado (Ubuntu 10.10 comes with this), and downloaded the iso. Took about 6.5 hours on a 3 meg connection. The file is a little over 8 gig.

Once I downloaded the file, I did:


sudo mount -t iso9660 pgdvd042010.iso /mnt -o loop

What does it mean?

the -t tells us the filetype is an iso9660 image (ready to burn to a cd/dvd). It uses the archaic Microsoft 8×3 (i.e. filename.ext) filename format, in all CAPITALS.

The pgdvd042010.iso is the name of the file we downloaded.

/mnt is the mount point.

-o loop tells Linux it is a loopback device. This allows us to mount the iso, so we can access the contents of the iso.


df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 50G 21G 26G 45% /
/dev/loop0 7.8G 7.8G 0 100% /mnt

It makes sense to mount the iso image (sorry Windows users), since not all computers have optical disc (cd/dvd) readers. My netbook does NOT have an optical disc, but I could put iso image file there, and access it. Look MA! No CD/DVD Burning required!

Navigate to /mnt (cd /mnt) and launch index.html in this case.

Project Gutenberg on Wayno's Machine

Thanks Joe and Terry

Wayno

2 Responses to Mounting an iso9660 iso file in Linux (ubuntu/debian)

Add Comment Register



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>