User: Password:
|
|
Subscribe / Log in / New account

Re: ATA 4 KiB sector issues.

From:  James Bottomley <James.Bottomley-AT-suse.de>
To:  Tejun Heo <tj-AT-kernel.org>
Subject:  Re: ATA 4 KiB sector issues.
Date:  Mon, 08 Mar 2010 12:30:40 +0530
Cc:  "linux-ide-AT-vger.kernel.org" <linux-ide-AT-vger.kernel.org>, lkml <linux-kernel-AT-vger.kernel.org>, Daniel Taylor <Daniel.Taylor-AT-wdc.com>, Jeff Garzik <jeff-AT-garzik.org>, Mark Lord <kernel-AT-teksavvy.com>, tytso-AT-mit.edu, "H. Peter Anvin" <hpa-AT-zytor.com>, hirofumi-AT-mail.parknet.co.jp, Andrew Morton <akpm-AT-linux-foundation.org>, Alan Cox <alan-AT-lxorguk.ukuu.org.uk>, irtiger-AT-gmail.com, Matthew Wilcox <matthew-AT-wil.cx>, aschnell-AT-suse.de, knikanth-AT-suse.de, jdelvare-AT-suse.de, mkp-AT-mkp.net
Archive-link:  Article, Thread

Just a quick note:

The 2TB size for msdos partitions is a problem independent of the 4k
sector issue.  Traditional 512 byte sector drives are now available in
those sizes.  It looks like we're going to have to move to a new
partitioning label to solve this.

There's actually another barrier at 8 or 16TB, which is where a 4k
logical sector filesystem tops out using 32 bit block offsets (it's 8TB
if the fs hasn't been proof checked against sign extension problems).

However, for 4k sectors, the main issues which have shown up in testing
by others (mostly Martin) are

     1. In native 4k mode, we work perfectly fine.  *however*, most
        BIOSs can't boot native 4k drives.
     2. Even if the BIOS can boot native 4k, our own boot loaders seem
        to be hard coded for 512 byte sectors in several places.
     3. If we run in the 512 byte sector emulation mode, we end up with
        the partition alignment problems you allude to.
     4. The aligment problem is made more complex by drives that make
        use of the offset exponent feature (what you refer to as offset
        by one) ... fortunately very few of these have been seen in the
        wild and we're hopeful they can be shot before they breed.
     5. I'm really, really sorry to have to mention it, but it looks
        like uefi is going to be the only way we can boot non-msdos
        partitioned devices with native 4k sectors.

so the bottom line seems to be that if you want the device as a non boot
disk, use native 4k sectors and a non-msdos partition label.  If you
want to boot from the drive and your bios won't book 4k natively,
partition everything using the 512 emulation and try to align the
partitions correctly.  If your bios/uefi will boot 4k natively, just use
it and whatever partition label the bios/uefi supports.

Martin can fill in the pieces I've left out.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



(Log in to post comments)


Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds