Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
ls -l /dev/dvd
ls -l /dev/cdrom
ls -l /dev/hdc
ls -l /dev/hdd
that is an L, just lowercase. teh first should point at your dvd device. if it is /dev/hdc, then you might not have permissions to it, and you need to run soemthin glike;
su
password
chmod 666 /dev/hdc
to get access to it. also, you need to look into the config of the player, make sure that it is looking for /dev/dvd and make sure it is present. if you dont see a /dev/dvd, then make one. figure out what your combo drive is on, it will be the same as the cdrom, and if it is the first cd device, then it will be hdc. so, if so run:
su
password
ln -s /dev/hdc /dev/dvd
and that will create a symlink to the drive. the player wont know the difference, then you need to edit the /etc/fstab (ok that is optional, but makes for mounting things easier.)
also, if you are trying to play a dvd you need libdvdcss, libdvdread, libdvdnav, and sometimes libdvdplay installed.
[ray@ssmahome ~]$ ls -l /dev/dvd
ls: /dev/dvd: No such file or directory
[ray@ssmahome ~]$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 3 Oct 28 20:38 /dev/cdrom -> hdc
[ray@ssmahome ~]$ ls -l /dev/hdc
brw------- 1 ray disk 22, 0 Oct 28 20:38 /dev/hdc
[ray@ssmahome ~]$ ls -l /dev/hdd
ls: /dev/hdd: No such file or directory
[ray@ssmahome ~]$
does not seem to want to see my CDRW/DVD combo drive as a combo drive, just wants to look at it as a CDRW.
also so far as those codec go, if that is what they are, they do not exsist so far as CentOS yum repositories are concerned... boy do i miss debian with those codec packs.
Code:
[ray@ssmahome ~]$ su -
Password:
[root@ssmahome ~]# yum install libdvdcss
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all 100% |=========================| 951 B 00:00
kde-redhat-stable 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdcss
Nothing to do
[root@ssmahome ~]# yum install libdvdread
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all 100% |=========================| 951 B 00:00
kde-redhat-stable 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdread
Nothing to do
[root@ssmahome ~]# yum install libdvdnav
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all 100% |=========================| 951 B 00:00
kde-redhat-stable 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdnav
Nothing to do
[root@ssmahome ~]# yum install libdvdplay
Repository update is listed more than once in the configuration
Repository base is listed more than once in the configuration
Repository addons is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Setting up Install Process
Setting up repositories
kde-redhat-stable-all 100% |=========================| 951 B 00:00
kde-redhat-stable 100% |=========================| 951 B 00:00
update 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libdvdplay
Nothing to do
As a test insert a DVD movie disc in the drive and type 'mplayer -dvd-device /dev/hdc dvd://'. If this works then you have to make a symbolic link that is named /dev/dvd and it is pointing to /dev/hdc. If mplayer gives you an error that it does not have read/write access, then you have to chmod /dev/hdc to 666.
added a repository to yum so i could install mplayer (i normaly use kaffeine), then ran your command for mplayer. got a read error so i chmod 666 /dev/hdc as root then ran the command again, still getting the following error:
Code:
[ray@ssmahome ~]$ mplayer -dvd-device /dev/hdc dvd://
MPlayer dev-CVS-051010-00:11-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Celeron D Northwood/Xeon Prestonia/Gallatin (Family: 15, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Playing dvd://.
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
Couldn't open DVD device: /dev/hdc
[file] No filename
Failed to open dvd://
Exiting... (End of file)
next step?
fyi, all of the help is greatly appreciated.
[edit to add] get the exact same error even as root.
>
> After you attempt to run mplayer, are there any
> additional
> entries in "/var/log/messages"?
loads of messages like this:
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session opened for user root by (uid=0)
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session closed for user root
Nov 9 00:01:01 ssmahome crond(pam_unix)[15831]:
session opened for user root by (uid=0)
>You should probably
> open
> another terminal logged in as root and run "tail -f
> /var/log/messages" and watch what is spit out when
> you run
> your mplayer command.
ail -f /var/log/messages
Nov 8 21:01:02 ssmahome crond(pam_unix)[15819]:
session opened for user root by (uid=0)
Nov 8 21:01:02 ssmahome crond(pam_unix)[15819]:
session closed for user root
Nov 8 22:01:01 ssmahome crond(pam_unix)[15823]:
session opened for user root by (uid=0)
Nov 8 22:01:01 ssmahome crond(pam_unix)[15823]:
session closed for user root
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session opened for user root by (uid=0)
Nov 8 23:01:01 ssmahome crond(pam_unix)[15827]:
session closed for user root
Nov 9 00:01:01 ssmahome crond(pam_unix)[15831]:
session opened for user root by (uid=0)
Nov 9 00:01:01 ssmahome crond(pam_unix)[15831]:
session closed for user root
Nov 9 00:10:43 ssmahome su(pam_unix)[15910]: session
opened for user root by ray(uid=500)
Nov 9 00:13:59 ssmahome su(pam_unix)[15974]: session
opened for user root by ray(uid=500)
Nov 9 00:14:26 ssmahome kernel: cdrom: open failed.
>
> It seems that MPlayer is trying to open /dev/hdc to
> read the
> DVD. Why it's not working is beyond me, although
> /var/log/messages might hold a clue. You clearly
> seem to
> have access to the device.
Did you place a DVD movie in your drive because the error:
Quote:
libdvdread: Could not open /dev/hdc with libdvdcss.
libdvdread: Can't open /dev/hdc for reading
Couldn't open DVD device: /dev/hdc
[file] No filename
Failed to open dvd://
Only relates to user stupidity that he or she did not insert a disc in the drive. Mplayer is a CLI not GUI, so it begins to play the media when it is executed.
Remove mplayer package file and install by source code. Package based distributions are not predictable as much as installing programs by source code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.