LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-08-2006, 05:29 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
Question udev rules all_partitions doesn't work


I am trying to create rules for my usb flash devices.

This is the rules file:

BUS=="scsi", SYSFS{size}=="2051809", SYMLINK+="mp3man%n", OPTIONS+="all_partitions"
BUS=="scsi", SYSFS{size}=="255704", SYMLINK+="univadis%n", OPTIONS+="all_partitions"

When I plug in my mp3player /dev/mp3man is created but there is no /dev/mp3man1

Similarly when I plug in my memory stick /dev/univadis is created but no /dev/univadis1

So I cannot mount it ( unless I go to sdc1 which defeats the object of the exercise.

I have also tried

BUS=="scsi", SYSFS{size}=="2051809", NAME(all_partitions)="mp3man%n"

with the same result.

What do I do to get mp3man1 created?
 
Old 06-10-2006, 06:46 PM   #2
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
Smile

And the answer is....

The rules were written incorrectly because I had followed the instruction on

http://reactivated.net/writing_udev_rules.html

and used

udevinfo -a -p /sys/block/sdc

But

http://webpages.charter.net/decibels...rimerMisc.html

gives the instruction as

udevinfo -a -p /sys/block/sdc/sdc1

Using rules generated from this the all_partitions command is not needed.
 
  


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
Creating rules for udev wnaLinux Slackware 5 01-03-2008 10:21 AM
UDEV Rules Location Toods Slackware 1 04-28-2006 03:23 AM
Udev rules working but... cferron Linux - Hardware 5 03-24-2006 03:46 AM
need help fixing my udev rules or ivman rules hedpe Linux - Hardware 2 03-18-2006 11:07 AM
Networking rules (udev) cassi0peias Linux - Networking 1 10-18-2005 11:13 AM


All times are GMT -5. The time now is 05:48 AM.

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