LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 12-11-2005, 08:30 AM   #1
enragedchip
Member
 
Registered: Jan 2004
Location: UK
Distribution: Arch
Posts: 33

Rep: Reputation: 15
Wrong group with custom udev rule


I have the following udev rule for making my PSP appear at /dev/psp1

Code:
BUS="usb", KERNEL="sd*", SYSFS{product}="PSP Type A", NAME="%k", GROUP="storage", SYMLINK+="psp%n"
The symlinks do get created so that /dev/sdc and /dev/sdc1 point to /dev/psp and /dev/psp1 however the group of the devices is set to disk when it should follow the rule and be set to storage. What is wrong with the rule?
 
Old 12-11-2005, 02:46 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,766

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Use the udevinfo command to get information about the bus. Something like this: udevinfo -a -p /sys/block/psp1. In your case, use the locate command to find the correct path to psp1, and if it is indeed in /sys/block or some other directory.

The result will display information in blocks of text. You can use the values in one block in your custom rule. You may not mix values from different blocks in the same rule.

Find the block that begins with BUS="usb" KERNEL="sd". See what value it has for GROUP, and use that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom FDI Rule Needed - Any Help Much Appreciated rrrssssss Mandriva 0 12-03-2005 03:51 AM
udev, audio group, wtf king111 Linux - Newbie 7 11-28-2005 03:52 PM
Issues with adding a udev rule... Ateo Linux - General 1 03-04-2005 08:02 PM
MNF Custom RUle apoc63 Linux - Security 2 01-21-2005 02:34 PM
LVM Problem - vgimport - wrong number of physical volumes to import volume group Anything1 Linux - Software 0 09-06-2003 07:18 PM


All times are GMT -5. The time now is 03:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration