Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mal wieder udev-regeln
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Tue Dec 11, 2007 1:01 am    Post subject: mal wieder udev-regeln Reply with quote

guten abend.

habe hier verschiedene udev-regel-posts verfolgt, gelesen und probiert, aber irgendwie komm ich nicht drauf, warum meine 2 kleinen regeln nicht benutzt werden :(

habe udev-117

und es soll, sobald ich meinen usb-stick einstecke diesem einen neuen symlink verpassen und den link dann in einen vorbereiteten ordner legen. das ganze sieht so aus:

usbstick:
Code:
udevinfo --query=all --name=/dev/sda1
P: /block/sda/sda1
N: sda1
S: disk/by-id/usb-BUFFALO_USB_Flash_Disk_07741D944A31-0:0-part1
S: disk/by-path/pci-0000:00:02.2-usb-0:1:1.0-scsi-0:0:0:0-part1
S: disk/by-uuid/DB2C-801F
E: DEVTYPE=partition
E: ID_VENDOR=BUFFALO
E: ID_MODEL=USB_Flash_Disk
E: ID_REVISION=3.10
E: ID_SERIAL=BUFFALO_USB_Flash_Disk_07741D944A31-0:0
E: ID_SERIAL_SHORT=07741D944A31
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:02.2-usb-0:1:1.0-scsi-0:0:0:0
E: ID_FS_USAGE=filesystem
E: ID_FS_TYPE=vfat
E: ID_FS_VERSION=FAT16
E: ID_FS_UUID=DB2C-801F
E: ID_FS_UUID_ENC=DB2C-801F
E: ID_FS_LABEL=
E: ID_FS_LABEL_ENC=
E: ID_FS_LABEL_SAFE=


99-own.rules
Code:
KERNEL=="sd[a-z]1", ATTR{vendor}=="Buffalo", ATTR{serial_short}=="07741D944A31", SYMLINK="stick", GROUP="usb"

#KERNEL=="stick", PROGRAM="/bin/mount /dev/stick /mnt/stick && chmod u+rwx /mnt/stick"


die mount-option ist erstmal noch rausgelassen, da nichtmal der symlink angezeigt wird :(

in der hoffnung auf hilfe
yona
_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Tue Dec 11, 2007 1:53 am    Post subject: Reply with quote

Hi,

hast du möglicherweise die Groß-/Kleinschreibung bei "Buffalo" nicht beachtet?

Yonathan wrote:
...
Code:
...
E: ID_VENDOR=BUFFALO
...
Code:
... ATTR{vendor}=="Buffalo", ...


Grüße
Poly-C
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
SvenFischer
Veteran
Veteran


Joined: 05 Feb 2003
Posts: 1033
Location: Berlin

PostPosted: Tue Dec 11, 2007 7:06 am    Post subject: Reply with quote

mit udev bin ich noch nicht so vertraut, also wage ich mal eine Prognose:

da die Regeln der Reihenfolge nach abgearbeitet werden, werden die Regeln mit der niedrigsten Nummer zuerst gelesen. Versuche doch mal Deine Regeln in

01-own.rules

zu schreiben. Dann die Regeln neu einlesen mit

udevcontrol reload_rules (oder so)
Back to top
View user's profile Send private message
Yonathan
l33t
l33t


Joined: 05 Jan 2005
Posts: 662

PostPosted: Tue Dec 11, 2007 7:24 am    Post subject: Reply with quote

hiho

das mit der reihenfolge wurde vor wenigen tagen erst in einem anderen thread beharkt und festgestellt, dass frühe rules von späten überschrieben werden, wenn man nicht option="last_rule" oder sowas mit reingibt... da /dev/sdX erst in rule 50 angelegt wird, sollte meine regel am besten direkt hinten stehen und alles vorherige überschreiben können

das mit der groß und kleinschreibung teste ich mal
_________________
Athlon XP+ 2400 Thunderbird,
Abit NF7
1536MB DDR (266),
Radeon 9200 (256mb)
gentoo 2.6.19-r5
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum