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 |
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) |
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! |
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 :) |
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 |
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. |
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 |
Code:
mount -o ~me/downloads/cdrom.iso /mnt/cdrom2 Code:
mount -o loop ~/downloads/cdrom.iso /mnt/cdrom |
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? |
Quote:
mount -t xfs -o loop FILENAME <mount point> is the format. |
All times are GMT -5. The time now is 10:50 AM. |