Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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.
Just curious, perfect_circle, why such bizzare syntax?
quote:
-----------------------------------------
mount ./MATLAB_R14_1.iso Matlab/ -o loop
-----------------------------------------
You also had better remove this line from post:
--------------------------------------------------------------------
dr-xr-xr-x 1 root root 2048 2004-06-21 19:23 KeyGen
[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]#
[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]#
[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
[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]#
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.