All of lore.kernel.org
 help / color / mirror / Atom feed
From: stman937-linewbie@yahoo.com (StephanT)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to find SCSI device to USB device association.
Date: Mon, 9 May 2011 14:07:57 -0700 (PDT)	[thread overview]
Message-ID: <32692.41811.qm@web30808.mail.mud.yahoo.com> (raw)
In-Reply-To: <20110509194144.GA28126@kroah.com>



> Why would you want  such a mapping?  It's not stable, changes every time,
> and means  nothing.

Well, because it is a customer/marketing request. And they have _always_
the last word :)

The system I'm working now is an embedded box having four USB ports. Each
port is labeled on the box USB1, USB2,... and the user expects to find the 
files 
on the stick plugged in USB1 on /media/usb1 folder. You can see my problem.

It happens the USB port labeled USB1 on the box has the port number 4. The 
USB2 is the #3 and so on. The solution I was thinking of is to add a rule to the
UDEV USB section invoking a script which will create a logical link 
"/media/usbx"
depending of the USB port#  attached to the newly created "sda_". This link 
is created every time the device is mounted and removed on umount.

Maybe you can suggest something simpler.


> Hope  this helps,
Sure it helps. Thanks!

/st

  reply	other threads:[~2011-05-09 21:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09 19:12 How to find SCSI device to USB device association StephanT
2011-05-09 19:41 ` Greg KH
2011-05-09 21:07   ` StephanT [this message]
2011-05-09 21:59     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32692.41811.qm@web30808.mail.mud.yahoo.com \
    --to=stman937-linewbie@yahoo.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.