Printable Version of Topic

Click here to view this topic in its original format

Dream.In.Code _ Linux Tutorials _ Mounting ISO images from the command line.

Posted by: Tom9729 4 Jan, 2008 - 11:05 PM

Have any ISOs laying around that you need to access? In Windows you would probably use a program like Daemon Tools or Alcohol 52% to mount the ISO as a virtual disc, and thus not waste a perfectly good cd-r.

In Linux, a separate program is unnecessary. You can simply use the mount command.

Let's say your ISO is located at /home/user/disc.iso, and you want to mount it at /media/iso. First become root (or prepend sudo to the following command if you use it).

Then use the command mount -o loop /home/user/disc.iso /media/iso to mount your ISO.

When you're done and want to unmount it, simply become root (or use sudo) and do the command umount /media/iso.

To view a list of everything that's currently mounted, issue the command mount.

Happy mounting. wink2.gif

Posted by: no2pencil 9 Oct, 2008 - 10:51 PM

I can't thank you enough for this tutorial. I've used it at least 5 times now. At this very moment it's saving my ass lol.

I have a damaged drive that I backed up to a file using http://www.dreamincode.net/forums/showtopic34551.htm & I was able to mount that local file using this tutorial & find & repair the issue. I'll dump the file system to a new drive in about 20 minutes smile.gif

Thanks again Tom!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)