LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-13-2003, 04:04 PM   #1
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Rep: Reputation: 15
DVD drive - plays cd's - not playing dvd's


i'm using Red Hat Linux 9, kernel 2.4.20-9 with Ximian desktop 2. i just switched out a regular cd drive (samsung) for a dvd-rom drive (lite-on). the samsung cd drive was configured and working correctly before the switch. i also have a cd burner that works fine as well.

after installing the dvd drive i can use it as a cd drive just fine, but it doesn't recognize dvd's. i have xine 0.9.22 installed with libdvdcss 1.2.6.

what am i missing here?

thx in advance

scott

Last edited by quantumechanix; 09-13-2003 at 08:33 PM.
 
Old 09-13-2003, 05:28 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I had something similar to this problem. Look for my posts somewhere here in software or hardware section.
 
Old 09-13-2003, 08:58 PM   #3
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Original Poster
Rep: Reputation: 15
thx 420, i read your post. you seem to have had a problem with audio in that post. my audio is fine on both drives, it's just that dvd disks don't seem to be recognized. also, you had a question in that post about winxp and audio cables. winxp doesn't need the analog audio cable hooked up to the snd card. winxp uses digital info from the ide cable directly (which is neat btw). linux doesn't do this yet (i think the 2.6 kernel will have this feature). but then, linux didn't have to be patched against MSBlaster and SoBig either.

some more info. the dvd-rom drive is /dev/hdc. i have two hd's on hda and hdb (dual boot system with winxp and RH9). my cd burner is hdd which i think is using scsi emulation. looking at my dmesg output shows that when attempting to read a dvd disk i get the following:

hdc: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdc: packet command error: error=0x54
ATAPI device hdc:
Error: Illegal request -- (Sense key=0x05)
Cannot read medium - incompatible format -- (asc=0x30, ascq=0x02)
The failed "Read CD" packet command was:
"be 00 00 00 00 00 00 00 01 f8 00 00 "


so here i am, dvdless
 
Old 09-13-2003, 09:52 PM   #4
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Original Poster
Rep: Reputation: 15
also, my fstab looks like:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda2 /mnt/winxp ntfs ro,uid=path 0 0
/dev/hda5 /mnt/winlin_share vfat auto,users,rw,umask=000 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
 
Old 09-13-2003, 10:21 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Unfortunately I post too much here so I may have many posts and some problems I fixed.

The problem I had was that I would pop in my DVD and the DVD drive kept reading... and reading... and reading.. and would lock up my computer. Does this happen to you?

What I did was (I use Mandrake) I went to my control center and added an RPM for DVD's and installed the libdvdcss thing you mentioned and my DVD worked after that.
 
Old 09-13-2003, 10:32 PM   #6
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Original Poster
Rep: Reputation: 15
hmm, i was hoping it would be that easy for me. when i put a dvd disk in it runs just like any other time, but then doesn't do anything. xine doesn't run anything from the dvd drive. do you think you could remember what rpm you installed, even though it was for mandrake. also. what app are you using to view dvd's?

thx

Last edited by quantumechanix; 09-14-2003 at 12:29 AM.
 
Old 09-14-2003, 12:55 AM   #7
quantumechanix
Member
 
Registered: Jan 2003
Posts: 47

Original Poster
Rep: Reputation: 15
the problem is solved, at least for xine. here is the synopsis:

make sure the following are installed on your system; libdvdcss, libdvdread, and xine (i think you may also need something called dvdnav)

i then made a link called dvd in my dev directory that linked to the dvd-rom device which is also in the dev directory. to do this i used this command:

ln -sf /dev/hdc /dev/dvd

my dvd drive was hdc. if you don't know which device your drive is, you can issue the command "more /etc/sysconfig/hwconf" this is the hardware configuration file. it is pretty large, but you should find entries pertaining to you CD-ROM devices. these are the CD-ROM entries from my system:

-
class: CDROM
bus: IDE
detached: 0
device: hdc
driver: ignore
desc: "JLMS DVD-ROM LTD-166S"
-
class: CDROM
bus: SCSI
detached: 0
device: scd0
driver: ignore
desc: "Samsung CD-R/RW SW-240B"
host: 0
id: 0
channel: 0
lun: 0
generic: sg0
-


hopefully this will help the next in line

scott
 
Old 11-01-2003, 07:37 PM   #8
garamatt
LQ Newbie
 
Registered: Sep 2003
Location: Van(rainy)couver
Distribution: Fedora Core 1
Posts: 22

Rep: Reputation: 15
thanks quarantinechanix, I had a similar problem and I solved it by creating the symbolic link in the /dev/ folder.

Though I feel I can add to this solution for people who are not so familiar with linux.

To make sure you are creating the right symbolic link open up your terminal window.

In the command line type: "cat /etc/fstab"

you should ge output that looks something (though not the same as) this:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hdb1 /mnt/D: ntfs uid=matt 0 0
/dev/cdrom1 /mnt/dvd udf,iso9660 noauto,owner,kudzu,ro 0 0

(Note that I copy and pasted this so the columns arent exactly as they should be)

As you can see I have two cdrom entries. The first one has a LABEL of "/dev/cdrom" and the second has a LABEL of "/dev/cdrom1". These two entries have a "/" (directory) of "/mnt/cdrom" and "mnt/dvd" respectively. The second was actually not "mnt/dvd" at first, but I changed it in order to reduce confusion. If you would also like to change this you can do this if you have a editing tool like gedit. If you do, and you most likely do, in the terminal type "su" and then your password. Then type "gedit /etc/fstab". You will get a warning, but you can ignore it. Edit the fstab file to reflect "/mnt/dvd" if you so desire. It actually isnt mandatory. Save the file and exit.

The next step is the required step to get things working. Open up a new terminal window and you probably want to "su" and password. Make sure you know the LABEL for the dvd drive you want to get working. In my case it was "/dev/cdrom1". If you are not sure you can always type "cat /etc/fstab" to get an output of all your devices. Now you want to create a symbolic link to LABEL of the dvd-rom that was assigned by linux. To do this you want to create and entry in your "/dev" folder for a dvd-rom. This entry is defaulted to look like "/dev/dvd". The desired command line that you want to type is "ln -s <LABEL OF YOUR DVD ROM> /dev/dvd". Please do not coppy and paste that because it will not work. In the part that says <LABEL OF YOUR DVD ROM> you will want to replace that with the actual label of your DVD ROM found in your /etc/fstab file. In my case the actuall command line was "ln -s /dev/cdrom1 /dev/dvd". You can use the "ln -f" option if you so desire, but that only overwrites an existing /dev/dvd entry and it could cause problems.
 
  


Reply



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
Playing Audio CD's and Video DVD's evilmonkey Linux - Software 4 10-24-2005 10:54 AM
Looking for Live Linux Distro that plays CD's and DVD's The Kingbee Linux - General 4 08-26-2005 01:18 AM
DVD drive now plays, but now doesn't play all of the movie Bigun Linux - Software 4 02-01-2004 07:55 AM
DVD plays but no audio (can play audio cd's though)? guitarnix Linux - Newbie 2 10-05-2003 07:52 AM
My dvd drive reads cd's but not dvd's malcolm Linux - Newbie 8 01-23-2003 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration