"David W. Hodgins" <
dwho...@nomail.afraid.org> writes:
> On Wed, 21 Dec 2011 15:37:58 -0500, Haines Brown <
hai...@historicalmaterialism.info> wrote:
>
>> My question is, can I or should I set up my DVDRW drive with a UUID?
>
> No. You could setup fstab entries using uuid for filesystems stored
> on a data disc, but not for the drive itself.
Understood
> Depending on which distribution and version you have, there is likely
> a file similar in name to /etc/udev/rules.d/70-persistent-cd.rules
> that controls which device name gets assigned to the drive.
There are two stanzas there for my dvd drive, which have the lines,
among others:
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0",
SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:1:0",
SYMLINK+="dvd5", ENV{GENERATED}="1"
However, thre is no /dev/dvd.
$ ls -la /dev | grep dvd
lrwxrwxrwx 1 root root 3 Dec 22 09:49 dvd5 -> sr0
lrwxrwxrwx 1 root root 3 Dec 22 09:49 dvdrw5 -> sr0
Perhaps removing lines associated with my dvd drive in
700persistent-cd.rules and rebooting will reconstruct a /dev/dvd, but if
if that file already has a dvd line, why isn't there a /dev/dvd?
But meanwhile, to play a dvd I assume I have to do:
$ mplayer dvd://1 /dev/dvd5
The gui window merely flashes and this is from the trace of the calls:
execve("/usr/bin/mplayer", ["mplayer", "dvd://1", "/dev/dvd5"], [/* 27 vars */]) = 0
brk(0) = 0x9580000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
...
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0
write(1, "\nPlaying /dev/dvd5.\n", 20) = 20
open("/dev/dvd5.ifo", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/dvd5.idx", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/haines/.mplayer/sub/dvd5.ifo", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/home/haines/.mplayer/sub/dvd5.idx", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/dev/dvd5", O_RDONLY|O_LARGEFILE) = 3
_llseek(3, 0, [4565041152], SEEK_END) = 0
...
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 2048
read(3, 0x95c73d8, 2048) = -1 EIO (Input/output error)
read(3, 0x95c73d8, 2048) = -1 EIO (Input/output error)
munmap(0xb4baf000, 2101248) = 0
write(1, "libavformat file format detected"..., 34) = 34
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2048) = 2048
...
read(4, "\1\1\200\0\0\0\0\0\2\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096) = 32
read(4, 0x95effd0, 4096) = -1 EAGAIN (Resource temporarily unavailable)
close(4) = 0
munmap(0xb404f000, 633604) = 0
munmap(0xb40ea000, 790528) = 0
munmap(0xb41ab000, 633604) = 0
munmap(0xb4246000, 790528) = 0
write(1, "\nExiting... (End of file)\n", 26) = 26
munmap(0xb4d6f000, 266240) = 0
exit_group(0) = ?
I don't know what to make of all this, but it seems that mplayer is
accessing the dvd disk in the drive and extracts some information, but
for some reason can't display it.
Haines Brown