Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-06-2005, 09:02 PM   #1
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Rep: Reputation: 30
Question udev rules, finding the kernel name of a device?

First, a short background. I'm running Slackware 10.2 with 2.6.13 Kernel and udev. I had a need to change default permissions of /dev/nvram from 0660 to 0666. Slackware doesn't use a udev.permissions file so you have to write a new rule. In the existing udev.rules a rule does not exist for the nvram device.

The rule I came up with was:

KERNEL="nvram", NAME="%k", MODE="0666"

which worked great. Now for my question...

To set the KERNEL you need to know the kernels name for a device. In this case I was able to guess the kernel name but I don' t like guessing things. The question is:

How do you find out what the kernels name is for a device?

It's easy to find the name for a USB device. There are plenty of tutorials related to that. But how to find the kernels device name for something else?
Old 11-06-2005, 10:54 PM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
check out the /sys filesystem might be what you need
Old 11-06-2005, 11:42 PM   #3
Registered: Mar 2003
Location: USA
Distribution: Slackware-current
Posts: 155

Original Poster
Rep: Reputation: 30
Have any links to docs about the layout of /sys and what the different directories mean?


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 09:21 AM
Networking rules (udev) cassi0peias Linux - Networking 1 10-18-2005 10:13 AM
udev doesn't create scd* device nodes for scsi cdrom kejava Slackware 3 09-15-2005 02:04 PM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 05:08 AM
udev : framebuffer device (/dev/fb0) default permissions keefaz Slackware 6 07-04-2004 06:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:54 AM.

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