From: micah milano <micaho@gmail.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Andries Brouwer <andries.brouwer@cwi.nl>, linux-kernel@vger.kernel.org
Subject: Re: SiI3112 Serial ATA Maxtor 6Y120M0 incorrect geometry detected
Date: Mon, 27 Sep 2004 10:50:23 -0500 [thread overview]
Message-ID: <70fda32040927085019a5cd91@mail.gmail.com> (raw)
In-Reply-To: <58cb370e04092603596138133a@mail.gmail.com>
I agree that parted reports an error, however I think there is
something else going on. When I run fdisk there is a different CHS
reported for each disk, even though they are the same geometry. I
can't partition the second disk to have the same partition sizes as
the other disk because of this. I only mentioned parted because I was
trying every partitioner there is.
I am glad to hear I am helping tighten up some code to make things
clearer, but I was hoping someone might have a solution for how I can
partition this second identical disk so it has identical partition
sizing as the first so I can put software RAID mirroring on them. From
what it sounds like you guys are saying (IANALKH) dmesg is reporting
the wrong CHS, and parted has a fix for its error, but is there
something I can do to get the partition sizing right?
thanks for the quick replies!
micah
On Sun, 26 Sep 2004 12:59:48 +0200, Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com> wrote:
> On Sun, 26 Sep 2004 12:29:37 +0200, Andries Brouwer
> <andries.brouwer@cwi.nl > wrote:
> > On Sun, Sep 26, 2004 at 12:15:33AM +0200, Bartlomiej Zolnierkiewicz wrote:
> >
> > > I'm tired of this issue and this is what I'm going to do:
> > > - remove CHS info from IDE printks and /proc/ide/
> > > - add BLKGETSTART ioctl for getting partition's start sector
> > > (this is the only legitimate use of HDIO_GETGEO currently)
> > > - at least obsolete HDIO_GETGEO in IDE or even remove it (failing is
> > > better than returning unexpected results)
> > > - silence complainers :)
> > >
> > > Bartlomiej
> >
> > Yes. Consider returning 0 for C/H/S in HDIO_GETGEO.
> >
> > We need the BLKGETSTART ioctl for another reason:
> > the field start of a struct hd_geometry has 32 bits
> > and fails for partitions starting past the 2TB mark.
> > So, just like BLKGETSIZE64, this BLKGETSTART must
> > return a u64 and return an offset in bytes.
>
> Yes, I though so. Also u64 is 64-bit safe.
>
> > As we all know, geometry is meaningless for IDE.
> > But it is not for MFM/RLL and similar ancient stuff.
> > If support for old disks is not broken yet, try not to break it.
>
> OK.
>
next prev parent reply other threads:[~2004-09-27 15:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-25 19:14 SiI3112 Serial ATA Maxtor 6Y120M0 incorrect geometry detected micah milano
2004-09-25 21:03 ` micah milano
2004-09-25 22:15 ` Bartlomiej Zolnierkiewicz
2004-09-25 23:44 ` Alan Cox
2004-09-26 10:29 ` Andries Brouwer
2004-09-26 10:59 ` Bartlomiej Zolnierkiewicz
2004-09-27 15:50 ` micah milano [this message]
2004-09-27 19:31 ` Andries Brouwer
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=70fda32040927085019a5cd91@mail.gmail.com \
--to=micaho@gmail.com \
--cc=andries.brouwer@cwi.nl \
--cc=bzolnier@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.