LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-26-2004, 05:04 PM   #1
ezuk
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
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?
 
Old 09-26-2004, 06:14 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
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.
 
Old 09-27-2004, 02:17 AM   #3
ezuk
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 10-08-2004, 05:04 PM   #4
sld
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Angry

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...
 
Old 10-10-2004, 05:47 AM   #5
ezuk
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
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.
 
Old 10-10-2004, 07:21 AM   #6
BedriddenTech
Member
 
Registered: Aug 2003
Distribution: Slackware 9.1, 10; FreeBSD 5.2.1; Fedora Core 2; SuSE 9.1
Posts: 44

Rep: Reputation: 15
sld: Look in your /etc/lilo.conf; scsi emulation is something you must specify at your boot prompt, so it should be listed there.
 
Old 10-10-2004, 04:51 PM   #7
sld
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Talking

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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Drive and CDRW Drive Will not mount on Slackware 10.1 Kernel 2.6.1 necrozen Linux - Hardware 1 09-13-2005 08:21 PM
New DVD drive not working properly Bigun Linux - Software 22 08-19-2004 02:43 PM
CD/DVD drive not working on Debian Sarge lussumo Linux - Hardware 4 07-28-2004 08:01 PM
Added new DVD drive, old cd stopped working ejennings_98 Linux - Hardware 9 05-22-2004 09:34 PM
New CDRW/DVD combo drive not working! Derrick Linux - Newbie 6 09-20-2003 09:07 AM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration