Announcement

Collapse
No announcement yet.

How to handle dynamic device files for cd and dvd?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to handle dynamic device files for cd and dvd?

    Most multimedia programs wants to access your cd or dvd by accessing normal device files like:
    /dev/dvd, /dev/dvdr, /dev/cd, /dev/cdr.

    But on my system these files do not exist. They are called
    /dev/dvd3, dev/dvdr3, /dev/cd3, /dev/cdr3

    So the program cannot access the cd or dvd.

    Ok, you can always create symlinks to solve this as a work-around, but they are removed on reboot.
    So how are you meant to solve this permanently or at least more elegantly?

    Do I have to creat a cron script to do this on every boot-up?

    Any tips welcomed!


    #2
    Re: How to handle dynamic device files for cd and dvd?

    Yes, sometimes the installation seems to use a dice when it is making the udev rules.
    There is a readme file: /etc/udev/rules.d/README.

    Earlier/more > Topic: Kaffeine "quirkiness" in karmic
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: How to handle dynamic device files for cd and dvd?

      Thanks a lot guys, you rock!!

      This worked:

      Code:
      # cd /etc/udev/rules.d
      # vi 70-persistent-cd.rules
      This is what kubuntu generates (and I won't touch):

      Code:
      # DVD_RW_DRU-190S (pci-0000:00:1f.5-scsi-0:0:0:0)
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="cdrom3", ENV{GENERATED}="1"
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="cdrw3", ENV{GENERATED}="1"
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="dvd3", ENV{GENERATED}="1"
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="dvdrw3", ENV{GENERATED}="1"
      This is what I added:

      Code:
      # GB: Adjusted for mulitmedia programs to worki: DVD_RW_DRU-190S (pci-0000:00:1f.5-scsi-0:0:0:0)
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
      ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.5-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"

      Comment


        #4
        Re: How to handle dynamic device files for cd and dvd? (SOLVED)

        Only changed subject to indicate that this case is solved.

        Comment

        Working...
        X