LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-22-2008, 10:52 AM   #1
ameyjah
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Rep: Reputation: 0
How to mount iso image as a virtual drive


Hello, I can you please tell me how to mount and unmount any .ISO image as virtual drive. I was using DEMON tools in XP. But could not find any solution for Ubuntu Gusty.
 
Old 04-22-2008, 11:03 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
mount -o loop -t iso9660 file.iso /mnt/test (of course, change file.iso to the *.iso filename and /mnt/test to the directory you want to mount it to).
 
Old 04-22-2008, 11:10 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You could install qemu. To run an iso, issue a command like this:
qemu -boot d -m 512 -cdrom <isoname>.iso

where the switches tell qemu to treat the iso as though it were a cd, and how much RAM to assign to qemu.
 
Old 04-22-2008, 11:28 AM   #4
kdrlx
Member
 
Registered: Feb 2006
Distribution: Ubuntu Hardy Heron
Posts: 130

Rep: Reputation: 17
Question qemu to mount iso file ?

Quote:
Originally Posted by bigrigdriver View Post
You could install qemu. To run an iso, issue a command like this:
qemu -boot d -m 512 -cdrom <isoname>.iso

where the switches tell qemu to treat the iso as though it were a cd, and how much RAM to assign to qemu.
qemu to mount an iso? I cant understand. :?
 
Old 04-22-2008, 11:48 AM   #5
ameyjah
LQ Newbie
 
Registered: Apr 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez View Post
mount -o loop -t iso9660 file.iso /mnt/test (of course, change file.iso to the *.iso filename and /mnt/test to the directory you want to mount it to).
This works. Can you please tell me how did you construct that command. Thanks a lot
 
Old 04-22-2008, 11:59 AM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
The -o means use the following options. The -t means use the following filesystem type. The mount command generally follows the pattern "mount device location". The loop option means the device you are using is located on an already mounted filesystem and must be "looped back" somewhere else. The iso9660 filesystem type is the standard filesystem for cdrom's. Put that all together and you get the above command.

HTH

Forrest
 
Old 07-08-2010, 09:51 AM   #7
vsurlan
Member
 
Registered: Jun 2004
Location: Zagreb, Croatia
Distribution: Debian Lenny
Posts: 49

Rep: Reputation: 15
Quote:
Originally Posted by ameyjah View Post
This works. Can you please tell me how did you construct that command. Thanks a lot
It's the most basic mkisofs usage.
-o loop indicates that it uses a loopback device since there is no actual drive involved
-t iso9660 indicates an ISO file system
file.iso is the file to mount
/mnt/test is the location where the file should be mounted

Don't forget that the result of this command is always read only. If you want to modify the contents of an ISO image you will have to use mkisofs such as mentioned here: Mount an ISO image.

Last edited by vsurlan; 07-08-2010 at 09:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
not able to mount .iso.gz image saheelahamed Linux - Software 3 08-01-2007 09:47 AM
[SOLVED] Virtual OSs - use the disc or ISO image MBA Whore Linux - Software 3 12-13-2006 07:49 PM
How to mount ISO image for use explorer SUSE / openSUSE 1 07-30-2006 10:28 PM
mount a iso image rw? nvadekar Linux - Software 2 11-12-2005 02:01 AM
how to mount an iso image as CD? hkl8324 Linux - General 7 07-05-2005 06:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration