LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2005, 09:35 PM   #1
sonic04002
Member
 
Registered: Oct 2005
Posts: 143

Rep: Reputation: 15
Mounting iso's


How do you mount iso's? Is it in the terminal?
 
Old 10-29-2005, 09:44 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Code:
mount /path/to/iso/file  /the/mount/directory/ -o loop
 
Old 10-30-2005, 07:29 AM   #3
sonic04002
Member
 
Registered: Oct 2005
Posts: 143

Original Poster
Rep: Reputation: 15
What do you mean by mount directory My iso is on my desktop, so would it be the directory is my desktop and the iso, and then mount it to my cd drive? or do i need a program to make virtual drives like windows?
 
Old 10-30-2005, 07:54 AM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
What he meant was that directory which you create and mount your ISO image into it will be THE virtual CD/DVD.
Other option is to use NeroLinux which also creates virtual DVD to create images
 
Old 10-30-2005, 10:05 AM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
Originally posted by perfect_circle
Code:
mount /path/to/iso/file  /the/mount/directory/ -o loop
I should have stated it clearer.

You need to create a directory where the mount point of the iso file will be.
In the above command the first argument is the iso image the second argument the mount point (this is how we call this directory. For example the mount point of your cdrom is /cdrom or /mnt/cdrom or something like that). Then after you execute the command you may access the iso image by browsing in the mount point.

After that do
Code:
umount  /the/mount/directory/
to "free" this direcory.

No external programs are needed at all.

EXAMPLE
Code:
skalkoto@darkstar:~/Desktop$ ls *.iso
MATLAB_R14_1.iso*             <--I have an iso
skalkoto@darkstar:~/Desktop$ mkdir Matlab
skalkoto@darkstar:~/Desktop$ ls -l Matlab/
total 0         <----It's EMPTY
skalkoto@darkstar:~/Desktop$ mount ./MATLAB_R14_1.iso ./Matlab/ -o loop
mount: only root can do that
skalkoto@darkstar:~/Desktop$ su
Password:
root@darkstar:/home/skalkoto/Desktop# mount ./MATLAB_R14_1.iso Matlab/ -o loop
root@darkstar:/home/skalkoto/Desktop# ls -l Matlab/
total 2161
dr-xr-xr-x  1 root root    2048 2004-06-21 23:06 CD Covers
dr-xr-xr-x  1 root root    2048 2004-06-21 19:23 KeyGen
dr-xr-xr-x  1 root root    4096 2004-06-21 17:33 archives
-r-xr-xr-x  1 root root      28 1999-04-22 09:43 autorun.inf
dr-xr-xr-x  1 root root    2048 2004-06-21 17:00 bin
dr-xr-xr-x  1 root root    2048 2004-06-21 17:00 help
-r-xr-xr-x  1 root root 1705056 2004-04-27 00:49 install_guide.pdf
-r-xr-xr-x  1 root root    6309 2004-03-08 02:50 installer.ini
dr-xr-xr-x  1 root root    2048 2004-06-21 17:00 java
dr-xr-xr-x  1 root root    2048 2004-06-21 17:01 jhelp
-r-xr-xr-x  1 root root   68093 2004-05-05 23:13 license.txt
-r-xr-xr-x  1 root root   11219 2004-05-11 20:21 matinfo.enc
-r-xr-xr-x  1 root root    6726 2004-06-21 18:23 readme.txt
-r-xr-xr-x  1 root root  393216 2004-04-17 13:13 setup.exe
dr-xr-xr-x  1 root root    2048 2004-06-21 17:01 uninstall
dr-xr-xr-x  1 root root    2048 2004-06-21 17:01 utils
root@darkstar:/home/skalkoto/Desktop# umount ./Matlab/
root@darkstar:/home/skalkoto/Desktop# ls -l Matlab/
total 0      <--EMPTY AGAIN
root@darkstar:/home/skalkoto/Desktop#

Last edited by perfect_circle; 10-30-2005 at 10:07 AM.
 
Old 10-30-2005, 10:28 AM   #6
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
I tested it
Works fine
Code:
debian:/home/slackerlx# mount /Store/iso/test.iso /Store/iso/ds/ -o loop
debian:/home/slackerlx# ls -l /Store/iso/ds
total 327238
-r-xr-xr-x  1 root root        42 2003-05-27 07:45 autorun.inf
-r-xr-xr-x  1 root root  32478781 2003-06-13 10:39 MSGAME7.CAB
-r-xr-xr-x  1 root root 261403969 2003-06-13 11:13 MSGAME8.CAB
-r-xr-xr-x  1 root root  41174918 2003-06-13 11:20 MSGAME9.CAB
-r-xr-xr-x  1 root root      7406 2003-06-03 02:13 setup.ico
-r-xr-xr-x  1 root root     24576 2003-02-17 23:10 stub.exe
debian:/home/slackerlx#
Just curious, perfect_circle, why such bizzare syntax?
quote:
-----------------------------------------
mount ./MATLAB_R14_1.iso Matlab/ -o loop
-----------------------------------------
 
Old 10-30-2005, 10:34 AM   #7
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
You also had better remove this line from post:
--------------------------------------------------------------------
dr-xr-xr-x 1 root root 2048 2004-06-21 19:23 KeyGen
 
