Read with Formatting | Join TechSpot! (it's free)



How to mount an ISO image in Linux

Phantasm66
03-10-2002, 03:21 PM
Doubtlessly you will be familiar with tools such as ISO Buster for Windows which allow you to open an ISO file without having to burn it to CD to have a little lookie at its contents....

However, in Linux we have this tech built in. And ISO image can be mounted just like any device or file system, and here is how...

Create a mount point for the ISO:

BASH# mkdir /mnt/iso

Now mount the ISO in the mount point with the following command:

BASH# mount myiso.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0

Where myiso.iso is your ISO file.

What I haven't tried yet is omitting the ro (read only) option, so that it might be possible to make changes to the ISO before finally burning, not sure if this works (will check) but the command would probably look like this:


BASH# mount myiso.iso /mnt/iso/ -t iso9660 -o loop=/dev/loop0



Have fun!

Mictlantecuhtli
03-11-2002, 12:06 PM
If one wants to avoid writing, -t iso9660 can be skipped since it's the default. -o ro is quite useful, it's not always wise writing to images. Keep those tips coming! :)

Ad
03-11-2002, 12:06 PM

linuxNEWbie
04-20-2006, 12:01 AM
When i try to run that it says that i have no /dev/loop file and it exits. what should i do?

Nodsu
04-20-2006, 02:25 AM
/dev/loop0, /dev/loop1,/dev/loop2 and so on.

Actually you don't need to specify the loop device at all - plain "-o loop" will work just fine.

linuxNEWbie
04-20-2006, 06:43 AM
ok i got it to mount or atleast the console didnt give me an error, but now i cant find it to use it.

Nodsu
04-20-2006, 11:23 AM
The second parameter (/mnt/iso in this example) is the directory under which you see the iso file contents.

rperea
01-28-2007, 04:36 AM
I was reading this thread trying to figure out how to mount an ISO.
Thanks to your posts here, I was able to do so.

I am no stranger to linux because I have used it as a server for years, however, I have recently switched my desktop to linux and was looking for something similar to deamon tools for Win32. (I know that is a 4 letter word) Well, I couldn't find anything other than your posts here.

So I decided to create my own utility.
I am providing it as entirely free and open source and you can download it here:
http://www.vsoursehosting.com/downloads/Linux-ISOMOUNT.tar.gz

Simply extract it, and run perl INSTALL
You might want to read the README first.

It can mount ISO images and you can even drag and drop your iso image unto the utility to mount and open it in nautilus.

I haven't tested it on any other distro than ubuntu Edgy eft, so if anybody has any problems, please let me know.

Also, if there is anybody who wants to improve it, please let me know.
This utility was created in a day but it saves me a ton of time because I mount ISO's all the time.

hhegab
06-04-2007, 03:14 AM
Thank you man, I was looking for just these info,

you have helped me a lot.

H

Ad
06-04-2007, 03:14 AM

Phantasm66
06-04-2007, 03:52 AM
Any time, and thanks for the comments from others, as well as the link to the application rperea wrote. If we work together, we can accomplish all sorts!

schenne
01-10-2008, 03:47 PM
Thanks for help:)

 Tech News

 Downloads
Copyright © 1998-2008 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.