linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Hancock <hancockrwd@gmail.com>
To: Asdo <asdo@shiftmail.org>
Cc: linux-ide@vger.kernel.org
Subject: Re: How to reread disk size?
Date: Sat, 20 Feb 2010 12:37:19 -0600	[thread overview]
Message-ID: <4B802BDF.9020509@gmail.com> (raw)
In-Reply-To: <4B7F234F.9000107@shiftmail.org>

On 02/19/2010 05:48 PM, Asdo wrote:
> Hi all,
> I have a system with hot swappable bays but one of the involved
> controllers apparently does not support hot swap:
> (I have unfortunately an old kernel: 2.6.24)
>
> 00:1f.2 IDE interface: Intel Corporation 631xESB/632xESB/3100 Chipset
> SATA IDE Controller (rev 09) (prog-if 8f [Master SecP SecO PriP PriO])
> Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
> I/O ports at 18c8 [size=8]
> I/O ports at 18ac [size=4]
> I/O ports at 18c0 [size=8]
> I/O ports at 18a8 [size=4]
> I/O ports at 18b0 [size=16]
> Memory at da804400 (32-bit, non-prefetchable) [size=1K]
> Capabilities: [70] Power Management version 2
>
>
> I have swapped the disk with a larger one (750GB -> 1TB) but it blockdev
> --getsize64 still sees the old size. It has not realized I have swapped
> disk.
>
> In the past I was doing:
>
> blockdev --rereadpt /dev/sdX
>
> and it usually worked on other controllers to reread the size visible
> from "blockdev --getsize" or "blockdev --getsize64". One time I think it
> even worked on exactly *that* controller... but it's not working now,
> it's strange.
>
> Is there a technique, or I am out of luck?
> The machine should not be rebooted
> I would even enter the size manually if possible: I know how many LBA
> blocks are in that disk.

What dmesg output do you get when you do this?

  reply	other threads:[~2010-02-20 18:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19 23:48 How to reread disk size? Asdo
2010-02-20 18:37 ` Robert Hancock [this message]
2010-02-20 21:30   ` Asdo
2010-02-20 23:49     ` Asdo
2010-02-21  7:22     ` James Bottomley
     [not found]       ` <4B814B26.5020501@shiftmail.org>
     [not found]         ` <51f3faa71002210910s484c8e4i975ebf2314287d66@mail.gmail.com>
2010-02-22  0:58           ` Asdo
2010-02-22 12:57             ` James Bottomley
2010-02-23 18:05               ` Asdo

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=4B802BDF.9020509@gmail.com \
    --to=hancockrwd@gmail.com \
    --cc=asdo@shiftmail.org \
    --cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).