On Sat, Dec 1, 2012 at 4:55 AM, Joshua Murphy wrote:
> On Fri, Nov 30, 2012 at 10:47 PM, Walter Dnes wrote:
>> On Fri, Nov 30, 2012 at 09:58:10AM +, Jorge Almeida wrote
>>> By the way, I don't suppose there is a mailing list to talk about these
>>> matters (mdev/ udev-alternative/ udev-fork r
On Sat, Dec 1, 2012 at 3:47 AM, Walter Dnes wrote:
> On Fri, Nov 30, 2012 at 09:58:10AM +, Jorge Almeida wrote
>> On Fri, Nov 30, 2012 at 3:09 AM, Walter Dnes wrote:
>>
>
>> I thought of keeping data-- (key,value) = (serial_number,
>> custom_name_of_device)-- in a cdb database. I think it is
On Fri, Nov 30, 2012 at 10:47 PM, Walter Dnes wrote:
> On Fri, Nov 30, 2012 at 09:58:10AM +, Jorge Almeida wrote
>> By the way, I don't suppose there is a mailing list to talk about these
>> matters (mdev/ udev-alternative/ udev-fork related)? This is really
>> distro-agnostic stuff...
>
> F
On Fri, Nov 30, 2012 at 09:58:10AM +, Jorge Almeida wrote
> On Fri, Nov 30, 2012 at 3:09 AM, Walter Dnes wrote:
>
> > 1) For a USB mass storage device (pen or external hard drive) with N
> > partitions, the hotplug handler will get N+1 events when inserting and
> > also when removing. E.g. i
Am Donnerstag, 29. November 2012, 17:57:46 schrieb Jorge Almeida:
> Anyone knows how to dig into /sys to find the serial number of a device
> (say, a USB pen)? I few days ago I found by trial and error something like
> $ cat
> /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:
On Fri, Nov 30, 2012 at 10:00 AM, Neil Bothwick wrote:
> On Thu, 29 Nov 2012 19:07:11 +, Jorge Almeida wrote:
>
>> This is indeed the device I meant, and the serial number is the
>> "E68911000519" substring. But this symlink exists because udev created
>> it. I need to somehow dig it out of /s
On Thu, 29 Nov 2012 19:07:11 +, Jorge Almeida wrote:
> This is indeed the device I meant, and the serial number is the
> "E68911000519" substring. But this symlink exists because udev created
> it. I need to somehow dig it out of /sys, not out of /dev. IOW, how did
> udev retrieved the informa
On Fri, Nov 30, 2012 at 3:09 AM, Walter Dnes wrote:
> On Fri, Nov 30, 2012 at 12:28:01AM +, Jorge Almeida wrote
>
>> When a pen is inserted, this is what is set:
>>
>> DEVNAME=sdd
>
> This is almost exactly what I remember from when I was
> writing/testing/debugging my automount scripts. Th
On Fri, Nov 30, 2012 at 12:28:01AM +, Jorge Almeida wrote
> When a pen is inserted, this is what is set:
>
> ACTION=add
> DEVPATH=/devices/pci:00/:00:04.1/usb1/1-4/1-4:1.0/host12/target12:0:0/12:0:0:0/block/sdd
> SUBSYSTEM=block
> MAJOR=8
> MINOR=48
> DEVNAME=sdd
> DEVTYPE=disk
> SEQN
If you are looking for the serial number of a usb device, I find them at:
/sys/bus/usb/devices/usb*/*/serial
NB that not all have them.
-JimC
--
James Cloos OpenPGP: 1024D/ED7DAEA6
On Thu, Nov 29, 2012 at 10:35 PM, Walter Dnes wrote:
> On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote
>
>
> I have a couple of scripts that automount USB devices under mdev. See
> https://wiki.gentoo.org/wiki/Mdev for the general setup, and
> https://wiki.gentoo.org/wiki/Mdev/Aut
On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote
> It is a matter of programming, not looking. I need a program that
> creates the symlink when the device is plugged in. Think mdev
> (more precisely, a complement to mdev that would take care of a few
> particular devices, to allow usi
> The values of ../by-uuid/ would probably be
> equally good, but I don't know how to find them any more than I know how to
> find the serials...
I use my own automounter scripts and udev with nice static mountpoints
from when udisks threw lots away for a while in favour of multiseat. A
recurring
On Thu, Nov 29, 2012 at 8:20 PM, Bruce Hill
wrote:
> On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote:
>>
>> It is a matter of programming, not looking. I need a program that creates the
>> symlink when the device is plugged in. Think mdev (more precisely, a
>> complement to mdev that
On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote:
>
> It is a matter of programming, not looking. I need a program that creates the
> symlink when the device is plugged in. Think mdev (more precisely, a
> complement to mdev that would take care of a few particular devices, to allow
>
On Thu, Nov 29, 2012 at 7:20 PM, Bruce Hill
wrote:
> On Thu, Nov 29, 2012 at 05:57:46PM +, Jorge Almeida wrote:
>> Anyone knows how to dig into /sys to find the serial number of a device (say,
>> a USB pen)? I few days ago I found by trial and error something like
>> $ cat
>> /sys/devices/pci
On Thu, Nov 29, 2012 at 05:57:46PM +, Jorge Almeida wrote:
> Anyone knows how to dig into /sys to find the serial number of a device (say,
> a USB pen)? I few days ago I found by trial and error something like
> $ cat
> /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/
On Thu, Nov 29, 2012 at 6:35 PM, Marco Bonfiglio
wrote:
>
>
> 2012/11/29 Jorge Almeida
>>
>> Anyone knows how to dig into /sys to find the serial number of a device
>> (say,
>> a USB pen)? I few days ago I found by trial and error something like
>> $ cat
>> /sys/devices/pci:00/:00:06.1/us
2012/11/29 Jorge Almeida
> Anyone knows how to dig into /sys to find the serial number of a device
> (say,
> a USB pen)? I few days ago I found by trial and error something like
> $ cat
> /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/13:0:0:0/block/sdc/../../../../../s
Anyone knows how to dig into /sys to find the serial number of a device (say,
a USB pen)? I few days ago I found by trial and error something like
$ cat
/sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/13:0:0:0/block/sdc/../../../../../serial
which gave me E68911000519
Now
20 matches
Mail list logo