[lug] Finding devices in /dev, gphoto2 permissions

Hugh Brown hugh at math.byu.edu
Wed Mar 23 10:26:03 MST 2005


I'd search through /var/log/messages for usb plug in events.  It will
usually tell you which /dev it matched on.  Typically, I think it ends up
looking like a storage device and will take the first /dev/sd? available
(/dev/sda if you don't have any scsi devices).

HTH,

Hugh

On Wed, 23 Mar 2005, 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
>
> bus:device
>
> or from lspci
>
> bus:slot:func
>
> how can I determine the special file that I would then use
> to mount the device?
>
> Another somewhat unrelated question, after a discussion a
> few weeks ago regarding webcams in which it was suggested
> that I just use a digital camera and gphoto2 to capture
> images, I bought a Canon A85.
>
> I can only get photos from it if I log in as root. I use
> both Debian and Slackware. Under Debian I was able to figure
> out that the group the camera belonged to was plugdev and
> then added myself to this group. Under slackware, I'm
> totally clueless. Also, from running
>
> gpoto2 --camera "Canon PowerShot A85 (normal mode)"
> --abilities
>
> I believe I should be able to capture images. But it appears
> that I don't have write permissions. Because I don't know
> what special file it uses in /dev, I can't check it. I did a
> quick google and I didn't see anyone else having this
> problem. Can anyone shed some light on this?
>
> Stephen Queen
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>
>
>



More information about the LUG mailing list