LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-13-2010, 04:21 PM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
udev.rules


I'm trying to configure custom udev.rules for my thumbdrive and iPod but udev doesn't detect my settings. I'm running Slackware 13.0 with a custom 10-local.rules file. udevadmin monitor --enviornment reports...

Code:
UDEV  [1266131848.593241] change   /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/host4/target4:0:0/4:0:0:0/block/sdb (block)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/host4/target4:0:0/4:0:0:0/block/sdb
SUBSYSTEM=block
DEVNAME=/dev/sdb
DEVTYPE=disk
SEQNUM=1355
ID_VENDOR=SanDisk
ID_VENDOR_ENC=SanDisk\x20
ID_VENDOR_ID=0781
ID_MODEL=Cruzer
ID_MODEL_ENC=Cruzer\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
ID_MODEL_ID=5406
ID_REVISION=7.01
ID_SERIAL=SanDisk_Cruzer_0774300C8D02D129-0:0
ID_SERIAL_SHORT=0774300C8D02D129
ID_TYPE=disk
ID_INSTANCE=0:0
ID_BUS=usb
ID_USB_INTERFACES=:080650:
ID_USB_INTERFACE_NUM=00
ID_USB_DRIVER=usb-storage
ID_PATH=pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0
MAJOR=8
MINOR=16
DEVLINKS=/dev/block/8:16 /dev/disk/by-id/usb-SanDisk_Cruzer_0774300C8D02D129-0:0 /dev/disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0
my 10-local.rules is...

Code:
# Sandisk Thumbdrive rules
KERNEL=="sd?[1-5]", SUBSYSTEM=="block", ATTRS{idVendor}=="SanDisk", NAME="%k", SYMLINK+="thumb", GROUP="users"
My thumbdrive doesn't get detected with /etc/rc.d/rc.udev restart remove and reinstall thumbdrive
 
Old 02-13-2010, 05:05 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Original Poster
Rep: Reputation: 33
Solved. The correct values from udevadm info -a -p `udevadm info -q path -n /dev/sda` are...

Code:
# Sandisk Thumbdrive rules
KERNEL=="sd?[1-5]", SUBSYSTEMS=="scsi", ATTRS{vendor}=="SanDisk", NAME="%k", SYMLINK+="thumb", GROUP="users"

Last edited by Linux~Powered; 02-13-2010 at 05:13 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit "/etc/udev/rules.d/40-basic-permissions.rules" file cygan Linux - Newbie 11 03-09-2009 05:22 AM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM
Creating rules for udev wnaLinux Slackware 5 01-03-2008 09:21 AM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 03:43 AM
need help fixing my udev rules or ivman rules hedpe Linux - Hardware 2 03-18-2006 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration