I recompiled my kernel to build RAID in and when I got my system back up, I notice the dvd drive was gone. It is present as /dev/sr0, but when I try to play a DVD from it, it cannot decrypt it and treats it as if it were a regular cdrom. I am not sure which module is responsible for the dvd device, and I have no idea why I dont have any /dev/hd* device for it. My hard drives are SATA so they show up as /dev/sd*, but my dvd burner is on the ATA bus and the system finds only /dev/sr0.
This is what /proc/sys/dev/cdrom/info gives me:
drive name: sr0
drive speed: 1
drive # of slots: 1
Can close tray: 1
Can open tray: 1
Can lock tray: 1
Can change speed: 0
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 0
Can write CD-RW: 0
Can read DVD: 0
Can write DVD-R: 0
Can write DVD-RAM: 0
Can read MRW: 0
Can write MRW: 0
Can write RAM: 0
saikee
10-31-2007, 09:50 PM
Kernel 2.6.20 and later have abandoned the Pata disk device names and all hard disks of SCSI/Pata/Sata/USB types are handled by driver libATA leading to standardised device names sda, sdb, sdc, sdd, sde, sdf, etc etc.
The CD name also changes to scr0, scr1 etc.
Just change the device names in boot configuration file and fstab and you should survive.
Liquid Snake
10-31-2007, 11:51 PM
The strange thing is that the stock mandriva kernel (2.6.17) did have /dev/hd* names, and I am running the same exact kernel version, but configured differently.
I am not hung up over names, but Im just concerned that DVD decryption no longer works for some reason. As you can see in the list above, I have highlighted items which appear to be incorrect. If libATA is now the component which handles the drive, why does it think I have a plain jane CDROM instead of a DVD burner? It worked properly in the past as a /dev/hd* device.
Can you not find the device name of the DVD in /dev directory and mount it using your own chosen name in /media or /mnt?
I think Mandriva may have jumped the gun by using "libata" module now in kernels older than 2.6.20. I still got device dvd in mine
[root@localhost saikee]# ls /dev/dvd*
/dev/dvd@ /dev/dvd0@
[root@localhost saikee]# uname -a
Linux localhost 2.6.17-13mdv #1 SMP Fri Mar 23 19:03:31 UTC 2007 i686 Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz GNU/Linux
[root@localhost saikee]# lsmod |grep libata
libata 60748 3 sata_sil24,ahci,ata_piix
scsi_mod 118824 6 sg,sbp2,sr_mod,sd_mod,ahci,libata
Liquid Snake
11-01-2007, 08:41 AM
[root@twinturbo ~]# ls -l /dev/dvd*
ls: /dev/dvd: No such file or directory
Making the symlink to sr0 doesn't solve this because libata thinks this is a regular cdrom drive. Although I can read dvds at the filesystem level, mplayer cannot actually decrypt the dvd because it can't get dvd-specific drive info like region etc. This is a DVD burner and the cdrom info doesn't report any of these capabilities.
I'm pretty sure it's in the kernel as I'm on a SATA RAID right now.
Liquid Snake
11-01-2007, 02:53 PM
This is some output I get from libdvdcss and mplayer:
MPlayer 1.0pre8-4.1.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (Family: 15, Model: 75, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
93 audio & 211 video codecs
Opening joystick device /dev/input/js0
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing dvd://1.
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure there is a DVD in the drive, and that you have used the correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /root/.dvdcss/SOPRANOS_S6B_DISC4-2007081518185000-0000000000/
Reading disc structure, please wait...
There are 4 titles on this DVD.
There are 9 chapters in this DVD title.
There are 1 angles in this DVD title.
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdcss debug: title key found in cache e8:c1:83:82:ba
libdvdcss debug: title key found in cache e8:c1:83:82:ba
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdcss debug: title key found in cache e6:50:b9:fb:48
DVD successfully opened.
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
libdvdcss error: read error
saikee
11-01-2007, 04:26 PM
Here is Fedora 7 response
[root@localhost saikee]# /sbin/lsmod | grep libata
libata 118321 3 sata_sil24,ata_generic,ata_piix
scsi_mod 140749 4 sr_mod,sg,libata,sd_mod
[root@localhost saikee]# ls /dev/dvd*
/dev/dvd /dev/dvdrw-sr0 /dev/dvdwriter
/dev/dvdrw /dev/dvd-sr0 /dev/dvdwriter-sr0
Debian 4rc0
debian:/home/saikee# lsmod | grep libata
libata 89396 2 ata_piix,sata_sil24
scsi_mod 124168 5 sbp2,sg,sr_mod,sd_mod,libata
debian:/home/saikee# ls /dev/dvd*
/dev/dvd /dev/dvdrw
debian:/home/saikee# uname -a
Linux debian 2.6.18-5-686 #1 SMP Wed Sep 26 17:54:59 UTC 2007 i686 GNU/Linux
Thus may be there was something not quite right in your re-compiled Mandriva kernel.
Liquid Snake
11-01-2007, 04:32 PM
I have it compiled in because I'm booting off a RAID1. I think the cause of this is that my drive is being reported as a cdrom drive and not a DVD burner. I don't know why this is happening or what I can do about it.
libdvdcss debug: opening target `/dev/sr0'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure there is a DVD in the drive, and that you have used the correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /root/.dvdcss/SOPRANOS_S6B_DISC4-2007081518185000-0000000000/
The device /dev/sr0 doesn't seem to offer DVD ioctls. How can I tell the kernel that I have a DVD burner and not a CDROM?
saikee
11-01-2007, 05:06 PM
I don't suppose it is a bit of losing face if I suggest to you to download the latest Mandriva 2008 and try its 2.6.22.9 kernel? It may not the optimum for your PC but it is a second opinion.
Liquid Snake
11-01-2007, 05:44 PM
OK, I dusted off my external Sony DVDRW and plugged it in. It is listed as sr1 where my defunct internal is sr0:
drive name: sr1 sr0
drive speed: 24 1
drive # of slots: 1 1
Can close tray: 1 1
Can open tray: 1 1
Can lock tray: 1 1
Can change speed: 1 0
Can select disk: 0 0
Can read multisession: 1 1
Can read MCN: 1 1
Reports media changed: 1 1
Can play audio: 1 1
Can write CD-R: 1 0
Can write CD-RW: 1 0
Can read DVD: 1 0
Can write DVD-R: 1 0
Can write DVD-RAM: 1 0
Can read MRW: 1 0
Can write MRW: 1 0
Can write RAM: 1 0
I was able to play a DVD successfully from the external, so why is my internal DVDRW that once worked great with this very same kernel version, now detected as a 1x CDROM drive and what can I do about it?
knute
11-01-2007, 09:44 PM
I had this problem several months ago after a kernel update in gentoo. I found that the problem was that the boot parameters had also changed.
I had to use hdx=ide-cd
I figured that out by trying the roxio demo and it blatantly telling me, then I found it in the kernel docs.
After changing this from what it was before, and rebooting, my dvdrw works just fine now.
HTH
Liquid Snake
11-02-2007, 08:48 AM
So what should I do? It already thinks it's an IDE CD drive.
Would sr0=ide-dvd be a valid option?
Should I try buying a PATA->SATA adapter?
knute
11-02-2007, 09:43 AM
No. If it is the master drive on the secondary controller it would be hdc.
If it is the master drive on the primary controller it would be hda.
hdb and hdd are when they are the slave drives on the primary and secondary ide controllers.
Where ever you have your drive attatched is how you set up the ide-cd boot parameter.
If you look in /usr/src/Documentation, there is an explaination about ide-cd. (grep -R ide-cd ./ from that directory should bring it up)
HTH
Liquid Snake
11-02-2007, 09:52 AM
The drive is the primary master, but because of libata, it shows up as sr0. The problem not that I can't use the drive as a cd-rom, but that it doesn't have any DVD ioctls. How can I force it to be detected as a DVDRW?
knute
11-02-2007, 03:27 PM
Have you tried making it the secondary master, as that is the recommended location?
Also, afer a quick google searhc for "libata dvdrw", I found this article (http://linux.spiney.org/debian_gnu_linux_on_an_ibm_thinkpad_t43p_cdrw_dvdr w_multi_burner) that suggests adding
libata atapi_enabled=1 to your boot options.
This is what I found, so I don't know from personal experience if it works or not. :)
HTH
Liquid Snake
11-02-2007, 04:47 PM
I used to have it as a primary slave. Back then my single hard drive was the primary master. Then I recompiled the kernel so I could move to a SATA RAID1 array, and when I did, I started having this problem. I moved the drive to master and the problem persists. I tried that kernel option, except there was a period between libata and atapi. I'll give it a shot without the period. Thanks.
Liquid Snake
11-03-2007, 07:47 PM
Why would it matter on which adapter the drive is? I dont have a secondary adapter anyway.
knute
11-03-2007, 08:21 PM
The bios has a default setting of booting whatever's at /dev/hda1 or the primary master on the ide bus. If there's a scsi bus or some other kind of bus, well then that would vary by manufacturer.
Most modern motherboards provide 2 ide slots where you plug in your ide drives (hdd and cdr/dvd/rw); though, I admit I haven't had the chance lately to play with sata or raid, so that's why I'm not saying too much about those. :)
Liquid Snake
11-03-2007, 10:02 PM
The bios has a default setting of booting whatever's at /dev/hda1 or the primary master on the ide bus. If there's a scsi bus or some other kind of bus, well then that would vary by manufacturer.
Most modern motherboards provide 2 ide slots where you plug in your ide drives (hdd and cdr/dvd/rw); though, I admit I haven't had the chance lately to play with sata or raid, so that's why I'm not saying too much about those.
Newer motherboards used to have two IDE slots. Now many have one or none. SATA is taking over.
justlinux.com
Copyright Internet.com Inc. All Rights Reserved.