Re: SiI3112 Serial ATA Maxtor 6Y120M0 incorrect geometry detected

From: micah milano (micaho_at_gmail.com)
Date: 09/27/04

  • Next message: john stultz: "Re: 2.6.8.1: xtime value may become incorrect"
    Date:	Mon, 27 Sep 2004 10:50:23 -0500
    To: Bartlomiej Zolnierkiewicz <bzolnier@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.
    >
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: john stultz: "Re: 2.6.8.1: xtime value may become incorrect"

    Relevant Pages

    • Re: grub error 18
      ... because I thought the EXTEND partition would be the second partition in ... the disk using CHS addressing (that is: telling the BIOS a head number, ... The problem with CHS is that the way the head number, cylinder number, ... Note that fdisk says that your disk has 30515 cylinders ... ...
      (uk.comp.homebuilt)
    • Re: Corrupt data - RAID sata_sil 3114 chip
      ... >>> There are apparently some reports of issues on NVidia chipsets as ... with it on a 250GB disk, it got massive corruption very quickly. ... I created a partition in this bad area to speed up testing.. ... (Though why only the 0x00 pattern fails would still be a mystery). ...
      (Debian-User)
    • Re: Partition 1 does not end on cylinder boundary
      ... Also df or df -h are better for listing partition info -- reasons will ... will likely see different CHS values than with fdisk). ... The BIOS will do it one way, the disk controller ... another, Win disk utils another, and most all Linux utils do it ...
      (comp.os.linux.setup)
    • Re: Partition 1 does not end on cylinder boundary
      ... > will likely see different CHS values than with fdisk). ... I've never seen parted display CHS values; it just shows partition start ... The BIOS will do it one way, the disk controller ...
      (comp.os.linux.setup)
    • is there any way to rehabilitate (save the files) a disk which has lost its partition information ?
      ... has suddenly lost its partition information and the system can ... The computer CMOS knows it has a Disk 1, ... But Windows cannot see D:. ... Device Manager knows the disk is there, and reports it is "working ...
      (microsoft.public.windowsxp.help_and_support)