LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mounting an iso as a virtual cd drive (https://www.linuxquestions.org/questions/linux-software-2/mounting-an-iso-as-a-virtual-cd-drive-73131/)

DrLandluver 07-16-2003 12:22 AM

Mounting an iso as a virtual cd drive
 
I am trying to mount an iso that I have, so that it will act like a virtual cd drive. I have tried the mount command, but I do not know how to make wine think that this is a cd drive. Thanks in advance.

Dr. Landluver

p.s., I am using transgaming's winex 3.1

rch 07-16-2003 03:06 AM

well the aproach is really simple
mount the iso using loop
like this
mount -o loop <where you want to mount > <your iso image>
example
mount -o loop /mnt/tmp /cdfile.iso
there is no need for file type as mount distinguishes file type easily.
Now from wine browse to /mnt/tmp from the drive that you have used to map / (root)

Thymox 07-16-2003 07:41 PM

I have put several ISO files into my fstab so that they behave just like local discs:
/usr/share/isos/Mandrake/9.1/4-CD/Mandrake-9.1-Install-CD1.i586.iso /mnt/install-cds/Disc1 auto noauto,users,loop 0 0
Now, anything that tries to access /mnt/install-cds/Disc1 as a CD device, will be pleasently surprised!

Half_Elf 07-16-2003 07:59 PM

WOW mounting an Iso is NICE this is so great I was using the old ways with mkisofs, now I'll use this method.

Linux is really too good I discover new things everyday :)

fuzzyworm 09-08-2003 09:16 AM

Why won't my .iso mount?
 
I tried this command :

mount -o loop /mnt/cdrom2 ~me/downloads/cdrom.iso

but it didn't work. It didn't recognise the filesystem type.
This is a perfectly good .iso file, i have used it on other computers. Other .iso files will mount with no problem. I was wondering if anyone else had had the same problem!!!

:confused::newbie:

I also tried switching the order of the commands, but this didn't help much either

Half_Elf 09-08-2003 05:05 PM

type "mount --help"
mount -o ~me/downloads/cdrom.iso /mnt/cdrom2

and if this iso doesn't mount, it is probably not a true "iso", I mean, some (dumb) people will rip their cd using some progs that create an "iso" file that's not a real iso (1 to 1 copy). Most burner can probably handle it anyways, but linux will not be able to mount it, most of time.

fuzzyworm 09-09-2003 09:00 AM

Thankyou
 
Thanks very much, I will try that as soon as I can. I used WinISO to make the file, so i don't think that will be the problem though.

Anyway, thanks for the help
:D

acid_kewpie 09-09-2003 09:16 AM

Code:

mount -o ~me/downloads/cdrom.iso /mnt/cdrom2
nope. you want this....
Code:

mount -o loop ~/downloads/cdrom.iso /mnt/cdrom

howzat 09-09-2003 09:23 AM

hi

will this method work for "live cd's" such as knoppix 3.2? and can i then put them in LILO as a boot option?

rch 09-10-2003 12:10 AM

Quote:

Originally posted by howzat
hi

will this method work for "live cd's" such as knoppix 3.2? and can i then put them in LILO as a boot option?

Well I think that knoppix uses the xfs file system ,so you better check whether your kernel supports the filesystem or not.
mount -t xfs -o loop FILENAME <mount point> is the format.


All times are GMT -5. The time now is 10:50 AM.