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

Re: Changes In udev?



On Sat, 19 May 2012 13:12:49 -0400, Thomas H. George wrote:

> On Sat, May 19, 2012 at 03:35:29PM +0000, Camaleón wrote:

(...)

>> > /dev/sca1	/media/cdrom1	udf,iso9660	user,noauto	0	0
>> > 
>> > so my dvdrw drives were not found.
>> 
>> Are you running squeeze, wheehy, sid?
> 
> Wheezy

Ah... I thought it was squeeze.

>> How many optical devices do you have, two (CD → sr1 and DVD → sr0)? You
>> can run "dmesg | grep sr" and send the output.
>> 
>> (...)
> 
> [    1.802349] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray 
> [    1.802964] sr 5:0:0:0: Attached scsi CD-ROM sr0 
> [    2.936691] sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray 
> [    2.936900] sr 6:0:0:0: Attached scsi CD-ROM sr1
> 
> The dvdrw is a sata drive and the cdrw is a usb drive

Okay.

>> You can try with:
>> 
>> /dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0 
>> /dev/dvd /media/dvd0 udf,iso9660 user,noauto 0 0
>> 
>> 
> The problem is that udev has chosen to link cdrom4 to sr1 and to link
> dvdrw6 to sr0 so there are no /dev/cdrom /dev/dvd entries.

That's editable.

>> Note that "/dev/cdrom" and "/dev/dvd" are the names udev gives to your
>> devices based on the content of "/etc/udev/rules.d/70-persistent-
>> cdrom.rules" file.
> 
> Now that you direct me to the content of the
> /etc/udev/rules.d/70-persistent-cdrom.rules file (attached below) it is
> clear why the assignments cdrom4 and dvdrw6 were made but where did all
> the extra entries in this file come from?  Can I just delete them?  Will
> they be regenrated by future updates?

As the same file says at the top, yes, you can edit to fit your naming needs 
(or even try to delete it to see if it is auto re-generated after booting with 
the right device names), but before making any modification or deletion, back 
it up first :-)

> # 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.

(...)

Greetings,

-- 
Camaleón


Reply to: