LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   have combo CD-RW/DVD, problem with SCSI emulation, can not play DVD (https://www.linuxquestions.org/questions/linux-hardware-18/have-combo-cd-rw-dvd-problem-with-scsi-emulation-can-not-play-dvd-102947/)

stunix 10-11-2003 10:43 PM

have combo CD-RW/DVD, problem with SCSI emulation, can not play DVD
 
I have a litle problem with my combo CD-RW/DVD

When I enable SCSI emulation in /etc/lilo.conf with "append="hdc=ide-scsi" my CD-RW/DVD works as a CD/RW, but DVD's will not play, is there any way I can use both CD-RW and DVD at the same time without commenting/uncommenting that line in /etc/lilo.conf and rebooting?

I'm using Slackware 9.1 and mplayer.

Thanks.

quatsch 10-11-2003 10:50 PM

I think what you need to do is to have
/dev/cdrom
and
/dev/dvd
point to the same place (both are links). The easiest would be to do
ln -s /dev/cdrom /dev/dvd

phuketsmile.com 10-12-2003 03:34 AM

Hi. I have a similar problem, I think... I bought a Linux machine at half price here in Thailand. The machine included CDRoast (for CD burning), but the CD was read only and not read write. So, after I ran the CD burner software for the first time, it didn't find a CD writer and now mt CD player has stopped working ever since. I think my grub.conf file is missing a line that allows the CD drive to be recognized. Question is: What should my grub.conf line look like to get my CDRom Drive to work again?

sboddy 10-12-2003 08:23 AM

Stunix: Theoretically you can get both CD-RW and DVD working by doing moving the links like the previous guy said.

One problem you may very well encounter is this. Under SCSI emulation the DVD drive does not appear to do DMA. As a result your DVD's will stutter and skip like crazy. I experienced this on a 1.2 GHz Athlon with a combi-drive. Yet my 400 MHz P-II with a SCSI DVD drive is as smooth as silk.

To get decent playback you have to turn off scsi emulation. The easiest way to do this is to have two identical entries in your lilo/grub config file, one with the hdc=ide-scsi parameter and one without. Then set whichever you're more likely to use as the default. I do more burning than DVD watching, so that tends to be my default. That removes one of your inconvenient steps.

Because this parameter is passed to the kernel at boot time, I don't think there is a way to change this on a running system. However I may be wrong. (If this is possible I would be very interested to know how.)

You then need to make sure your /dev/<links to real device> point to the correct place. e.g.:

w/scsi-emulation (CD-RW mode)
/dev/cdrom -> /dev/sr0
/dev/cdrecorder -> /dev/sr0
/dev/dvd -> /dev/sr0

wo/scsi-emulation (DVD mode)
/dev/cdrom -> /dev/hdc
/dev/dvd -> /dev/hdc
(as the recorder/rewriter can't be used in DVD mode, the link is not needed)

You could probably do some sort of boot script to create the correct links depending on which device (hdc or sr0) is available.

Finally, when using the system in DVD mode, make very sure that DMA mode is enabled, or all this switching between kernel parameters will count for nothing.

Eric: First identify what device the CD drive is on using something like
Code:

ide_info /dev/hd[a-d]
as root or whatever hardware info tools come with your distro. Then look at /etc/fstab and find the entry that is supposed to be the cd-rom. Then go to the /dev directory and make this link. On my system for eg:
CD is on /dev/hdc
in fstab it lists:
Code:

/dev/dvd            /media/dvd          auto      ro,noauto,user,exec  0 0
/dev/cdrecorder      /media/cdrecorder    auto      ro,noauto,user,exec  0 0
/dev/cdrom          /media/cdrom        auto      ro,noauto,user,exec  0 0

so in /dev I run the command:
Code:

ln -s /dev/dvd /dev/recorder /dev/cdrom /dev/hdc
which rebuilds all the the symbolic links to a non scsi emulated ide DVD drive. For you Eric, You probably just need to miss out the /dev/dvd and /dev/cdrecorder, as your drive doesn't have those capabilities.

Regards
Steve


All times are GMT -5. The time now is 11:58 AM.