I need to install some program in wine, which require to access a mounted ISO image. Whenever I mount an ISO image in Nautilus, in which drive it mounted in Wine?
For some programs which can find the ISO automatically, I have no problem.
We sucessfully mounted CD or DVD images for application installation in Wine or for running an application which needs access to its CD using CDemu. Amongst ISO a wide variety of other formats are supported. Therefore the image does not need to be in ISO format.
The application can be installed by adding the following ppa to our sources:
We can then install the CDemu client and the CDemu daemon with
sudo apt-get update && sudo apt-get install cdemu-daemon cdemu-client
After logging out and back in, or a reboot, the daemon will be started. To mount an ISO file as CD we can then issue:
cdemu load <number> <path_to_iso>
The <number>
corresponds to the internal number of drives loaded by CDemu (per default 2 drives, change this in /etc/default/cdemu-daemon
to a higher number if needed.
The following is an example command to load a drive 0
from an image.iso
:
cdemu load 0 /home/nur/images/image.iso
This will unload an image:
cdemu unload <number>
Related questions:
After you mount the ISO or the disk with any tools or commands which you prefer, start Configure Wine create a new Drive mapping. Click Add, browse the path and select OK. Here, I've mapped Ubuntu 13.10 i386 DVD to drive letter e:
in wine (g:
is for my Flash Drive).
Then you can browse the iso or disk in the $HOME/user/.wine
's dosdrives
directory.
sudo mount -o loop /path/to.iso /mnt/cdrom/
/mnt/cdrom/
using winecfg
/Wine Configuration in drives tab or create a link to. ln -s /mnt/cdrom /home/user_name/.wine/dosdevices/e:
If you have mounted an .iso image in Ubuntu, Wine will treat it exactly as Ubuntu is treating it. So if you navigate to / with a Wine program (I think it is the Z:\ folder), you will see all of your Ubuntu files and folders, and you can navigate to the mount point of the iso, which will be listed with the mount
command in the terminal (it's probably somewhere in /mount)
If you don't want to mount iso in Ubuntu, however want to mount iso in Wine only.
Right click on iso file, select Open With
-> Archive Manager
. Unpack iso content into new folder e.g. iso
.
In Wine go to Configure Wine
select Drivers
tab. Click Add...
to add new driver, select any letter. Select already created driver, click Browse...
and specify extracted iso
folder path.
Next open Control panel
select Add/Remove Programs
click Install...
specify some .exe
file from mounted drive.
WINEPREFIX=/home/<user>/pathToApplication/ winetricks
will run winetricks on your specific wine prefix! It's very important that you use the right prefix, or yourwinecfg
etc. won't be applied to the application you're trying to fix!