[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Full-disclosure] Re: Full-Disclosure Digest, Vol 7, Issue 25
- To: Peer Janssen <peer@xxxxxxxxxxxxxxx>
- Subject: Re: [Full-disclosure] Re: Full-Disclosure Digest, Vol 7, Issue 25
- From: fd@xxxxxxxxxx
- Date: Thu, 15 Sep 2005 12:45:11 -0700 (PDT)
On Wed, 14 Sep 2005, Peer Janssen wrote:
> I never found information about the following recurrent question of mine
> either:
> If a plug in an USB storage device, it has a /dev/sg<...> assigned to
> it. But which one? I need to know this mapping in order to mount it. I
> always deduce this device's name from the syslog, which works but is a
> bit of a PITA, so I always wondered if there is no other way to get this
> info, namely something like lsusb. lsusb, which would be the logical
> place to look for it, doesn't give away this info, at least not in an
> easily recognizable form (e.g. I never figured it out). sg_scan and such
> didn't do the trick for me either, although I might have missed
> something here.
Write your own lssd?
echo 'dmesg | grep sd[abcdefg]' > /bin/lssd ; chmod 755 /bin/lssg
--
Eric Wheeler
Vice President
National Security Concepts, Inc.
PO Box 3567
Tualatin, OR 97062
http://www.nsci.us/
Voice: (503) 293-7656
Fax: (503) 885-0770
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/