LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cannot play DVDs in Slackware 14 (https://www.linuxquestions.org/questions/slackware-14/cannot-play-dvds-in-slackware-14-a-4175445454/)

arubin 01-13-2013 06:06 PM

Cannot play DVDs in Slackware 14
 
I find that I cannot play DVDs with Slackware 14.

I have found a solution of sorts here http://www.linuxquestions.org/questi...6/#post4400562

/dev/dvd/ is missing and

Quote:

cd /dev
ln -s sr0 dvd
Solves the problem at least temporarily. What is going on here? Should I be deleting etc/udev/rules.d/70-persistent-cd.rules
as suggested there?

Mike_M 01-15-2013 02:57 AM

Yes, I would try deleting /etc/udev/rules.d/70-persistent-cd.rules, rebooting, and seeing what happens. If it still doesn't work then we can dig deeper to find out what the problem may be. Does that file contain anything at the moment?

brianL 01-15-2013 03:54 AM

Strange. I've got a /dev/dvd, not created by me, which is a link to /dev/sr0. I've no problems playing DVDs with Eric's VLC.

arubin 01-15-2013 05:18 AM

I will look at 70-persistent-cd.rules when I get to my PC tonight.

As far as I know I have a rather standard setup. Clean install of Slackware 64 with multilib. I do use the 3.4.11 kernel because this has the kernel-efi stub and I am booting off EFI ( most reliable way I found of allowing dual booting with Win7 on my machine). Slackware is on an SSD except for /var and /home which are on a standard hard drive and /tmp which is in RAM.

I did discover that smplayer allows one to play DVDs on /dev/sr0 which would be another way round.

dTd 01-15-2013 08:09 AM

Funny, I deleted my /etc/udev/rules.d/70-persistent-cd.rules for giggles, rebooted, it did not generate a new one. I too have a symlink for /dev/cdrom>/dev/sr0 but no /dev/dvd>/dev/sr0 . Is udev not discovering the cdrom, I assume it did since there was a file there originally. Oh, and after deleting the rules, the symlink for cdrom is still there.

GazL 01-15-2013 08:31 AM

Interesting, I've lost all my /dev/dvd* symlinks too (not that I'd noticed as I tend to just use /dev/sr0 directly). Wonder if it is because I'm using a newer kernel.

brianL 01-15-2013 08:52 AM

Here's what I've got:
Code:

bash-4.2$ ls -l /dev | grep dvd*
lrwxrwxrwx 1 root root            3 Jan 15 09:34 dvd -> sr0
lrwxrwxrwx 1 root root            3 Jan 15 09:34 dvd0 -> sr0
lrwxrwxrwx 1 root root            3 Jan 15 09:34 dvdrw -> sr0
lrwxrwxrwx 1 root root            3 Jan 15 09:34 dvdrw0 -> sr0
lrwxrwxrwx 1 root root            3 Jan 15 09:34 dvdwriter -> sr0
lrwxrwxrwx 1 root root            3 Jan 15 09:34 dvdwriter0 -> sr0

That's on Slack64 14.0, default generic kernel.

dTd 01-15-2013 09:03 AM

slack -current 32b for me

GazL 01-15-2013 09:35 AM

This is what udev tells me about /dev/sr0
Code:

root@ws1:~# udevadm info --query all --name=/dev/sr0
P: /devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0
N: sr0
L: -100
S: cdrom
S: disk/by-id/ata-HL-DT-ST_DVDRAM_GH22NS40_CBA5B11213C8
S: disk/by-id/wwn-0x5001480000000000
E: DEVLINKS=/dev/cdrom /dev/disk/by-id/ata-HL-DT-ST_DVDRAM_GH22NS40_CBA5B11213C8 /dev/disk/by-id/wwn-0x5001480000000000
E: DEVNAME=/dev/sr0
E: DEVPATH=/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0
E: DEVTYPE=disk
E: ID_ATA=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=0
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_BUS=ata
E: ID_CDROM=1
E: ID_CDROM_CD=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_PLUS_R=1
E: ID_CDROM_DVD_PLUS_RW=1
E: ID_CDROM_DVD_PLUS_R_DL=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RAM=1
E: ID_CDROM_DVD_RW=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: ID_MODEL=HL-DT-ST_DVDRAM_GH22NS40
E: ID_MODEL_ENC=HL-DT-ST\x20DVDRAM\x20GH22NS40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_REVISION=NL01
E: ID_SERIAL=HL-DT-ST_DVDRAM_GH22NS40_CBA5B11213C8
E: ID_SERIAL_SHORT=CBA5B11213C8
E: ID_TYPE=cd
E: ID_WWN=0x5001480000000000
E: ID_WWN_WITH_EXTENSION=0x5001480000000000
E: MAJOR=11
E: MINOR=0
E: SUBSYSTEM=block
E: UDEV_LOG=3
E: UDISKS_PRESENTATION_NOPOLICY=0
E: USEC_INITIALIZED=6922645

