public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Madison Kelly <linux@alteeve.com>
To: Linux-SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Rescanning a usb-mounted fs causes scsi device address to change
Date: Tue, 13 Jul 2004 17:28:03 -0400	[thread overview]
Message-ID: <40F453E3.2050308@alteeve.com> (raw)

Hello all!

   This is my first post to the list so let me appologise if I am 
missing something obvious.

   I am writting a perl program that backs up data to a USB2/Firewire 
connected hard drives. I've been writting it under Fedora Core 1 and 2 
and I use Kurt Garloff's 'rescan SCSI bus' script. What I have found is 
that if a usb-connected partition (say at '/dev/sda1') is mounted and 
the rescan script is run (via 'sudo' with the '-r' remove switch) the 
device shifts to '/dev/sdb1' instead of being ignored. This obviously 
breaks any mounts and associated bad stuff (tm) happens.

   I am an amature programmer so again I worry that I am missing 
something obvious. I've been reading as much as I can on the 'scsi 
add|remove-single-device w x y z > /proc/scsi/scsi' call but there seems 
to be very little documentation on how these calls work. If someone 
doesn't know what's happening but can point me at something that might 
help be figure this out that would be greatly appreciated, too.

   In case it helps, I am currently developing this on an IBM thinkpad 
a22m (Intel 440BX/P3 1GHz) machine with an ALI USB2/Firewire PCMCIA card 
and an external USB2->IDE carrier that uses removable 3.5" IDE trays 
(poor person's hot-swap). If any other info/specs will help I'll be glad 
to pass them along.

   Thank you in advance!

Madison

                 reply	other threads:[~2004-07-13 21:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=40F453E3.2050308@alteeve.com \
    --to=linux@alteeve.com \
    --cc=linux-scsi@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