Re: : Which remvable drive is connected to which USB port

2007-10-16 Thread Douglas A. Tutty
On Tue, Oct 16, 2007 at 12:32:21PM +0930, Edwards, David (JTS) wrote: > I was hoping to use physical lables on the USB disks > with labelled USB cables but I've just found out during > testing that the connection between a USB device and a > physical cable is not as simple as I first thought. >

Re: : Which remvable drive is connected to which USB port

2007-10-15 Thread Edwards, David (JTS)
> -Original Message- > From: Antti Harri [mailto:[EMAIL PROTECTED] > Sent: Monday, 15 October 2007 6:24 PM > To: Edwards, David (JTS) > Cc: misc@openbsd.org > Subject: Re: : Which remvable drive is connected to which USB port > > Hi, > > I haven't follow

Re: : Which remvable drive is connected to which USB port

2007-10-15 Thread Owain Ainsworth
On Mon, Oct 15, 2007 at 11:54:12AM +0300, Antti Harri wrote: > Hi, > > I haven't followed this thread but this sounds like > similar to the problem I had with USB printers. > I had several and turning them randomly on made them have > different ulptX device. I made a script for hotplug > that creat

Re: : Which remvable drive is connected to which USB port

2007-10-15 Thread Otto Moerbeek
On Mon, 15 Oct 2007, Edwards, David (JTS) wrote: > > -Original Message- > > From: Otto Moerbeek [mailto:[EMAIL PROTECTED] > > Sent: Friday, 12 October 2007 5:53 PM > > To: Raimo Niskanen > > Cc: Edwards, David (JTS); misc@openbsd.org > > Subject: Re:

Re: : Which remvable drive is connected to which USB port

2007-10-15 Thread Antti Harri
Hi, I haven't followed this thread but this sounds like similar to the problem I had with USB printers. I had several and turning them randomly on made them have different ulptX device. I made a script for hotplug that creates symlink that points to the right device node. So, if you modify my scr

Re: : : : Which remvable drive is connected to which USB port

2007-10-15 Thread Raimo Niskanen
On Fri, Oct 12, 2007 at 10:25:51AM -0400, Nick Guenther wrote: > On 10/12/07, Stuart Henderson <[EMAIL PROTECTED]> wrote: > > On 2007/10/12 11:47, Raimo Niskanen wrote: > > > > Use the disklabel: it has a disk name field that can be edited. > > > > > > Great proposal! > > > > > > I may be blind, bu

Re: : Which remvable drive is connected to which USB port

2007-10-14 Thread Edwards, David (JTS)
> -Original Message- > From: Otto Moerbeek [mailto:[EMAIL PROTECTED] > Sent: Friday, 12 October 2007 5:53 PM > To: Raimo Niskanen > Cc: Edwards, David (JTS); misc@openbsd.org > Subject: Re: : Which remvable drive is connected to which USB port > > > On Fri,

Re: Which remvable drive is connected to which USB port

2007-10-12 Thread Ted Unangst
On 10/11/07, Edwards, David (JTS) <[EMAIL PROTECTED]> wrote: > So, basically I need a tool where I can start with a physical port > description (seems /dev/usb# "addr #" works) and end with a disk > device (sd#). > I'll take the time to have a look at the sources one day. I'm > sure it would be p

Re: : : Which remvable drive is connected to which USB port

2007-10-12 Thread Nick Guenther
On 10/12/07, Stuart Henderson <[EMAIL PROTECTED]> wrote: > On 2007/10/12 11:47, Raimo Niskanen wrote: > > > Use the disklabel: it has a disk name field that can be edited. > > > > Great proposal! > > > > I may be blind, but can not find an editable name field. Which is it? > > And how can I edit it

Re: : : Which remvable drive is connected to which USB port

2007-10-12 Thread Otto Moerbeek
On Fri, 12 Oct 2007, Raimo Niskanen wrote: > On Fri, Oct 12, 2007 at 10:23:16AM +0200, Otto Moerbeek wrote: > > I can see an easy way to identify disks, without any dependency on the > > physical stuff like cables etc. > > > > Use the disklabel: it has a disk name field that can be edited. > >

Re: : : Which remvable drive is connected to which USB port

2007-10-12 Thread Stuart Henderson
On 2007/10/12 11:47, Raimo Niskanen wrote: > > Use the disklabel: it has a disk name field that can be edited. > > Great proposal! > > I may be blind, but can not find an editable name field. Which is it? > And how can I edit it? Label - you can edit it with disklabel -e.

Re: : : Which remvable drive is connected to which USB port

2007-10-12 Thread Raimo Niskanen
IL PROTECTED] > > > > Sent: Thursday, 11 October 2007 8:01 PM > > > > To: Edwards, David (JTS) > > > > Cc: misc@openbsd.org > > > > Subject: Re: Which remvable drive is connected to which USB port > > > > > > > > On 10/11/07, Edw

Re: : Which remvable drive is connected to which USB port

2007-10-12 Thread Otto Moerbeek
To: Edwards, David (JTS) > > > Cc: misc@openbsd.org > > > Subject: Re: Which remvable drive is connected to which USB port > > > > > > On 10/11/07, Edwards, David (JTS) > > > <[EMAIL PROTECTED]> wrote: > > > > Hi again. > > > > &

Re: : Which remvable drive is connected to which USB port

2007-10-12 Thread Raimo Niskanen
Subject: Re: Which remvable drive is connected to which USB port > > > > On 10/11/07, Edwards, David (JTS) > > <[EMAIL PROTECTED]> wrote: > > > Hi again. > > > > > > Just a wrap up to this thread. > > > - > [snip] > > >

Re: Which remvable drive is connected to which USB port

2007-10-11 Thread Edwards, David (JTS)
> -Original Message- > From: Nick Guenther [mailto:[EMAIL PROTECTED] > Sent: Thursday, 11 October 2007 8:01 PM > To: Edwards, David (JTS) > Cc: misc@openbsd.org > Subject: Re: Which remvable drive is connected to which USB port > > On 10/11/07, Edwards, David (

Re: Which remvable drive is connected to which USB port

2007-10-11 Thread Nick Guenther
On 10/11/07, Edwards, David (JTS) <[EMAIL PROTECTED]> wrote: > Hi again. > > Just a wrap up to this thread. > - > > Disk naming seems to be consistent after you first plug the device in. > > So: > The first disk plugged into a port (say "addr 2") gets sd1 (if your SATA > disk is sd

Re: Which remvable drive is connected to which USB port

2007-10-10 Thread Edwards, David (JTS)
Hi again. Just a wrap up to this thread. >From what I can see, the only way to do this is to grep through dmesg. The following script returns the disk attached to a physical usb port. Ports seem to be named like so: /dev/usb4 "addr 4". On my box, this is the 3rd physical port on a 4-port extern