[Fwd: Re: CD/DVD automount in Fedora 12]
Andrew Junev
a-j at a-j.ru
Tue Apr 6 20:47:06 UTC 2010
Hello François,
Wednesday, April 7, 2010, 12:37:01 AM, you wrote:
>>> Immediately after boot, check for soft link:
>>>
>>> /dev/dvd -->> /dev/sr0
>>>
>>> (dvd, crrom, cdrw, dvdrw, whatever... at least one)
>>
>>
>> $ ls -l /dev/cdr*
>> lrwxrwxrwx 1 root root 3 2010-04-06 19:31 /dev/cdrom1 -> sr0
>> lrwxrwxrwx 1 root root 3 2010-04-06 19:31 /dev/cdrw1 -> sr0
>> $ ls -l /dev/dvd*
>> lrwxrwxrwx 1 root root 3 2010-04-06 19:31 /dev/dvd1 -> sr0
>> lrwxrwxrwx 1 root root 3 2010-04-06 19:31 /dev/dvdrw1 -> sr0
>> $
>>
>>> Then insert a disk and check again if the soft link i still there.
>>
>> $ ls -l /dev/dvd*
>> ls: cannot access /dev/dvd*: No such file or directory
>> $ ls -l /dev/cdr*
>> ls: cannot access /dev/cdr*: No such file or directory
>>
>>
>> Hugh, that's not right, is it?
> I think that it is a bug.... I asked this question some time ago and had
> no answer!
> After a lot of googleing I came accross a solution, but first: have you
> a file:
> /etc/udev/rules.d/70-persistent-cd.rules
> (Maybe, with another number).
> If not, create one, using the command:
> udevtest /sys/block/sr0
> Then, normally, you have this "persistent-cd-rules" file
> Reboot and see if you can automount your disks.
> (With this file, the links must be "persistent", ie. they are not erased
> when you insert a disk.)
> I posted this solution some times ago on this list, but someone answered
> that if this has been removed from f12, there were certainly a good
> reason why and that I could have many side effects if I added it now!
> I have absolutely no problem up to now and problem is solved for me.
> Hope it will be the same for you.
> Hope too that someone gives a good reason for suppressing this file in f12.
I do have this file already:
[root at frontend1 rules.d]# cat /etc/udev/rules.d/70-persistent-cd.rules
# This file was automatically generated by the /lib/udev/write_cd_rules
# program, probably run by the cd-aliases-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line
# and set the $GENERATED variable.
# DVD-RW_DVR-111 (pci-0000:03:00.1-scsi-0:0:0:0)
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:03:00.1-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"
# DVD-RW_DVR-111 (pci-0000:02:00.0-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:02:00.0-scsi-0:0:0:0", SYMLINK+="cdrom1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:02:00.0-scsi-0:0:0:0", SYMLINK+="cdrw1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:02:00.0-scsi-0:0:0:0", SYMLINK+="dvd1", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:02:00.0-scsi-0:0:0:0", SYMLINK+="dvdrw1", ENV{GENERATED}="1"
#
So it must be something else, or ... am I missing something?
--
Best regards,
Andrew
More information about the users
mailing list