mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Drake <dan@reactivated.net>
To: Christoph Pleger <Christoph.Pleger@uni-dortmund.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Hotplug with Kernel 2.6
Date: Mon, 15 Mar 2004 07:45:39 +0000	[thread overview]
Message-ID: <40555F23.4020600@reactivated.net> (raw)
In-Reply-To: <20040315102735.16ae4397.Christoph.Pleger@uni-dortmund.de>

Hi,

Christoph Pleger wrote:
> When I hotplug (or unplug) a USB mass storage device, I want to find out
> which SCSI device (for example, /dev/sda or /dev/sdb) is (was) assigned
> to that USB Device. Is it possible to do that with the help of the
> variables which are passed to the hotplug scripts by the kernel?

Not a direct answer to your question, but you might want to try udev. You can 
set up rules so that your USB storage device always becomes /dev/usb_hard_disk 
or another name of your choosing (as well as the automatic /dev/sdX).

Daniel

      reply	other threads:[~2004-03-15  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15  9:27 Christoph Pleger
2004-03-15  7:45 ` Daniel Drake [this message]

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=40555F23.4020600@reactivated.net \
    --to=dan@reactivated.net \
    --cc=Christoph.Pleger@uni-dortmund.de \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®