LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-13-2013, 06:06 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
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?
 
Old 01-15-2013, 02:57 AM   #2
Mike_M
Member
 
Registered: Mar 2011
Location: California
Distribution: Slackware
Posts: 116

Rep: Reputation: 50
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?
 
1 members found this post helpful.
Old 01-15-2013, 03:54 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,958
Blog Entries: 52

Rep: Reputation: Disabled
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.
 
Old 01-15-2013, 05:18 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
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.
 
Old 01-15-2013, 08:09 AM   #5
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 62

Rep: Reputation: 8
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.
 
Old 01-15-2013, 08:31 AM   #6
GazL
Senior Member
 
Registered: May 2008
Posts: 3,362

Rep: Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891
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.
 
Old 01-15-2013, 08:52 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,958
Blog Entries: 52

Rep: Reputation: Disabled
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.
 
Old 01-15-2013, 09:03 AM   #8
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 62

Rep: Reputation: 8
slack -current 32b for me
 
Old 01-15-2013, 09:35 AM   #9
GazL
Senior Member
 
Registered: May 2008
Posts: 3,362

Rep: Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891
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.

Last edited by GazL; 01-15-2013 at 09:36 AM.
 
Old 01-15-2013, 09:49 AM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,958
Blog Entries: 52

Rep: Reputation: Disabled
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.

Last edited by brianL; 01-15-2013 at 09:52 AM.
 
1 members found this post helpful.
Old 01-15-2013, 10:10 AM   #11
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 62

Rep: Reputation: 8
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
 
Old 01-15-2013, 10:18 AM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,958
Blog Entries: 52

Rep: Reputation: Disabled
Quote:
Originally Posted by dTd View Post
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?
 
Old 01-15-2013, 10:53 AM   #13
GazL
Senior Member
 
Registered: May 2008
Posts: 3,362

Rep: Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891Reputation: 891
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!

Last edited by GazL; 01-15-2013 at 11:19 AM. Reason: updated.
 
1 members found this post helpful.
Old 01-15-2013, 02:42 PM   #14
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 345

Rep: Reputation: 56
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...
 
Old 01-15-2013, 03:29 PM   #15
comet.berkeley
Member
 
Registered: Dec 2009
Location: California
Distribution: Slackware current
Posts: 148

Rep: Reputation: Disabled
Quote:
Originally Posted by Mike_M View Post
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
 
1 members found this post helpful.
  


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
audio cds won't mount/play but dvds in same drives play. Running SW12.2current. lestoil Slackware 6 05-28-2009 07:33 PM
I want to a software to play Play Station 2 DVDs in my laptop amerbarood Linux - Games 1 06-27-2008 03:49 PM
play dvds in slackware binary1011100 Linux - Newbie 3 07-20-2006 12:50 PM
how do i play dvds? h/w Linux - Hardware 7 10-20-2003 10:25 PM


All times are GMT -5. The time now is 04:27 AM.

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