PDA

View Full Version : Linking DVD Drive....


robesonm
13th June 2006, 12:08 PM
Hi...

Only recently have I been able to get libdvdcss 1.2.9 and I then had to link my dvd drive in the /dev directory (ln -n hdc dvd).

However, everytime I reboot, the link disappears! I love my DVDs so this has been recently getting on my nerves...

I have been wondering if it has anything to do with fstab so I may have a go at that but I still am sceptic...

I would be grateful for any help....

Thanks


Robo

daneel971
13th June 2006, 12:54 PM
udev dinamically creates the devices at boot time. you need a udev rule to make it create a symlink for your dvd drive.
Create a 20-custom.rules file with a text editor, and add a line

KERNEL=="hdc",SYMLINK=="dvd cdrom",MODE="0666",OPTIONS="LAST_RULE"

Place the file in /etc/udev.d/rules

As root, run udevstart: you will find your simlynk in the /dev directory and from now on it will always be there.
I'm not exactly sure about the syntax of the rule file, so check the existing files, the manual page and the doc of udev. Also, if your drive is not "hdc", remember to use the proper device.

robesonm
14th June 2006, 09:27 AM

Thanks a lot.... I'll have a bash at that tonight.....