[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: My CD and DVD are messed up

On Sat, 02 Jul 2011 16:06:23 +0000, Camaleón wrote:

> just read Debian udev the docs to follow the instructions.

Hi Camaleón, 

Thanks for your reply. However, I was having a hard time trying to find 
what you meant by "Debian udev the docs". All that I found are bit and 
pieces here and there. Would you be so kind to give me a list to read 

> I would try:
> # DVD-RW_DVR-110D (pci-0000:00:06.0-scsi-0:0:1:0) #SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:1:0",
> SYMLINK+="cdrom", ENV{GENERATED}="1" #SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:1:0",
> SYMLINK+="cdrw", ENV{GENERATED}="1" SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:1:0",
> SYMLINK+="dvd", ENV{GENERATED}="1" #SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:1:0",
> SYMLINK+="dvdrw", ENV{GENERATED}="1"
> # CD-RW_CRX195E1 (pci-0000:00:06.0-scsi-0:0:0:0) #SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0",
> SYMLINK+="cdrom1", ENV{GENERATED}="1" #SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0",
> SYMLINK+="cdrw1", ENV{GENERATED}="1" SUBSYSTEM=="block",
> ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:06.0-scsi-0:0:0:0",
> SYMLINK+="cdrom", ENV{GENERATED}="1"
> # Virtual_CD_070A (pci-0000:00:02.1-usb-0:8:1.0-scsi-0:0:0:1)
> SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
> ENV{ID_SERIAL}=="WD_Virtual_CD_070A_575837304139393534343636-0:1",
> SYMLINK+="cdrom2", ENV{GENERATED}="1"
> That is:
> - From the DVD entries, disable (#) all but the one that makes "dvd"
> node.
> - From the CD-R entries, disable (#) all and add a new one that makes
> "cdrom" node.

That looks substantially different from the examples given from

 SUBSYSTEM=="block", KERNEL=="hdc", SYMLINK+="dvd", GROUP="cdrom"
 SUBSYSTEM=="block", KERNEL=="hdd", SYMLINK+="dvdrw", GROUP="cdrom"

I guess the above example is already obsolete, or it is still OK?

>> Where should I put those rules? I believe that /etc/udev/rules.d/70-
>> persistent-cd.rules is automatically generated by the 75-cd-aliases-
>> generator.rules. I hope that I can put those rules in a standalone file
>> which can overwrite settings in
>> /etc/udev/rules.d/70-persistent-cd.rules.
> You can edit the same file. If after that it works as you want, you can
> then put them in another file, 

Ok, so say after it works as I want, I put them in another file, 
but how would I overwrite the settings in /etc/udev/rules.d/70-persistent-
cd.rules, which was automatically generated by the 75-cd-aliases-
generator.rules? I.e., wouldn't those line that I disabled (by #) would 
come up again once the /etc/udev/rules.d/70-persistent-cd.rules is 


Tong (remove underscore(s) to reply)

Reply to: