Re: re-detect SCSi bus?

Ard van Breemen (ard@cstmel.hobby.nl)
Wed, 18 Mar 1998 23:30:59 +0100 (MET)


On Tue, 17 Mar 1998, Kevin Lentin wrote:
> On Sun, Mar 15, 1998 at 09:43:42PM -0500, Richard B. Johnson wrote:
> > This is not a kernel issue at all. Just get a copy of "mount" and
> > add any features you want. The mount program can certainly read
> > the /proc file system and force a re-scan of SCSI if, and only if,
> > a SCSI interface is detected.
>
> HOW? How do you make Linux rescan the scsi bus? Manually do a remove-device
> and add-device for every possible combo?
echo scsi add-single-device 0 0 $id 0>/proc/scsi/scsi
will do a scan on $id. If there was already a device scanned at that id,
you have to remove it first.
And it is not hard to do a for i in 0 1 2 3 4 5 6;do .... done
> start from scratch. And the chances of doing that on any non-toy system is
> zero.
Frequently rescanning the scsibus is not a wise decision. A scan will
typically timeout in 250ms... that is 1/4 of a second. In that period no
other scsi device can be accessed. So it is a wasted 1/4 of a second.
Usually you know what the id is. So writing a simple script, even a
rescanscript is simple. Now if it only was THAT easy in windows 95...

--
dec1: 11:24pm  up 1 day,  2:19,  3 users,  load average: 1.53, 1.97, 1.94

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu