Welcome to Dream.In.Code
Click Here
Getting Help is Easy!

Join 118,923 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,959 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! 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 5 Jan, 2008 - 12:05 AM
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 - 11: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: 10/13/08 05:10AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month