From: Giuliano Pochini <pochini@shiny.it>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: SCSI removable devices problem
Date: Sun, 8 Aug 2004 11:39:11 +0200 [thread overview]
Message-ID: <20040808113911.6185276c.pochini@shiny.it> (raw)
In-Reply-To: <20040801092421.3f138fac.rddunlap@osdl.org>
On Sun, 1 Aug 2004 09:24:21 -0700
"Randy.Dunlap" <rddunlap@osdl.org> wrote:
> On Sun, 1 Aug 2004 14:19:31 +0200 Giuliano Pochini wrote:
>
> |
> |
> | It seems that 2.6.7 reads the partition table only once: when the scsi unit
> | is added to the list during boot or when I send the "add-single-device"
> | command. This is a problem with removable devices because if the drive
> | hasn't a disk inserted at boot time, attempting to mount a partitioned disk
> | always results in:
> |
> | mount: /dev/sdb1 is not a valid block device
> |
> | Also, bad things may happen (not tested) if a disk was in during boot and I
> | replace it with another one with a different partitioning.
> |
> | As a workaround I have to send the "remove-single-device" command after
> | having unmounted a volume and "add-single-device" after I have inserted a
> | new one. I don't know when this problem was introduced, sorry.
>
> I think that it's been this way for some time now...
>
> Does using
> blockdev --rereadpt /dev/sdb1
> help?
Yes, that works. But IIRC I didn't need that with linux 2.4. The kernel
should reread the table automatically when it receaves an UNIT_ATTENTION
message from the scsi bus.
--
Giuliano.
prev parent reply other threads:[~2004-08-08 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-01 12:19 Giuliano Pochini
2004-08-01 16:24 ` Randy.Dunlap
2004-08-01 20:26 ` Toon van der Pas
2004-08-08 9:39 ` Giuliano Pochini [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=20040808113911.6185276c.pochini@shiny.it \
--to=pochini@shiny.it \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.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®