P.S. Slack64-14.0 with custom 3.7.2 kernel.

brianL 01-15-2013 09:49 AM

From mine:
Code:

root@slackdesk:~# udevadm info --query all --name=/dev/sr0
P: /devices/pci0000:00/0000:00:08.0/host1/target1:0:0/1:0:0:0/block/sr0
N: sr0
L: -100
S: cdr
S: cdr0
S: cdrom
S: cdrom0
S: cdrw
S: cdrw0
S: cdwriter
S: cdwriter0
S: disk/by-id/ata-Optiarc_DVD_RW_AD-5280S
S: disk/by-path/pci-0000:00:08.0-scsi-1:0:0:0
S: dvd
S: dvd0
S: dvdrw
S: dvdrw0
S: dvdwriter
S: dvdwriter0
S: writer                                                                                                                                                   
E: DEVLINKS=/dev/cdr /dev/cdr0 /dev/cdrom /dev/cdrom0 /dev/cdrw /dev/cdrw0 /dev/cdwriter /dev/cdwriter0 /dev/disk/by-id/ata-Optiarc_DVD_RW_AD-5280S /dev/disk/by-path/pci-0000:00:08.0-scsi-1:0:0:0 /dev/dvd /dev/dvd0 /dev/dvdrw /dev/dvdrw0 /dev/dvdwriter /dev/dvdwriter0 /dev/writer
E: DEVNAME=/dev/sr0
E: DEVPATH=/devices/pci0000:00/0000:00:08.0/host1/target1:0:0/1:0:0:0/block/sr0
E: DEVTYPE=disk
E: GENERATED=1
E: ID_ATA=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=1
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_BUS=ata
E: ID_CDROM=1
E: ID_CDROM_CD=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_PLUS_R=1
E: ID_CDROM_DVD_PLUS_RW=1
E: ID_CDROM_DVD_PLUS_R_DL=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RW=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: ID_MODEL=Optiarc_DVD_RW_AD-5280S
E: ID_MODEL_ENC=Optiarc\x20DVD\x20RW\x20AD-5280S\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_PATH=pci-0000:00:08.0-scsi-1:0:0:0
E: ID_PATH_TAG=pci-0000_00_08_0-scsi-1_0_0_0
E: ID_REVISION=1.01
E: ID_SERIAL=Optiarc_DVD_RW_AD-5280S
E: ID_TYPE=cd
E: MAJOR=11
E: MINOR=0
E: SUBSYSTEM=block
E: UDEV_LOG=3
E: UDISKS_PRESENTATION_NOPOLICY=0
E: USEC_INITIALIZED=5209991

A lot of difference in the DEVLINKS entry.

dTd 01-15-2013 10:10 AM

Mine:

Code:

[root@dtd:dan]# udevadm info --query all --name=/dev/sr0                                                                           
P: /devices/pci0000:00/0000:00:05.0/ata2/host1/target1:0:0/1:0:0:0/block/sr0
N: sr0
L: -100
S: cdrom
S: disk/by-id/ata-ATAPI_iHAS424_B_3524253_248046501241
S: disk/by-label/NWN2MOTB
E: DEVLINKS=/dev/cdrom /dev/disk/by-id/ata-ATAPI_iHAS424_B_3524253_248046501241 /dev/disk/by-label/NWN2MOTB
E: DEVNAME=/dev/sr0
E: DEVPATH=/devices/pci0000:00/0000:00:05.0/ata2/host1/target1:0:0/1:0:0:0/block/sr0
E: DEVTYPE=disk
E: ID_ATA=1
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_BUS=ata
E: ID_CDROM=1
E: ID_CDROM_CD=1
E: ID_CDROM_CD_R=1
E: ID_CDROM_CD_RW=1
E: ID_CDROM_DVD=1
E: ID_CDROM_DVD_PLUS_R=1
E: ID_CDROM_DVD_PLUS_RW=1
E: ID_CDROM_DVD_PLUS_R_DL=1
E: ID_CDROM_DVD_R=1
E: ID_CDROM_DVD_RAM=1
E: ID_CDROM_DVD_RW=1
E: ID_CDROM_MEDIA=1
E: ID_CDROM_MEDIA_DVD=1
E: ID_CDROM_MEDIA_SESSION_COUNT=1
E: ID_CDROM_MEDIA_STATE=complete
E: ID_CDROM_MEDIA_TRACK_COUNT=1
E: ID_CDROM_MEDIA_TRACK_COUNT_DATA=1
E: ID_CDROM_MRW=1
E: ID_CDROM_MRW_W=1
E: ID_FS_LABEL=NWN2MOTB
E: ID_FS_LABEL_ENC=NWN2MOTB
E: ID_FS_TYPE=iso9660
E: ID_FS_USAGE=filesystem
E: ID_FS_VERSION=Joliet Extension
E: ID_MODEL=ATAPI_iHAS424_B
E: ID_MODEL_ENC=ATAPI\x20\x20\x20iHAS424\x20\x20\x20B\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_REVISION=GL15
E: ID_SERIAL=ATAPI_iHAS424_B_3524253_248046501241
E: ID_SERIAL_SHORT=3524253_248046501241
E: ID_TYPE=cd
E: MAJOR=11
E: MINOR=0
E: SUBSYSTEM=block
E: UDEV_LOG=3
E: UDISKS_PRESENTATION_NOPOLICY=0
E: USEC_INITIALIZED=8874922


