[lug] Finding devices in /dev, gphoto2 permissions

D. Stimits stimits at comcast.net
Wed Mar 23 23:30:08 MST 2005


Zan Lynx wrote:
> On Wed, 2005-03-23 at 23:02 -0700, D. Stimits wrote:
> 
>>Stephen Queen wrote:
>>
>>>Is there a simple way to determine which special file in
>>>/dev a device is associated with. For example, I know from
>>>using lsusb the device and bus number
> 
> 
> The Linux kernel 2.6 /sys directory solves this problem.  Every device
> has a "device" file in there somewhere that tells you what major:minor
> device numbers to look for.  Then a ls -l /dev should let you find the
> device node.

But...how does he use information from lspci to match it to the /sys/? 
For example, my lspci for a scsi controller, even if I could match it to 
/dev/sd, might not offer sufficient info to mount sda1 partition. There 
is probably some neat trick waiting to be discovered here :)

D. Stimits, stimits AT comcast DOT net



More information about the LUG mailing list