LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   DVD Drive not working, Debian, 2.6.8 kernel (https://www.linuxquestions.org/questions/linux-hardware-18/dvd-drive-not-working-debian-2-6-8-kernel-235499/)

ezuk 09-26-2004 05:04 PM

DVD Drive not working, Debian, 2.6.8 kernel
 
Hi All,

Been trying hard to get my DVD to work, but no luck. RTFMed for all I could, but no luck.

Look:

dmesg | grep 'DVD'
hdd: TOSHIBA DVD-ROM SD-M1912, ATAPI CD/DVD-ROM drive

ls -l /dev/dvd
lrwxrwxrwx 1 root root 8 2004-09-24 01:29 /dev/dvd -> /dev/hdd

ls -l /dev/hdd
brwxrwxrwx 1 root disk 22, 64 2001-04-15 02:43 /dev/hdd

cat /dev/hdd
cat: /dev/hdd: No such device or address

So, it looks like it doesn't exist at all, even though it gets detected at boot. What gives? How can I make it work?

There's a CD in the drive. I've installed Ogle and libdvdread and everything. It's the only device on the IDE chain. It gets recognized properly on POST (by the BIOS) and also by the boot process (see above).

/dev/sd0 also gives "No such device or address" error, so I don't think it's a SCSI emulation thing.

Totally clueless here. Any ideas?

bruno buys 09-26-2004 06:14 PM

If you can't watch dvd's its a software problem. If you can't browse any cd or dvd inside it, its system's problem.
Your config seems to be ok. The device is actually /dev/hdd. Try to insert a cdrom into it and do
mount /dev/hdd /cdrom (or whatever dir you mount'em). Then see if you can browse the cdrom. My guess is you can.

ezuk 09-27-2004 02:17 AM

Quote:

Originally posted by bruno buys
If you can't watch dvd's its a software problem. If you can't browse any cd or dvd inside it, its system's problem.
Your config seems to be ok. The device is actually /dev/hdd. Try to insert a cdrom into it and do
mount /dev/hdd /cdrom (or whatever dir you mount'em). Then see if you can browse the cdrom. My guess is you can.

No... I tried that yesterday. I mean, what I tried was put a normal cd in the drive and type cat /dev/hdd, and I got a "no device or address" error, even with a plain old CD. I didn't try to mount it though, because the mount didn't work previously. I can give it a shot, but basically whenever I get a "no device or address" error, this same error prevents me from mounting later.

Any other ideas? This is really strange.

sld 10-08-2004 05:04 PM

Hi,

I'm facing the same problem after upgrading my debian from 2.4.25 to 2.6.8
I can not mount my dvd or my cd drive

here is what I get from dmesg:

ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device
scsi2 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: _NEC Model: DVD_RW ND-2510A Rev: 2.15
Type: CD-ROM ANSI SCSI revision: 02
scsi3 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SAMSUNG Model: DVD-ROM SD-612F Rev: XS03
Type: CD-ROM ANSI SCSI revision: 02
ide-scsi: unsup command: dev hdd: flags = REQ_CMD REQ_STARTED
sector 0, nr/cnr 1/1
bio 000001000b664a80, biotail 000001000b664a80, buffer 0000010009500000, data 0000000000000000, len 0
end_request: I/O error, dev hdd, sector 0
FAT: unable to read boot sector
ide-scsi: unsup command: dev hdc: flags = REQ_CMD REQ_STARTED
sector 0, nr/cnr 1/1
bio 000001000b664a00, biotail 000001000b664a00, buffer 000001000a72a000, data 0000000000000000, len 0


I've read that id-scsi is not necessary anymore. How can I remove it ?
It is not in my /etc/modules.conf...

if I do: rmmod ide-scsi it does not solve the problem..

Any tips ?

Thanks...

ezuk 10-10-2004 05:47 AM

Well, actually my problem got solved by _enabling_ ide/scsi emulation. :)

I enabled it, and then I set up a symlink to /dev/scd0 (which is the emulated SCSI device) as /dvd, like so: ln -s /dev/scd0 /dvd (I hope I didn't mess up the order of the params -- if it doesn't work, try switching them around).

And then it worked! Without mounting. I just stick the DVD in the drive, start up my media player (oKle or whatever) and it works like a charm.

The only problem was that it was a bit jumpy, so I fixed that using hdparm to enable DMA directly to the device itself, /dev/hdd (I think hdparm -d 1 /dev/hdd). And then it worked smoothly and very nicely.

Try it and let me know if it works out.

BedriddenTech 10-10-2004 07:21 AM

sld: Look in your /etc/lilo.conf; scsi emulation is something you must specify at your boot prompt, so it should be listed there.

sld 10-10-2004 04:51 PM

Quote:

Originally posted by BedriddenTech
sld: Look in your /etc/lilo.conf; scsi emulation is something you must specify at your boot prompt, so it should be listed there.
Thanks this was indeed the problem. After removing the scsi lines from lilo, I got rid of the scsi emulation and managed to read and write dvds!

thanks a million!


All times are GMT -5. The time now is 12:11 PM.