[PATCH] Bogus LBA48 drives

From: Geert Uytterhoeven (geert_at_linux-m68k.org)
Date: 03/30/04

  • Next message: Martin J. Bligh: "Re: [Lse-tech] [patch] sched-domain cleanups, sched-2.6.5-rc2-mm2-A3"
    Date:	Tue, 30 Mar 2004 17:22:50 +0200 (MEST)
    To: André Hedrick <andre@linux-ide.org>, Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
    
    

    Apparently some IDE drives (e.g. a pile of 80 GB ST380020ACE drives I have
    access to) advertise to support LBA48, but don't, causing kernels that support
    LBA48 (i.e. anything newer than 2.4.18, including 2.4.25 and 2.6.4) to fail on
    them. Older kernels (including 2.2.20 on the Debian woody CDs) work fine.

    One problem with those drives is that the lba_capacity_2 field in their drive
    identification is set to 0, making the IDE driver think the disk is 0 bytes
    large. At first I tried modifying the driver to use lba_capacity if
    lba_capacity_2 is set to 0, but this caused disk errors. So it looks like those
    drives don't support the increased transfer size of LBA48 neither.

    I added a workaround for these drives to both 2.4.25 and 2.6.4. I'll send
    patches in follow-up emails.

    BTW, this problem (incl. a small patch to fix it for 2.4.19, which doesn't work
    on 2.4.25 anymore) was reported a while ago by JunHyeok Heo, cfr.
    http://www.cs.helsinki.fi/linux/linux-kernel/2002-42/0312.html

    Gr{oetje,eeting}s,

                                                    Geert

    --
    Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
    In personal conversations with technical people, I call myself a hacker. But
    when I'm talking to journalists I just say "programmer" or something like that.
    							    -- Linus Torvalds
    -
    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: Martin J. Bligh: "Re: [Lse-tech] [patch] sched-domain cleanups, sched-2.6.5-rc2-mm2-A3"

    Relevant Pages

    • Re: [PATCH] Bogus LBA48 drives
      ... > access to) advertise to support LBA48, but don't, causing kernels that support ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
      ... I have tried disabling readahead and DMA on both drives ... My motherboard is an ABIT NF7-S2G nFORCE2 with the following IDE ... # ACPI Support ... # Infrared-port device drivers ...
      (Linux-Kernel)
    • Re: "Safely remove hardware" icon is missinbg
      ... mainstream support so I'm not sure if these hotfixes are still available ... their drives after all, and they suggested ... indicate the unplug option or icon. ... and then double-click the appropriate icon. ...
      (microsoft.public.win2000.new_user)
    • Computer Nightmares
      ... Support, Santa Cruz Style or Where Do These People Come From? ... "Michaelangelo virus ate my hard disk, but I have a tape backup. ... I'm then transfered to the customer service ... printers and tape drives. ...
      (rec.humor.funny.reruns)
    • Re: Need P4C800-E BIOS settings to enable 48-bit LBA with Windows 2000
      ... LBA/Large Mode: Auto ... Onboard IDE Support Mode: Enhanced Mode ... 48 bit LBA is not subject to BIOS setup screens. ... Bit LBA Support for ATAPI Disk Drives" is quite explicit that the ...
      (alt.comp.periphs.mainboard.asus)