You are not logged in.

#1 2006-05-26 17:10:34

busbarn
Member
From: Denver, CO US
Registered: 2004-03-06
Posts: 16

udev won't populate /dev [fixed ?]

I'm trying to write a udev rule so that my usb drive can have a symlink.  Here is my rule inside the file /etc/udev/rules.d/local.rules:

ACTION=="add", 
     bus=="usb", 
     SYSFS{prduct}=="Mini Drive", 
     KERNEL=="sd*1", 
     NAME="%k", 
     SYMLINK="mdrive"

I then restart udev by entering the /etc/start_udev command.  I unplug my usb drive and plug it in agani.  There is not device in /dev that shows mdrive.  I have my fstab properly updated.  dmesg shows that the kernel recognizes the drive, and assigns it to sda1.  I have tried my rule with scsi instead of usb, I've included the mode option in my rule, and still no luck.

Any input to get this working would be great.

Offline

#2 2006-05-26 20:50:34

busbarn
Member
From: Denver, CO US
Registered: 2004-03-06
Posts: 16

Re: udev won't populate /dev [fixed ?]

I got rid of the ACTION option and instead of using the product name, I used the serial number.  Now it works like a charm!

Offline

#3 2006-05-26 21:21:45

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: udev won't populate /dev [fixed ?]

The rule you posted had

SYSFS{prduct}

It should be

SYSFS{product}

Offline

Board footer

Powered by FluxBB