[lug] Finding devices in /dev, gphoto2 permissions

Zan Lynx zlynx at acm.org
Wed Mar 23 23:34:43 MST 2005


On Wed, 2005-03-23 at 23:30 -0700, D. Stimits wrote:
> 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 :)

If you're running a 2.6 distro with DBus and HAL, try lshal
-- 
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20050323/56f373d4/attachment.pgp>


More information about the LUG mailing list