brianL 01-15-2013 10:18 AM

Quote:

Originally Posted by dTd (Post 4870645)
Mine:

Code:

E: DEVLINKS=/dev/cdrom /dev/disk/by-id/ata-ATAPI_iHAS424_B_3524253_248046501241 /dev/disk/by-label/NWN2MOTB

Mmm, you haven't got any /dev/dvd entries. Which kernel are you running?

GazL 01-15-2013 10:53 AM

For some reason mine isn't being assigned a /dev/disk/by-path entry and that looks to be breaking the call to write_cd_rules in "75-cd-aliases-generator.rules"

Interestingly, neither is my primary sata harddisk sda so this issue might be wider than just dvd devices.


The missing symlink seems to be a result of ID_PATH not being set, which looks like it comes from 60-persistent-storage.rules

I can't be arsed to track this any further, I'll just ignore the symlinks and continue to use the real device name.

UDEV! What a bag-o-shite!

Martinus2u 01-15-2013 02:42 PM

me had also lost all /dev/dvd and /dev/cdrom links on all machines in the household. rather than doing a PhD in Udev I decided to change the the device name to /dev/sr0 in all relevant applications...

aaazen 01-15-2013 03:29 PM

Quote:

Originally Posted by Mike_M (Post 4870349)
Yes, I would try deleting /etc/udev/rules.d/70-persistent-cd.rules, rebooting, and seeing what happens. If it still doesn't work then we can dig deeper to find out what the problem may be. Does that file contain anything at the moment?

I am running current, linux 3.7.1-huge and have the same problem with the missing /dev/dvd symbolic link.

As a test I erased the /etc/udev/rules.d/70-persistent-cd.rules and tried several kernels.

3.2.29-huge and the 70-persistent-cd.rules is missing and the /dev/dvd still missing
3.2.35-huge and the 70-persistent-cd.rules is missing and the /dev/dvd still missing
3.7.1-huge and the 70-persistent-cd.rules is missing and the /dev/dvd still missing

I copied over a version of the 70-persistent-cd.rules from a
version of slackware 14.0 stable on the same box and got the following results:

3.2.29-huge and the /dev/dvd is there!
3.2.35-huge and the /dev/dvd is there!
3.7.1-huge and the /dev/dvd is missing...

So there are actually two problems.
1) If the 70-persistent-cd.rules file is gone it will not be re-created.
2) Even if there is a 70-persistent-cd.rules file, it will not create
a /dev/dvd link on a 3.7.1 kernel

dTd 01-15-2013 03:42 PM

Quote:

Originally Posted by brianL (Post 4870647)
Mmm, you haven't got any /dev/dvd entries. Which kernel are you running?


3.7.1-smp from -current

arubin 01-16-2013 02:29 PM

I also have /dev/dvd with the 3.3.29 kernel but not with 3.4.18

dTd 01-18-2013 06:28 AM

Thank you Pat, this mornings update to udev in -current worked a charm :)

GazL 01-18-2013 08:58 AM

Confirmed, udev update is also working here. Thanks Pat.

dimm0k 01-18-2013 10:54 AM

I ran into this issue with kernel 3.6.7 as well... http://www.linuxquestions.org/questi...7/#post4836191

aaazen 01-18-2013 06:18 PM

Quote:

Originally Posted by dTd (Post 4872816)
Thank you Pat, this mornings update to udev in -current worked a charm :)

Works for me too.

I erased the old /etc/udev/rules.d/70-persistent-cd.rules and it was recreated after rebooting.

arubin 01-20-2013 07:30 AM

And with kernel 3.4.18

Should it be ok to update udev if I am not running current?

arubin 01-21-2013 01:08 PM

Well it seems Ok after upgrading so I will mark this as solved.


All times are GMT -5. The time now is 01:24 PM.