Can't configure wine drives.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
minguo33
Newbie
Newbie
Posts: 4
Joined: Tue Dec 30, 2008 11:36 pm

Can't configure wine drives.

Post by minguo33 »

Hi, I've installed a game from a CD-ROM, (by typing 'wine setup.exe' in the console) but I cannot get my wine installation to recognize that the disk is in the drive and actually start the software.

If I launch the program, it complains that the disk is not present.

If I launch wineconfig, the Drives tab is entirely blank, with the exception of this message:
failed to connect to the mount manager, the drive configuration cannot be edited
This is the only program I've tried using in conjunction with the CD ROM in wine, but It seems wine is unaware of the CD ROM.

Is there any way to force wine to recognize a mounted CD drive through the console perhaps?

Is there some way to restore my 'mount manager'?
IneedAname

Can't configure wine drives.

Post by IneedAname »

On Tue, 30 Dec 2008 22:43:21 -0600
"minguo33" <[email protected]> wrote:
If I launch wineconfig, the Drives tab is entirely blank, with the exception of this message:
It should be mapped something like this:
Letter Drive mapping
C: ../drive_c
D: /media/cdrom0
Z: /

Then try "wine D:\setup.exe".
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Can't configure wine drives.

Post by vitamin »

minguo33 wrote:failed to connect to the mount manager, the drive configuration cannot be edited
What distro? Where did you get Wine and how did you install it?
minguo33
Newbie
Newbie
Posts: 4
Joined: Tue Dec 30, 2008 11:36 pm

Re: Can't configure wine drives.

Post by minguo33 »

Thanks for the replies!
IneedAname wrote:On Tue, 30 Dec 2008 22:43:21 -0600
It should be mapped something like this:
Letter Drive mapping
C: ../drive_c
D: /media/cdrom0
Z: /

Then try "wine D:\setup.exe".
Doing this cannot find the exe, and after investigating it seems wine maps my cd rom to the Z drive?

typing:

Code: Select all

wine Z:/SETUP.EXE
fails, but typing

Code: Select all

wine Z:/cdrom/SETUP.EXE
works fine. (also, dunno if it's significant, but I have to use forward slashes instead of backslashes.)

What distro? Where did you get Wine and how did you install it?
I am using Linux Mint Elyssa, and I installed Wine from the mint repositories, but then followed the instructions on this page

http://www.winehq.org/download/deb

for Ubuntu to upgrade to the latest version. (Mint's packages only go to 1.0)
IneedAname

Can't configure wine drives.

Post by IneedAname »

On Wed, 31 Dec 2008 17:03:38 -0600
"minguo33" <[email protected]> wrote:
fails, but typing

Code:
wine Z:/cdrom/SETUP.EXE


works fine.
Z: is mapped to "/" which is the root of your filing system.
So if you map D: to "/cdrom" it should work.
I bet your "/media" is empty. Read /etc/fstab and see how the mounting is done.

This is from my fstab file.
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
minguo33
Newbie
Newbie
Posts: 4
Joined: Tue Dec 30, 2008 11:36 pm

Post by minguo33 »

Thanks for the reply.
Hmmm. Looks like my /Media folder isn't empty.

It has a cdrom0 and a floppy0 folder and two links called cdrom and floppy as well as a file called .hal-mtab.

my etc/fstab has the exact same line in it that you quoted:

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

So using my novice-Linux knowledge I get the impression that everything's ok on the Linux end, but wine is just looking for it in the wrong place.

Since I cant edit it in wineconfig, is there a file where I can edit it manually?
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

winecfg is the command not wineconfig. I have never had any luck with wineconfig working.

Ok first question did you ever run wine as sudo. One of the annoying causes if drive section of winecfg not being editable is that ~/.wine/dosdevices not being editable to your user normally by breaking one of our rules of never running wine as a root user this includes running it with sudo.

Working with ~/.wine/dosdevices is fairly simple in that directory is basically a set of symbolic links.

<letter>: links to a path
<letter>:: links to a device.

Of course don't play with c: ever. Point that at real windows it will kill windows no questions. Yes wine will not ask. Don't be the next user we laugh about for being foolish enough to point wine c: to windows. If you do it Wine replaces a stack of windows PE dll with wine virtual files leaving windows in a state the only a reinstall will bring it back.
minguo33
Newbie
Newbie
Posts: 4
Joined: Tue Dec 30, 2008 11:36 pm

Post by minguo33 »

I have never run wine configuration through the command line, only through the GUI. I don't believe I've ever run wine using sudo. I nuked my first ubuntu install running a dodgy command someone gave me on the ubuntu forums, so I learned early on the perils of sudo.

Anyways, thanks for the help. I googled up the procedures for making a symbolic link, and deleted the old link to d: in my dosdevices folder, and created a new one pointed at my cdrom and it works now.

(at least, now I can run windows programs that require the cd rom to be in the drive.)

I hope I haven't screwed anything up by deleting and recreating a symbolic link.

Here is what I typed to create the link:
ln -s /media/cdrom0 d:
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Post by oiaohm »

Its what winecfg does anyhow minguo33 is deleting and replacing the link.

Please try winecfg in the command line. wineconfig and winecfg both exist but winecfg is the only one that works dependably normally.
IneedAname

Can't configure wine drives.

Post by IneedAname »

On Fri, 02 Jan 2009 17:10:53 -0600
"minguo33" <[email protected]> wrote:
I hope I haven't screwed anything up by deleting and recreating a symbolic link.

Here is what I typed to create the link:
ndon-desktop:~/.wine/dosdevices$ ln -s /media/cdrom0 d:
Thats fine.
Locked