[Wine] "Command & Conquer 3" dvd automount failure workaround

Dan Kegel dank at kegel.com
Tue Jul 17 09:13:56 CDT 2007


The "Command & Conquer 3" dvd fails to automount when you insert it,
and is not recognized as a UDF image by /bin/file, but is
recognized as a UDF image by mount.

To reproduce:
 insert "Command & Conquer 3" dvd.
 Observe that gnome does not automount.
 Look in /var/log/messages, notice line like
Jun 27 15:03:13 dank kernel: [  470.600493] Unable to identify CD-ROM format.

Changing /etc/fstab
from
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
to
/dev/hda        /media/cdrom0   udf user,noauto     0       0
lets the disc automount ok.

Also, commenting out the /dev/hda line in fstab and then executing
sudo mount /dev/hda /media/cdrom0
works properly with this disc.
So mount (source package util-linux) seems to contain
autodetection code that works properly.

Note also that 'file' fails to autodetect this image:
$ file /home/dkegel/www/ccdvd.bin
/home/dkegel/www/ccdvd.bin: data
whereas it detects similar cd-rom images ok:
$ file /home/dkegel/www/cdrom.bin
/home/dkegel/www/cdrom.bin: ISO 9660 CD-ROM filesystem data
'AUTOCAD_BIBLE                  '
This is probably a bug in the 'file' command, which uses libmagic to
do its autodetection.
I suspect 'file' or libmagic is used by hal to decide what kind of
disc is being inserted.  (But it could also be a kernel bug, I dunno.)
- Dan



More information about the wine-users mailing list