Full Version: Mounting ISO images from the command line.
Dream.In.Code > Programming Tutorials > Linux Tutorials
Tom9729
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
no2pencil
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 dd & 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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.