LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-11-2008, 06:02 AM   #1
jazzor
Member
 
Registered: Apr 2007
Posts: 41

Rep: Reputation: 16
/dev/dvd symlinks disappear after inserting a disk


I am using -current and I have noticed that ever since udev got updated to 130, my /dev/dvd and /dev/cdrom symlinks disappear after inserting a disk.

I dont know if it is my setup or something, and although not many applications actually use these interfaces anymore, mplayer does use it (this should really be a mplayer problem).

After a reboot, all the symlinks are there. However, upon inserting a disk (it will automount through hal), the symlinks all disappear. Udev emits a "changed" event when this occurs.

This happens also to normal cdrom drives. I have two drives: dvdrw and a cdrw (kept after upgrading), both on pata.

Would anyone care to offer any insights into how I can resolve this issue?
 
Old 11-11-2008, 07:52 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
have you merged the new rc.udev.new file?
 
Old 11-11-2008, 08:10 AM   #3
jazzor
Member
 
Registered: Apr 2007
Posts: 41

Original Poster
Rep: Reputation: 16
Thanks for you help. In the end I answered my own question. It turns, udev write new rule files for dev and cdrom devices in /etc/udev/rules.d/70-persistent-cd.rules. But because I use a live environment, these files dont exist the next reboot. Under these circumstances, udev wont see these new rules and so any udev event relating to dvd or cdrom drive gets run again and the symlinks dont get recreated.

Thus the solution is to modify line 59 of rc.udev to add " /sbin/udevadm control --reload-rules". It looks like this line should be there anyway because the lines before this add some new tmp-rules to the rules directory. These new rules will not be seen by udev until reload-rules is called on them either.

I could be wrong, but it certainly does solve my problem.
 
  


Reply



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
How do I disable auto start of totem after inserting a dvd in dvd rom awmian Fedora 8 09-07-2008 09:24 AM
How do I disable auto start of totem after inserting a dvd in dvd rom awmian Linux - Software 2 08-25-2008 12:23 AM
How do /dev/cdrom symlinks work Gruik Linux - Hardware 2 08-14-2008 05:14 PM
/dev/cdrom1,/dev/cdrw1 symlinks made at each boot by udev which i dont want deepclutch Linux - Software 2 01-04-2007 07:39 AM
/dev symlinks disappear on reboot, kernel 2.6.7 TheRepublican Linux - Hardware 6 07-01-2004 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration