Hello everyone. I'm having a problem accessing my optical (CD/DVD) drive under WINE. What I would like to do is access it "directly" through WINE, i.e. whenever I insert a CD or DVD, I'd like WINE to detect it under it's E:\ (or D: or whatever) drive. However, I don't know how to set this up (and even whether it's possible, but I suppose it is). My CD/DVD drive is apparently /dev/sr0, and if I set this as E: drive in winecfg, nothing happens. On the other hand, if I set it up as where the DVD is currently mounted (e.g. /media/<DVD label>), it works only for that DVD, and none with a different name. Essentially, the best I've gotten to so far is to map one single specific DVD to my E: drive in winecfg, and if I want to use any other one, I have to remap it again under winecfg (which is a great inconvenience when, for example, I play games that require more than one CD/DVD, or when I'm catalogising my DVD collection and switching a DVD every 2-3 minutes). I'm using Arch Linux (x64). If anyone would help me shed some light on this, it would be much appreciated. Thanks in advance! :)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/21/2011 10:27 PM, Wintershade wrote:> Hello everyone. I'm having a problem accessing my optical (CD/DVD) drive under WINE. What I would like to do is access it "directly" through WINE, i.e. whenever I insert a CD or DVD, I'd like WINE to detect it under it's E:\ (or D: or whatever) drive. > > However, I don't know how to set this up (and even whether it's possible, but I suppose it is). My CD/DVD drive is apparently /dev/sr0, and if I set this as E: drive in winecfg, nothing happens. On the other hand, if I set it up as where the DVD is currently mounted (e.g. /media/<DVD label>), it works only for that DVD, and none with a different name. > > Essentially, the best I've gotten to so far is to map one single specific DVD to my E: drive in winecfg, and if I want to use any other one, I have to remap it again under winecfg (which is a great inconvenience when, for example, I play games that require more than one CD/DVD, or when I'm catalogising my DVD collection and switching a DVD every 2-3 minutes). > > I'm using Arch Linux (x64).You need to use WINE configuration to assign your CD-ROM a WINE drive "letter", see WINE FAQ: http://wiki.winehq.org/FAQ#head-f3515230c198befe0279d32c448d9c8da63be66f -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNhyHQAAoJEHblvm1J+WqMJPQH/3I7tPu77/bt8uONIaqK+TGK /1+r7sFCck9JCDkX+dpHnLboFyKL7hermRTVgg3aTbmfwIhU4Uzxu3ny5yxZBPcg emGvHfZb/If48014Ixid4phxJR07ZOId5V5bESGzAMesKEw3uRx/w7//JNvvX91Y NVT9DyOB63Lnvr7QPU5FJomb+fhHA1bfd7di3N/9xbk0X9cldFkra6iAWbnvdTg5 oJPENfuTU6I0WPjgOJyRGs+jloIk/uzAy4CsSrK1WOG7L2+t9Tyaw2b+uwjl5Cc4 txNhTqkWvup4g9lJvJtD5Ubeg4alRZhEWrs103hSd6taq2Fv3BL6UrDh/2kM8JI=1277 -----END PGP SIGNATURE-----
Bryan, thanks for the quick reply. However, I am aware that I need to set this up in winecfg, as I have mentioned in the first post. The problem is that, since I'm using udev (rather than HAL, or any other method) to mount my removable drives, I don't have a /media/cdrom directory or anything like that. When I insert a CD/DVD, it gets mounted under the path /media/<DVD label>, where <DVD label> is a dynamic name which changes according to the label of the respective DVD. So if I assign a WINE drive "letter" to one specific DVD like that, no other DVD will work because no other DVD will be mounted under that name. :( Any other ideas?
Well okay, that's true. I'll sniff around udev a bit. However, does that mean that WINE doesn't have a standard way of accessing the optical drives and/or automatically (re-)assigning a drive letter to an optical drive? It would really be a neat feature...
Bryan Baldwin wrote:> what you want is > totally doable by a user who is minding their udev rules.Okay, so do you know of any udev rules which would help me in this situation? TIA
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/22/2011 11:42 AM, Wintershade wrote:> Bryan Baldwin wrote: >> what you want is totally doable by a user who is minding their udev >> rules. > Okay, so do you know of any udev rules which would help me in this > situation? TIAI already told you where to look if you recall. The udev rule you are looking for is probably in something like /etc/udev/rules.d/75-cd-aliases-generator.rules. RTFM>> Bryan Baldwin wrote: > Then your question is directed at the wrong project. If you are using > udev, the rule that is generating dynamic mount names will be > probably be something like > /etc/udev/rules.d/75-cd-aliases-generator.rules. You should read "man > udev", google around for clues, or ask your question on a udev > channel, eg. "How can I have udev create a mount point with the same > name whenever I put in a disc?"-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNh9pwAAoJEHblvm1J+WqM28cIAJpGf5ZNHkWM44V+an/qxtpl 0aknoQVbdTE7FO0I19EU/a1WfcVtnwxy92fDnvURFIDcfM478khST0g3HaU0DNKB r8Cebqb/iDTtr21E7fPyYrWd5H9HHYKE0alwBxDNEcJsOAD2CKruK4N4x+Jj8XhJ dKQpcl2eH/iry5AparxpMv+W/e4ry6prDUc6N3PTLmcmjZRTWdYzhI3+nHQ7fRku 3HVofPBJDJMAAB+GKybQxW9BzHiMqo4ywcDR+SA6OOV4aixj1mlLe6v0aIRYPgIx Im+kDOgDsAoucdvyFnVBmlBty6l5CaNRujoaNDAlR03H6vzZHNhwCWnXJs00I5I=7Lrp -----END PGP SIGNATURE-----
Bryan Baldwin wrote:> > I already told you where to look if you recall. The udev rule you are > looking for is probably in something like > /etc/udev/rules.d/75-cd-aliases-generator.rules. > > RTFMThere is no need for rudeness. I was asking whether you know of any udev rules, not whether you think something would be probably be somewhere. I know about the 75-cd-aliases-generator.rules file, and it - for some reason - doesn't deliver for me. Anyway, thanks for the directions. I've been digging through the Arch Wiki and various udev-related websites for a few days now (I've had rules like that already set up in HAL once), so I should hopefully be able to do it with udev as well in some time.
vitamin wrote:> No, it doesn't. > > Wine supports HAL/dbus for detecting new mounted devices. And automatically assigning drive letter. The reason it's not forking for you is it's either you don't have development headers when you compiled Wine. Or you don't have correct 32-bit libraries.Hmm. I however don't even have HAL installed, since Arch abandoned it, just like some other distros in their current versions :( vitamin wrote:> Also Wine supports most iocpls for the CD-ROM devices - direct access to the drive/media.Forgive my ignorance, but how do I put those to good use? TIA
Bryan Baldwin wrote:> Archlinux did not abandon HAL. > > $ yaourt -Ss hal > extra/hal 0.5.14-6 [installed] > Hardware Abstraction LayerYes, alright, it did not abandon HAL, however I'm not getting the same HAL functionality as I had before. The HAL policies I've used before simply don't work anymore. I've had my own HAL policy for mounting optical discs under /media/disc, as I've described on Arch bbs (https://bbs.archlinux.org/viewtopic.php?id=91450). Also, ArchWiki says about HAL (https://wiki.archlinux.org/index.php/HAL)... ArchWiki wrote:> HAL functions largely overlap with udev and kernelspace functionality. Therefore, HAL has become deprecated in favor of udev and is no longer developed. Currently, a small number of programs still rely on and use HAL, though development is heading toward utilizing udev as a replacement in the near future.So it's not really abandoned in it's full sense, but it's become deprecated, and it will soon be replaced by udev. Just like it has been on, for example, Ubuntu and openSUSE. I have a bad feeling that I'm doing something completely wrong, but I just can't figure out what :(
Im saying if you mount your cd drive in wine it mounts the disk that you currently have in the cd drive. Is there no way for it to mount just the drive itself so that anytime you put in a disk into the drive it should mount the new disk.