http://bugs.winehq.org/show_bug.cgi?id=22080
Summary: Wine removes custom drive mappings Product: Wine Version: 1.1.40 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: sub.mesa@gmail.com
Wine appears to be forgetting or removing my drive mappings. I have an NFS filesystem mouned on /nfs, i am the owner of that directory with appropriate write permissions. I do something like this:
# create new wine directory mkdir /nfs/winetest
# populate wine directory WINEPREFIX=/nfs/winetest/ winecfg
# Now i go to Drives tab, make a new D-drive, set it to /nfs, then click Apply # close winecfg # when i launch winecfg again, the /nfs D-drive is still there # so far so good
# now launch some random application on the NFS-mount cd /nfs/ WINEPREFIX=/nfs/winetest/ wine "D:\prip\setup.exe"
# result: wine: module not found; application does not start properly # now check winecfg again: WINEPREFIX=/nfs/winetest/ winecfg # now our D-drive mapping isn't set to anything; its empty.
So it appears wine removes my custom drive mappings whenever an application is launched or tries to access its DLLs located there. If i did something wrong, i'm not aware of it. Wine should just accept the D-drive and launch the application, not removing my drive mapping.
I also tested without using NFS; on my home directory.
mkdir ~/winetest mkdir ~/driveD WINEPREFIX=/home/<user>/winetest winecfg # set drive D to map to /home/<user>/driveD/ type Local Disk # click apply & close winecfg cp -p ~/nfs/prip/setup.exe ~/driveD/ WINEPREFIX=/home/<user>/winetest/ wine "D:\setup.exe" # result: fails again, drive D gone.
I'm using Ubuntu 9.10 64-bit, wine 1.1.40 per winehq.org PPA; no modifications. The latest .41 versions is not in your PPA yet, so i can't test. Can anyone confirm this bug?
http://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #1 from sub.mesa@gmail.com 2010-03-20 08:54:42 --- Hmm, may have found the curlpit, though it does look like some wine bug.
When i look at my dosdevices directory in a fresh wine directory, i can see funny things: c: -> ../drive_c d: -> /nfs d:: -> /dev/sr0 z: -> /
So where does d:: come from? If i delete it, and run winecfg again, it is created again.
1) why doesn't wine show this cd-rom device in winecfg? 2) why does wine use a double ":" in d:: ? 3) why does wine allow me to create a d-drive if the d-letter is already taken?
Something doesn't appear right here..
http://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2010-03-21 01:17:59 --- (In reply to comment #1)
d: -> /nfs d:: -> /dev/sr0
A long long known problem. Mount a cd before starting Wine.
http://bugs.winehq.org/show_bug.cgi?id=22080
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal
http://bugs.winehq.org/show_bug.cgi?id=22080
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, integration
http://bugs.winehq.org/show_bug.cgi?id=22080
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |programs Severity|normal |trivial
--- Comment #3 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-11-16 20:24:15 CST --- Winecfg bug. It shouldn't be using d: drive here. Also bug doesn't depend on nfs.
http://bugs.winehq.org/show_bug.cgi?id=22080
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Wine removes custom drive |winecfg removes custom |mappings |drive mappings
http://bugs.winehq.org/show_bug.cgi?id=22080
Vitaliy Margolen vitaliy-bugzilla@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|winecfg removes custom |Wine removes custom drive |drive mappings |mappings Ever Confirmed|0 |1
--- Comment #4 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-11-16 23:00:48 CST --- It's Wine (mount manager) that removes incorrect mapping. Winecfg is what puts it there in the first place.
And confirming.
http://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #5 from Dmitry Timoshkov dmitry@baikal.ru 2011-11-16 23:22:02 CST --- Wine is the product name and is too broad/meaningless in the bug summary. Component should be probably set to mountmgr.sys then.
http://bugs.winehq.org/show_bug.cgi?id=22080
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|programs |mountmgr.sys
http://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #6 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2011-11-17 08:37:42 CST --- Mount manager does the right thing - it remove a mount point for an unmounted device. Winecfg is what at fault here. It shouldn't be allowing to use d: drive. Or it should remove device mapping for it (d::).
http://bugs.winehq.org/show_bug.cgi?id=22080
Fernando Martins fernando@cmartins.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fernando@cmartins.nl
--- Comment #7 from Fernando Martins fernando@cmartins.nl 2012-04-08 08:31:27 CDT --- I have a couple extra partitions /home and /fun and this is what I get in a new prefix when I just start winecfg:
lrwxrwxrwx 1 nando users 8 2012-04-07 08:43 a:: -> /dev/fd0 lrwxrwxrwx 1 nando users 10 2012-04-07 08:42 c: -> ../drive_c lrwxrwxrwx 1 nando users 8 2012-04-07 08:43 d:: -> /dev/sr0 lrwxrwxrwx 1 nando users 8 2012-04-07 08:43 e:: -> /dev/sr1 lrwxrwxrwx 1 nando users 8 2012-04-07 08:43 f:: -> /dev/sr2 lrwxrwxrwx 1 nando users 1 2012-04-07 08:42 z: -> /
If I do autodetect in winecfg on a 2nd run, I get:
lrwxrwxrwx 1 nando users 14 2012-04-07 08:40 a: -> /media/floppy0 lrwxrwxrwx 1 nando users 10 2012-04-07 08:40 c: -> ../drive_c lrwxrwxrwx 1 nando users 13 2012-04-07 08:40 f: -> /media/cdrom0 lrwxrwxrwx 1 nando users 9 2012-04-07 08:40 f:: -> /dev/scd0 lrwxrwxrwx 1 nando users 11 2012-04-07 08:40 h: -> /home/nando lrwxrwxrwx 1 nando users 1 2012-04-07 08:40 z: -> /
wine 1.5.1
http://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #8 from Fernando Martins fernando@cmartins.nl 2012-04-08 08:39:09 CDT --- sorry, let me add, if I add manually drive G: mapped to /fun, I get
lrwxrwxrwx 1 nando users 14 2012-04-07 08:45 a: -> /media/floppy0 lrwxrwxrwx 1 nando users 8 2012-04-07 08:49 b:: -> /dev/fd0 lrwxrwxrwx 1 nando users 10 2012-04-07 08:42 c: -> ../drive_c lrwxrwxrwx 1 nando users 8 2012-04-07 08:49 e:: -> /dev/sr0 lrwxrwxrwx 1 nando users 13 2012-04-07 08:45 f: -> /media/cdrom0 lrwxrwxrwx 1 nando users 11 2012-04-07 08:45 h: -> /home/nando lrwxrwxrwx 1 nando users 8 2012-04-07 08:49 i:: -> /dev/sr2 lrwxrwxrwx 1 nando users 1 2012-04-07 08:42 z: -> /
notice the extra i::
There are more differences but I can't tell when they happened since I had more runs of wine in two days between both comments.
https://bugs.winehq.org/show_bug.cgi?id=22080
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
--- Comment #9 from Ken Sharp imwellcushtymelike@gmail.com --- Is this still an issue in Wine 1.7.45 or later?
https://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #10 from Fernando Martins fernando@cmartins.nl --- This is still an issue in 3.10. Winecfg detects and defines drives for several mount point points but they are not saved (or removed by mount manager??)
http://bugs.winehq.org/show_bug.cgi?id=22080
Theo van Rijn trijn111@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |trijn111@gmail.com
--- Comment #11 from Theo van Rijn trijn111@gmail.com --- Issue is caused by wine, which changes the configuration set by winecfg. Winecfg should set the values registry in HKEY_LOCAL_MACHINE, L"Software\Wine\Drives"
But the code in /dlls/mountmgr.sys/device.c has in add_dos_device code marked with /* hack: force the drive type in the registry */
and in remove_dos_device remove ALL the entries in KEY_LOCAL_MACHINE, L"Software\Wine\Drives" removing the entries set by winecfg and by add_dos_device.
I think the /* hack can be removed !
But since I have problems with compile and make wine, I have changed winecfg, so in load_drives it sets the right device type (DRIVE_REMOVABLE) to all devices that have "eReader" in its name. Source will be attached.
When first start changed winecfg, second Abobe Digital Edition, The later finds the KOBOeReader, and ebooks can be copied to if.
http://bugs.winehq.org/show_bug.cgi?id=22080
--- Comment #12 from Theo van Rijn trijn111@gmail.com --- Created attachment 79034 --> http://bugs.winehq.org/attachment.cgi?id=79034 drive.c from winecfg