View previous topic :: View next topic |
Author |
Message |
onesandzeros Tux's lil' helper
Joined: 30 Sep 2002 Posts: 108
|
Posted: Mon Dec 04, 2006 1:09 pm Post subject: udev 087 to 103 syntax changes, etc... |
|
|
Hello all,
I was just wondering about changes in udev, particularly stuff in /etc/udev/rules.d/, between 087 and 103. In that directory, I've got the basic udev files, which must be ok (my system's internal components all work fine, thankfully), but I've also got 10-udev.rules. In that, I've got my own 3 rules for my removable storage. This *used* to work. Now, it doesn't. I can manually mount these devices, after figuring out which /dev entry they've been connected to, but I can't make udev observe these rules. What am I missing? I looked around for a while and got the idea that SYSFS changed to ATTRS, which is what you see below.
Code: | #SD card
ATTRS{serial}=="20020111003935640", NAME=="sda1"
#256M usb stick
ATTRS{product}=="USB Flash Disk", NAME=="sdb1"
#ipod
ATTRS{serial}=="000A270010099AF2", NAME=="sdc2" |
Any hints? Also, what's the preferred method to make udev re-read rules? Is udevstart ok?
Thanks,
Chris |
|
Back to top |
|
|
abager n00b
Joined: 08 Sep 2004 Posts: 35 Location: Denmark, Aalborg
|
Posted: Mon Dec 04, 2006 2:26 pm Post subject: |
|
|
Try to change NAME=="" to NAME="" |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Mon Dec 04, 2006 2:38 pm Post subject: |
|
|
Yes udevstart is sufficient and SYSFS still is what you want. |
|
Back to top |
|
|
onesandzeros Tux's lil' helper
Joined: 30 Sep 2002 Posts: 108
|
Posted: Mon Dec 04, 2006 3:08 pm Post subject: |
|
|
Looking good, thanks guys. |
|
Back to top |
|
|
Robert S Guru
Joined: 15 Aug 2004 Posts: 460 Location: Canberra Australia
|
Posted: Sat Dec 09, 2006 11:44 pm Post subject: |
|
|
I see that 10-udev.rules is no longer owned by a package. Should I remove it? |
|
Back to top |
|
|
richfish Apprentice
Joined: 03 Mar 2006 Posts: 202 Location: Phoenix, AZ
|
Posted: Sat Dec 09, 2006 11:52 pm Post subject: |
|
|
Robert S wrote: | I see that 10-udev.rules is no longer owned by a package. Should I remove it? |
No, it is still where you want to put your own udev rules. Of course, if you have no rules (empty file), it is safe to delete. |
|
Back to top |
|
|
Robert S Guru
Joined: 15 Aug 2004 Posts: 460 Location: Canberra Australia
|
Posted: Sun Dec 10, 2006 12:00 am Post subject: |
|
|
Aha - I see now. I wrote that file. The syntax has changed. I'll try to work out how to fix it. |
|
Back to top |
|
|
|