Mounting an ISO or FS Location as a CDROM in WINE...

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Linux-Smith
Level 1
Level 1
Posts: 8
Joined: Fri Jul 23, 2010 9:04 pm

Mounting an ISO or FS Location as a CDROM in WINE...

Post by Linux-Smith »

Is it possible to mount either an ISO Archive file, or a location within my File System, as a CDROM which WINE can use as such? If so, then how can I do that?
Bryan Baldwin

Mounting an ISO or FS Location as a CDROM in WINE...

Post by Bryan Baldwin »

On 07/24/2010 02:09 PM, Linux-Smith wrote:
Is it possible to mount either an ISO Archive file, or a location within my File System, as a CDROM which WINE can use as such? If so, then how can I do that?
Normally you do not need to do anything more then mount your optical
image with the flag -o loop. For example:

shell> mount <iso filename> <target dir> -o loop

If your target dir is accessible to your regular user, it will be
available to WINE.

For non-standard images, you may need to look at if the cdemu package
from your distribution de jour.

Bryan
Linux-Smith
Level 1
Level 1
Posts: 8
Joined: Fri Jul 23, 2010 9:04 pm

Post by Linux-Smith »

Thanks Bryan, I'll try that! :)
Linux-Smith
Level 1
Level 1
Posts: 8
Joined: Fri Jul 23, 2010 9:04 pm

Post by Linux-Smith »

OK... WINE is not running the installer as though it was a CDROM... how do I fix that?
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Linux-Smith wrote:OK... WINE is not running the installer as though it was a CDROM... how do I fix that?
You need to map the mounted iso as a cdrom in winecfg. With the iso already mounted, go to the Drives tab and click autodetect. The mounted iso should appear in the drives list. Click Show Advanced, select the drive, and make sure the Type is set to cdrom.
Linux-Smith
Level 1
Level 1
Posts: 8
Joined: Fri Jul 23, 2010 9:04 pm

Post by Linux-Smith »

Just tried that, same results as before...
Bryan Baldwin

Mounting an ISO or FS Location as a CDROM in WINE...

Post by Bryan Baldwin »

On 07/24/2010 04:14 PM, Linux-Smith wrote:
Just tried that, same results as before...
You don't usually *have* to trick WINE into autorunning the CDROM. I've
never employed an autorun senerio with WINE---ever. I don't see the point.

I also never have seen a program that installs from CDROM that doesn't
start its actual installation by anything other then a simple executable
file. Look it the mount directory for .exe or .msi files. If the CDROM
does support autorun do something like

mount_dir> cat autorun.inf

That will tell you the program that autorun launches. There isn't
anything "special" about CDROM autorun. You can just as easily start the
installer yourself.

For example, nine out of ten CDROMs will install with this command:

mount_dir> wine setup.exe

done


Bryan
User avatar
dimesio
Moderator
Moderator
Posts: 13372
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Linux-Smith wrote:Just tried that, same results as before...
Terminal output? http://wiki.winehq.org/FAQ#run_from_terminal
Linux-Smith
Level 1
Level 1
Posts: 8
Joined: Fri Jul 23, 2010 9:04 pm

Post by Linux-Smith »

Even with the directory *explicitly* set via wincfg as a CD-ROM drive, this is what I'm getting in the terminal, plus an error message at the end telling me to "Run setup from the CD":

Code: Select all

jwesleycooper@linux-twom:/mnt/FakeCD> wine setup.exe
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a060, {485e7de8-0a80-11d8-ad15-505054503030}, 1, 0x33fe10, (null), (null), 0x100a068,)
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a080, {485e7de9-0a80-11d8-ad15-505054503030}, 1, 0x33fe10, (null), (null), 0x100a088,)
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0a0, {485e7dea-0a80-11d8-ad15-505054503030}, 1, 0x33fe10, (null), (null), 0x100a0a8,)
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0c0, {485e7deb-0a80-11d8-ad15-505054503030}, 1, 0x33fe10, (null), (null), 0x100a0c8,)
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a0e0, {485e7dec-0a80-11d8-ad15-505054503030}, 1, 0x33fe10, (null), (null), 0x100a0e8,)
fixme:advapi:RegisterTraceGuidsW (0x100778a, 0x100a100, {485e7ded-0a80-11d8-ad15-505054503030}, 1, 0x33fe10, (null), (null), 0x100a108,)
fixme:win:RegisterDeviceNotificationW (hwnd=0x148470, filter=0x54e93c,flags=0x00000001) returns a fake device notification handle!
fixme:win:LockWindowUpdate (0x2005a), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!
wine client error:26: write: Bad file descriptor
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7e25925f
wine client error:26: write: Bad file descriptor
According to the AppDB, the program I'm installing works on other systems... so why am I having this problem?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

What is "the program"? Some software is distributed in several different ways, for example, CD-ROMs with and without copy protection, or online distribution services.
James McKenzie

Mounting an ISO or FS Location as a CDROM in WINE...

Post by James McKenzie »

Linux-Smith wrote:
Even with the directory *explicitly* set via wincfg as a CD-ROM drive, this is what I'm getting in the terminal, plus an error message at the end telling me to "Run setup from the CD":


Code:
wine client error:26: write: Bad file descriptor
Bad CD (it does happen) or your ISO image is corrupt.

Also, are you installing to a FRESH Wine directory?

You might want to move your existing .wine directory out of the way and
then try again

Code: Select all


mv .wine{,.backup}

will move your existing .wine directory to .wine.backup

Then try the install AGAIN.

James McKenzie
Linux-Smith
Level 1
Level 1
Posts: 8
Joined: Fri Jul 23, 2010 9:04 pm

Post by Linux-Smith »

Well, moving the .wine folder didn't work... I guess this must just be a bad image of Command & Conquer Windows 95 Edition. Thanks anyway.
James McKenzie

Mounting an ISO or FS Location as a CDROM in WINE...

Post by James McKenzie »

Linux-Smith wrote:
Well, moving the .wine folder didn't work... I guess this must just be a bad image of Command & Conquer Windows 95 Edition. Thanks anyway.

Ok. Now we have more information go to on.

What program are you running to install/run this program?

Also, have you looked at our Applications Database for this game? The
following entry may provide assistance, although it is for C&C Red Alert.

http://appdb.winehq.org/objectManager.p ... on&iId=727

This game is rated Gold for Wine 1.2-rc3.

It appears that this game cannot be installed with the Wine default
version of Windows XP.

Good luck.

James McKenzie
Locked