Welcome to Dream.In.Code
Become an Expert!

Join 149,911 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,176 people online right now. Registration is fast and FREE... Join Now!




Mounting ISO images from the command line.

 
Reply to this topicStart new topic

> Mounting ISO images from the command line.

Rating  5
Tom9729
Group Icon



post 4 Jan, 2008 - 11:05 PM
Post #1


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
Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!

no2pencil
Group Icon



post 9 Oct, 2008 - 10:51 PM
Post #2
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!
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 1/8/09 01:41PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month