Old 10-30-2005, 10:41 AM   #8
sonic04002
Member
 
Registered: Oct 2005
Posts: 143

Original Poster
Rep: Reputation: 15
I couldn't get it to work....

Code:
[Tai@localhost ~]$ mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/Doom3
mount: only root can do that
[Tai@localhost ~]$ su
Password:
[root@localhost Tai]# mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/Doom3
mount: you must specify the filesystem type
[root@localhost Tai]# mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/Doom3 -o loop
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
[root@localhost Tai]#
 
Old 10-30-2005, 10:49 AM   #9
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Tested another image and still flawless!

Code:
slackerlx@debian:~$ su
Password:
debian:/home/slackerlx# mount /Store/iso/os/belenix.iso /Store/iso/os/virtual -o loop debian:/home/slackerlx# ls -l /Store/iso/os/virtual/
total 10438
drwxr-xr-x   2 root sys        2048 2005-10-28 10:42 a
-rw-r--r--   1 root root   10628235 2005-10-28 10:54 archive.tar.bz2
drwxr-xr-x   5 root sys        2048 2005-10-28 10:54 boot
drwxr-xr-x  50 root sys       24576 2005-10-28 10:54 etc
drwxr-xr-x   2 root sys        2048 2005-10-28 10:42 export
dr-xr-xr-x   2 root root       2048 2005-10-28 10:42 home
drwxr-xr-x   3 root bin        2048 2005-10-28 10:54 lib
dr-xr-xr-x   2 root root       2048 2005-10-28 10:48 LICENSES
lrwxrwxrwx   1 root root          9 2005-10-28 10:50 man -> share/man
-rwxrwxrwx   1 root root          0 2005-10-28 10:53 noautoshutdown
drwxr-xr-x   2 root sys        2048 2005-10-28 10:42 opt
drwxr-xr-x   3 root sys        2048 2005-10-28 10:42 platform
-rw-r--r--   1 root daemon        0 2005-10-28 10:53 reconfigure
drwxr-xr-x   2 root sys        6144 2005-10-28 10:49 sbin
drwxrwxrwx   2 root sys        2048 2005-10-28 10:42 tmp
drwxr-xr-x  31 root sys        6144 2005-10-28 10:42 usr
drwxr-xr-x   3 root root       2048 2005-10-28 10:54 var
dr-xr-xr-x   2 root root       2048 2005-10-28 10:42 vol
debian:/home/slackerlx#
Try changing name of iso image. Make one without dash (-) !!
AND ISO MUST NOT BE in the same directory that you make virtual !!!!!!!!!!!!!!!!!

Last edited by SlackerLX; 10-30-2005 at 10:53 AM.
 
Old 10-30-2005, 10:56 AM   #10
sonic04002
Member
 
Registered: Oct 2005
Posts: 143

Original Poster
Rep: Reputation: 15
Code:
[Tai@localhost ~]$ su
Password:
[root@localhost Tai]# /home/Tai/Doom3/doom3-CD1.iso /home/Tai/Doom3 o loop
bash: /home/Tai/Doom3/doom3-CD1.iso: Permission denied
[root@localhost Tai]#


?
 
Old 10-30-2005, 10:56 AM   #11
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Do that:
$mkdir /home/Tai/virtual
$ mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/virtual -o loop

Option MUST BE with
-o loop

Last edited by SlackerLX; 10-30-2005 at 10:59 AM.
 
Old 10-30-2005, 11:28 AM   #12
sonic04002
Member
 
Registered: Oct 2005
Posts: 143

Original Poster
Rep: Reputation: 15
Code:
[root@localhost Tai]# mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/virtual -oloop
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
[root@localhost Tai]#


didn't work I gues...
 
Old 10-30-2005, 11:31 AM   #13
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Quote:
Originally posted by sonic04002
Code:
[root@localhost Tai]# mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/virtual -oloop
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
[root@localhost Tai]#


didn't work I gues...
Watch for correct syntax. Space between -o and loop

Damnation! This is ABC! LOL
 
Old 10-30-2005, 11:40 AM   #14
sonic04002
Member
 
Registered: Oct 2005
Posts: 143

Original Poster
Rep: Reputation: 15
Code:
[root@localhost Tai]# mount /home/Tai/Doom3/doom3-CD1.iso /home/Tai/virtual -o loop
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
[root@localhost Tai]#

thanks, I tried it the right way, still nothing.
 
Old 10-30-2005, 11:47 AM   #15
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Have you created directory "virtual"?
Try some other images for testing. Image name had better be without dashes and spaces. Grab small sime image from internet, smth like DSLlinux. It's about 50 MB of size. Rename it as "test.iso" and mount
 
  


Reply



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
Mounting 2 ISO's to the same directory ritme909 Linux - General 3 08-17-2011 08:41 PM
mounting iso's Haloony Linux - Newbie 8 10-27-2005 01:02 AM
mounting iso's lofi dawharl Solaris / OpenSolaris 4 11-15-2004 03:03 AM
Mounting ISO's InsaneBob Linux - Software 1 09-26-2003 09:09 PM
mounting .iso's hyperpimp Linux - Networking 4 05-15-2002 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

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