Sample Header Ad - 728x90

How to permanently fix a cd drive at a given location in winecfg

0 votes
1 answer
1610 views
I installed some CD based windows educational software in wine and it works great, except for some reason it can't find the disk unless I manually change the path from its default location G:/media/user/cdname/ to D:/media/user/cdname/, but this is reset back to G:/... every time I put in a new cd. Is there a way to permanently change this location to D? There are too many disks to virtually mount them from my hard drive This is on ubuntu 19.04 and wine 4.7 edit- The output of ls -l ~/.wine/dosdevices is ~~~ total 0 lrwxrwxrwx 1 user_family user_family 10 Apr 30 18:08 c: -> ../drive_c lrwxrwxrwx 1 user_family user_family 27 May 2 11:56 d: -> /media/user_family/Geom-9 lrwxrwxrwx 1 user_family user_family 8 May 2 11:43 d:: -> /dev/sr0 lrwxrwxrwx 1 user_family user_family 1 May 1 14:16 e: -> / lrwxrwxrwx 1 user_family user_family 8 Apr 30 18:08 f:: -> /dev/sde lrwxrwxrwx 1 user_family user_family 27 May 2 11:43 g: -> /media/user_family/Geom-9 lrwxrwxrwx 1 user_family user_family 8 May 1 15:33 g:: -> /dev/sr0 lrwxrwxrwx 1 user_family user_family 8 Apr 30 18:08 h:: -> /dev/sdc lrwxrwxrwx 1 user_family user_family 8 Apr 30 22:15 i:: -> /dev/sdf lrwxrwxrwx 1 user_family user_family 19 May 1 14:38 j: -> /home/user_family lrwxrwxrwx 1 user_family user_family 8 May 2 11:44 k:: -> /dev/sdd lrwxrwxrwx 1 user_family user_family 1 Apr 30 18:08 z: -> / ~~~ Following telcoM's solution makes the cd drove show up in the proper D:/ location as wanted. But I still need to go into winecfg every time i put in a new disk or the location points to the old disk and I get a no cd error in the program. It is enough to simply run winecfg to update the pointer to the new disk each time, but I would like to be able to start the program with no edits. here is the terminal output with no changes made to winecfg beside closing it:
user_family@user-pc-home:~$ ls -l ~/.wine/dosdevices
total 0
lrwxrwxrwx 1 user_family user_family 10 Apr 30 18:08 c: -> ../drive_c
lrwxrwxrwx 1 user_family user_family 27 May  3 09:25 d: -> /media/user_family/Alg2-2
lrwxrwxrwx 1 user_family user_family  8 May  2 11:43 d:: -> /dev/sr0
lrwxrwxrwx 1 user_family user_family  1 May  1 14:16 e: -> /
lrwxrwxrwx 1 user_family user_family  8 Apr 30 18:08 f:: -> /dev/sde
lrwxrwxrwx 1 user_family user_family  8 Apr 30 18:08 h:: -> /dev/sdc
lrwxrwxrwx 1 user_family user_family  8 Apr 30 22:15 i:: -> /dev/sdf
lrwxrwxrwx 1 user_family user_family 19 May  1 14:38 j: -> /home/user_family
lrwxrwxrwx 1 user_family user_family  8 May  2 11:44 k:: -> /dev/sdd
lrwxrwxrwx 1 user_family user_family  1 Apr 30 18:08 z: -> /
user_family@user-pc-home:~$ winecfg
000b:fixme:winediag:start_process Wine Staging 4.7 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0019:fixme:ntoskrnl:ObDereferenceObject failed to release 0x1bc50
0019:fixme:ntoskrnl:ObDereferenceObject failed to release 0x1cd40
0019:fixme:ntoskrnl:ObDereferenceObject failed to release 0x1bb70
user_family@user-pc-home:~$ 
user_family@user-pc-home:~$ ls -l ~/.wine/dosdevices
total 0
lrwxrwxrwx 1 user_family user_family 10 Apr 30 18:08 c: -> ../drive_c
lrwxrwxrwx 1 user_family user_family 28 May  3 09:36 d: -> /media/user_family/Geom-10
lrwxrwxrwx 1 user_family user_family  8 May  2 11:43 d:: -> /dev/sr0
lrwxrwxrwx 1 user_family user_family  1 May  1 14:16 e: -> /
lrwxrwxrwx 1 user_family user_family  8 Apr 30 18:08 f:: -> /dev/sde
lrwxrwxrwx 1 user_family user_family  8 Apr 30 18:08 h:: -> /dev/sdc
lrwxrwxrwx 1 user_family user_family  8 Apr 30 22:15 i:: -> /dev/sdf
lrwxrwxrwx 1 user_family user_family 19 May  1 14:38 j: -> /home/user_family
lrwxrwxrwx 1 user_family user_family  8 May  2 11:44 k:: -> /dev/sdd
lrwxrwxrwx 1 user_family user_family  1 Apr 30 18:08 z: -> /
user_family@user-pc-home:~$
I thought maybe I was too specific so i tried to use the higher level folder D:\media\user-family\ in winecfg and hoped it would pick out the appropriate sub-folder automatically when I put the new disk in, but that didn't work, and winecfg rewrite it to the full path anyway when I ran winecfg a second time.
Asked by mother brain (3 rep)
May 2, 2019, 02:12 AM
Last activity: May 5, 2019, 11:05 PM