Skip to content

The game asks for its CD under Wine on Linux, though the disc's folder is mapped with the right label ​

Symptoms ​

The game asks to "Insert the CD", though the disc's files are mapped as drive D: and the volume label is set. With a real CD device attached, Wine's +volume trace shows cannot open device D: c0000022.

Cause ​

Two causes came one after the other (observed in POD with WINEDEBUG=+volume).

  • Under Wine on Linux a folder mapped as a drive is a fixed drive. GetDriveTypeW returns 3, even with the drive's type set in HKLM\Software\Wine\Drives. On macOS the same setting worked. A game that looks for a drive of type 5 never finds the disc.
  • Wine opens the CD device to read its label. /dev/sr1 was readable by root only, so the open failed with c0000022 (access denied).

What to do ​

Attach the disc's data track as a CD-ROM device. A mapped folder stays a fixed drive. Cut the track out of the BIN/CUE with ./gameframe run discinfo IMAGE.cue --iso DISC.iso. Attach the ISO as a CD-ROM drive in the emulator. Map Wine's D: to the device's mount point. Make the device readable by everyone with a udev rule, KERNEL=="sr[0-9]*", MODE="0644". emupc.py writes that rule.

Code: Apache 2.0. Content: CC0 1.0. No game material: bring your own copy.