Slashdot Mirror


HDD Manufacturers Moving To 4096-Byte Sectors

Luminous Coward writes "As previously discussed on Slashdot, according to AnandTech and The Tech Report, hard disk drive manufacturers are now ready to bump the size of the disk sector from 512 to 4096 bytes, in order to minimize storage lost to ECC and sync. This may not be a smooth transition, because some OSes do not align partitions on 4K boundaries."

50 of 442 comments (clear)

  1. Factors of 10 by suso · · Score: 5, Funny

    Why not just move it to 1000 byte sectors, then we could minimize the space lost to advertising.

    (Note to accuracy nazis, this is meant to be funny)

    1. Re:Factors of 10 by rolfwind · · Score: 4, Funny

      If they want to use base10 the first thing they should do is respecify a byte to be 10bits.

      How about leaving the word byte alone and using another, distinct group of letter to do the job? Respecifying only confuses the issue, even those who know, because you're still be working with two different definitions in the same field for a long time.

    2. Re:Factors of 10 by TheRaven64 · · Score: 3, Informative

      A byte can be 10 bits; it's an architecture-specific quantity. An octet is always 8 bits.

      --
      I am TheRaven on Soylent News
    3. Re:Factors of 10 by drainbramage · · Score: 4, Funny

      Mine goes to 11.

      --
      No brain, no pain.
    4. Re:Factors of 10 by pauljlucas · · Score: 3, Informative

      How about leaving the word byte alone and using another, distinct group of letter [sic] to do the job?

      The original definition of "byte" was the number of bits used to encode a character of text and is the basic memory-addressable element in a computer. It never originally meant "8 bits".

      --
      If you reply, do so only to what I explicitly wrote. If I didn't write it, don't assume or infer it.
    5. Re:Factors of 10 by m1xram · · Score: 3, Insightful

      That's Grey Code. 000, 001, 011, 010, 110, 111 and the joke should read...

      There are only 11 types of old timer geeks... :-)

    6. Re:Factors of 10 by macemoneta · · Score: 3, Informative

      [blockquote]The original definition of "byte" was the number of bits used to encode a character of text and is the basic memory-addressable element in a computer. It never originally meant "8 bits".[/blockquote]

      That is the definition of 'octet', a term frequently used in telecom. People confuse byte and octet all the time, because popular hardware architectures use an octet as a byte.

      --

      Can You Say Linux? I Knew That You Could.

    7. Re:Factors of 10 by drsmithy · · Score: 3, Insightful

      It's also worth noting that this is Microsoft's fault. Other OS's are doing it properly. Microsoft only does it properly when it benefits them. HDD manufacturers have faced numerous lawsuits simply because Microsoft is using the wrong prefix, so people feel cheated out of space.

      I hate to rain on your anti-Microsoft parade, but back when hard disk manufactures realised they could make their hard disks look bigger than they really were, capacities were still being measured in 10s of MB, and *all* OSes were using power-of-two prefixes.

      The rest of your rant is about as accurate.

  2. So only XP is out of luck? by 7o9 · · Score: 5, Informative

    According to the Anandtech article, only the pretty much end-of-life Windows XP is out of luck. Linux, OS X and modern Windows versions all work ... Non news?

    1. Re:So only XP is out of luck? by gbjbaanb · · Score: 5, Insightful

      whoooooo. WinXP is end-of-life? You'd best tell that to all the millions of users (including big businesses) out there.

      What that's you say? Upgrade to Windows 7 and use its perfectly infallible XP mode?

      Ah, I understand now. Hi Bill, how's Steve getting on, still a bit sweaty and concerned he's not selling enough?

    2. Re:So only XP is out of luck? by iamhassi · · Score: 3, Informative

      ah this was what I was looking for: Drobo, XP Users: Beware of 4K “Advanced Format” Drives!

      Article states that not only will XP have problems but so will many other devices like media centers, USB drives, game consoles, and anything else that uses a hard drive. USB drives will be the worse though since 4k drives formatted for XP won't work with Windows 7 and vise versa. Honestly I think this is too soon, put it off another 10 years, by then we'll have OS's that would have supported 4k for 10+ yrs already and all devices should be compatible by then.

      --
      my karma will be here long after I'm gone
    3. Re:So only XP is out of luck? by AlecC · · Score: 4, Informative

      Why wasn't it done before? Sheer inertia. 512 bytes has been the HDD sector size since time immemorial. Some HDDs in the past could be re-sectored to different sizes, and sometimes were. I did it on one generation of disks to optimise storage for a particular reasons, but it didn't work reliably on the next generation of disks, so I dropped it. Some disks had a sector of 1080 bits, I think to handle the 33rd bit on IBM System/38.

      What is the advantage? Every sector has a preamble, a sync mark, a header, the payload data, ECC, and postamble. These can amount to tens of bytes, especially as you have stronger ECC for weaker signals. By having fewer sector, you recover this space from most of the sectors. This could easily add 10% to the capacity of a drive. And, as posted elsewhere, most OSes do 4K transfers most of the time.

      --
      Consciousness is an illusion caused by an excess of self consciousness.
    4. Re:So only XP is out of luck? by kill-1 · · Score: 4, Informative

      The new hard drives will have a compatibility mode. It will be slower though because it has to read-modify-write behind the scene.

    5. Re:So only XP is out of luck? by lorenlal · · Score: 4, Insightful

      Eventually, you have to put a line in the sand. If you push off the deadline, manufacturers will still take their time, and they'll be in the same place 9 years and 11 months from now.

      Example: IPv6.

    6. Re:So only XP is out of luck? by alen · · Score: 3, Insightful

      MS has a clear support policy. Maybe you like Apple's 3 year support policy better than Microsoft's 10 year 7/3 policy?

    7. Re:So only XP is out of luck? by drinkypoo · · Score: 4, Insightful

      Except that pretty much every OS in use now has IPv6 support.

      Except that name resolution is broken for IPv6 on Windows XP, which is the operating system not supporting 4k sectors that people are complaining about... so IPv6 was a super shitty example for you to try to defend.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    8. Re:So only XP is out of luck? by AlecC · · Score: 3, Interesting

      The ECC (Error Check and Correct) is used for error correction. But generally speaking, the number of bits needed to check a block of data rises slower than the number of bits in the data - probably as the log of the number of bits, though I don't know. So grouping up sectors and providing a slightly longer ECC will save a significant number of the ECC bits. Of course a sector having eight times as many bits is eight times as likely to get corrupted, simply because of its size. But such faults are rare, though not rare enough to ignore. Of course, it will be a fraction less reliable. But the manufacturers do reliability/performance trade-offs all the time, and this is only one more of them. Presumably they reckon they have the reliability under control. If you want greater reliability, you need RAID anyway - to protect against drive failure as well as localized corruption. The probably reckon that anybody with really valuable data will be RAIDed anyway,

      --
      Consciousness is an illusion caused by an excess of self consciousness.
    9. Re:So only XP is out of luck? by moonbender · · Score: 3, Informative

      ECC is more efficient for 4k blocks. Apparently, 100 bytes of ECC for a single 4k block are as reliable as 320 bytes of ECC for eight 512 byte blocks. See http://www.anandtech.com/storage/showdoc.aspx?i=3691

      --
      Switch back to Slashdot's D1 system.
    10. Re:So only XP is out of luck? by kbielefe · · Score: 3, Insightful

      Sidestepping your ignorance or deliberate deception on periods of typical Linux support contracts, it still amazes me that comments touting Microsoft support periods continue to appear on articles like this. Who cares if support goes out 10 years if you can't buy a new hard drive that will work with the OS? It's articles and comments like this that give me difficulty discerning what exactly Microsoft "support" entails. A warm fuzzy number you can call where they say you have to upgrade to Windows 7 for that hardware to work?

      --
      This space intentionally left blank.
    11. Re:So only XP is out of luck? by Antique+Geekmeister · · Score: 3, Interesting

      Most used or not, it's 8 years old, and the update cost of a newly purchased machine with a plain OS installation disk includes roughly 2 Gig of downloaded data, and at least 5 reboots. (Measured last week on a clean installation of Windows XP Pro.) Even popular games that are shipping now do not run under it: that tells me it's obsolete.

    12. Re:So only XP is out of luck? by Idiot+with+a+gun · · Score: 3, Insightful
      I've never understood this long living love for XP. The longer I work with it (I'm a support tech), the more I hate it. It genuinely has the feeling of an OS that was organically grown, without any fore planning. Wireless control often ends up in the hands of a user-space program instead of in the OS (wtf?), and updates are done through a god awful activex webpage. Blech. The long term (and even short term) stability of XP these days is poor at best, and I have no clue why everyone claims to love it.

      On the other hand, most people I've met who make fun of Vista, never used it. My dad was slamming it earlier "Did you ever use it?" "... No". The vast majority of complaints about it stemmed from 2 problems:
      • The so called "power users" always complain about any change, regardless of whether or not it's good.
      • Underpowered machines were marked as "Vista Capable" when they were not.

      And to honest, 7 is quite good. This is coming from a die hard Linux user (who actually liked Gentoo).

    13. Re:So only XP is out of luck? by pz · · Score: 3, Informative

      The ECC (Error Check and Correct) is used for error correction.

      ECC stands for Error Correcting Code, as per the original derivation from number theory. Only recently has the more breathy, marketing-friendly version come into use.

      --

      Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
    14. Re:So only XP is out of luck? by petermgreen · · Score: 4, Interesting

      Sidestepping your ignorance or deliberate deception on periods of typical Linux support contracts
      He didn't say if he was stating lengths from release or length of overlap (to me the latter is the more important figure)

      Who cares if support goes out 10 years
      It's 10 years (5 mainstream, 5 extended) minimum from release, 7 years (2 mainstream, five extended) minimum overlap between releases and 2 years (all extended) minimum overlap if you skip a release. IIRC XP will have exceeded all of those.

      if you can't buy a new hard drive that will work with the OS?
      These "advanced format" drives will work fine with XP, they just require a little extra effort (either using a third party paritioning tool, fitting an extra jumper to change the sector mapping or using the WD tool to realign the partitions after setup) if you want maximum performance. Besides I can still by PATA drives so I doubt these drives will be the only ones on the market any time soon.

      Similarly if I go to almost any major vendor I can still get computers and computer parts that are supported with XP, some of the consumer crap isn't but virtually every buisness machine and seperately sold peice of hardware i've seen lists XP as supported.

      It's articles and comments like this that give me difficulty discerning what exactly Microsoft "support" entails.
      For most of us the most important part of the support is continuation of security updates (though they have occasionally refused to release one that they really should have released by claiming that it's not nessacery in a default environment), I would be very uncomfortable running exposed systems (and I coun't any machine used to browse the web as exposed) on an OS that was no longer getting security updates.

      There is also problem support and non-security hotfixes (free if created while in mainstream support, pay for if created during extended support) but for most of us these are fairly irrelevant.

      As I alluded to above though what really matters is support from third party vendors, I can still buy the latest hardware and run XP on it with no problems, just try doing that with a comparable aged linux distro (e.g. debian woody).

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
  3. WD is already shipping them by daha · · Score: 5, Informative

    There are certain models of the Western Digital Caviar Green drives that are already shipping with a 4K sector size, such as this one: http://www.newegg.com/Product/Product.aspx?Item=N82E16822136490

  4. Re:Care to provide examples? by DeHackEd · · Score: 3, Informative

    I just checked my system. /dev/sda1 is /dev/sda + 32256 bytes, which is 63 512-byte sectors. /dev/sda2 is also on an odd-numbered sector alignment.

    Fedora 11 fresh install, which is less than a year old.

  5. Re:Care to provide examples? by andrewd18 · · Score: 5, Funny

    I realize this is Slashdot, but both of the articles linked talk about the affected operating system. Hint: It shares an ending with a colloquial name for urine.

  6. Isn't this just a firmware change? by SharpFang · · Score: 3, Informative

    It doesn't sound like the 512 bytes per sector is tightly bound to hardware. More like a low-level reformat plus change of some #defines in the firmware to transform from one to another type. Which would mean there could be i.e. a jumper setting for sector size, allowing for backward compatibility.

    Also, the fact an OS doesn't enforce partition alignment doesn't mean it won't respect a disk formatted to aligned partitions. Just provide a 3rd party partitioning tool that aligns the partitions right, and install the OS on pre-made partitions. If your business depends on WinXP so much, your IT dept should be capable of doing it.

    --
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  7. Re:Care to provide examples? by tepples · · Score: 5, Funny

    I realize this is Slashdot, but both of the articles linked talk about the affected operating system. Hint: It shares an ending with a colloquial name for urine.

    Wii? PSP?

  8. Re:intelligent interfaces by tepples · · Score: 3, Informative

    Why does the sector size presented by the interface have to reflect anything about the hardware?

    If the OS clusters aren't aligned to physical sectors, the hard drive's controller has to read-modify-write all the time.

  9. disable ECC? by Anonymous Coward · · Score: 4, Interesting

    I heard some talks from the ZFS folks at Sun about how they were floating the idea to HD mfgr's of just disabling ECC on the drives. ZFS checksums every block, and in a RAID configuration, it would be able to transparently correct any checksum errors. I think this may have also been the motivation behind bringing triple-redundant RAID to ZFS.

    The motivating idea was that this would reduce the overhead involved on ECC and gain extra space.

    Thoughts?

    1. Re:disable ECC? by MobyDisk · · Score: 4, Interesting

      That wouldn't work with existing file systems that assume the drive does this. That's like deciding to remove the checksums from TCP and IP because a few protocols provide their own checksums. Might work in specialized cases. Probably just adds risk though for no benefit.

    2. Re:disable ECC? by Waffle+Iron · · Score: 4, Insightful

      It doesn't seem like a great idea to me. There are a lot of different ECC algorithms and implementations. It seems to me that it would be better to let the hard drive manufacturer select one that closely matches the expected signal and noise characteristics of a particular disk drive rather than some generic algorithm in the filesystem.

    3. Re:disable ECC? by Jeff+DeMaagd · · Score: 3, Interesting

      I can see this working for drives made specifically for RAIDs. Lose ECC on single drive configurations and you're asking for trouble. At least for RAIDS, a controller would need to be aware of this and do the remapping themselves, in the end, I don't know if it's worth doing this at all. If some enterprising RAID controller company could prove it works better to do it this way, then I can see it happening.

    4. Re:disable ECC? by Junta · · Score: 3, Informative

      That's like deciding to remove the checksums from TCP and IP because a few protocols provide their own checksums.

      Funny you should mention IP checksums, that's one feature removed from the IP layer in IPv6 precisely because the 'important' protocols do it themselves anyway (i.e. TCP).

      --
      XML is like violence. If it doesn't solve the problem, use more.
    5. Re:disable ECC? by TheLink · · Score: 3, Interesting

      If they really did that, I'd say they were clueless. Such a feature would increase the odds of error.

      ZFS might checksum every block. But what happens when ZFS is not everywhere? Does the BIOS or whatever equivalent support ZFS checksumming for reading the boot sectors? So those sectors better be 100% or you better be turning it off for boot drives. You have to use ZFS everywhere and for everything. For example, if you ever try to image a 1TB disk without ECC, the odds of bit errors will be high. Even if ZFS can repair it - you'd only find out much later (too late?) and likely after another error prone write.

      Such a feature would just be creating more opportunities for people to get things wrong.

      And for what benefit?

      > The motivating idea was that this would reduce the overhead involved on ECC and gain extra space.

      I think the people who'd want ZFS or RAID would rather have better reliability than the 10% or so extra space.

      Even if they don't know it at first ;).

      --
    6. Re:disable ECC? by butlerm · · Score: 5, Informative

      That's insane. ECC at the hardware / firmware level corrects the vast majority of bit errors transparently in a manner that is invisible to the operating system. If you took out sector level ECC, the drives would be useless in anything other than a ZFS RAID configuration, and even then performance would drop in the presence of trivially ECC correctable errors, due to the re-reads and stripe reconstructions at the filesystem level.

      Drive performance would probably drop because the heads would have to stay in closer alignment without the ability of ECC to correct data read errors caused by small vibrations and electrical noise. In addition, sector relocations would probably increase because tiny flaws that do not impair the ability of a drive to write an ECC correctable sector would force the drive to remap that sector to another part of the disk.

      It is a similar issue with various wire level data transmission schemes. If DSL connections did not use error correcting codes, they would suffer much higher packet loss rates than they do now, especially at distance. Most those packets would generally get retransmitted due to transport level checksum errors, but why resort to performance impairing fall back measures when the problem can be largely eliminated at a lower level?

  10. Re:Why are there sectors? by JordanL · · Score: 4, Informative

    A sector on a HDD is the minimum writeable space. Think of it as a lot in a subdevelopment. If each lot is 50,000 sq. ft. on a 20 acre plot, and you move to 60,000 sq. ft. lots instead, the plot is still 20 acres, but the development now has less lots on it.

    In computers, larger sectors are often better for large files, while smaller sectors are better for smaller partitions and smaller files. If a sector is 4096 bytes, and you create a 1024 byte file, it still occupies 4096 bytes on the disk, as the HDD won't write anything else but that file to the sector. If you have files that are hundreds of megabytes though, you can access the file, with minimum wastage, by using fewer sectors, which reduces thrashing and similar issues.

    The discrepancy between file sizes and sector sizes is what the difference is in Windows when you view a hard drive and it displays "size" and "size on disk". "Size" is the actual file size, while "size on disk" is the amount of space the file occupies on the hard drive.

  11. Re:Why are there sectors? by JordanL · · Score: 3, Interesting

    It is indeed. Unless HDD makers were going to create firmware, and programmers made partition formats, which address each bit individually (which itself would require an enormous amount of space... much larger than the HDD in fact), you will always be unable to live without sectors. The subdivision idea is again relevant. Imagine if every part of the 20 acre plot had to be "addressable" down to the square inch.

  12. Re:Why are there sectors? by DarkOx · · Score: 3, Interesting

    You are confusing physical sector size with cluster size. May file systems are already addressing data in larger blocks. 4096 is very commonly used. They are generally multiples of 512 which is the physical sector size; so that its is easy to calculate the physical sector that needs to be changed when you know the logical.

    Its quite possible to have a cluster size smaller than the sector size; the file system would need to be smart enough to determine what other clusters fall on that sector and write them all though.

    --
    Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  13. Re:Looks like 512 by butlerm · · Score: 4, Informative

    Those are "logical" sectors, which can be different from the physical sector size. According to the Anandtech article the Western Digital hard drive model numbers that end with "EARS" use the larger, 4KB physical sector size, while presenting a 512 byte logical sector size to the operating system for compatibility reasons.

    Please note, of course, that the logical sector size is a drive interface level concept distinct from the filesystem cluster or block size. Filesystem block sizes have generally been larger than the logical or physical sector size for quite some time.

  14. Re:intelligent interfaces by Thanshin · · Score: 5, Funny

    Do you really believe your hard drive has 256 heads?

    It had only six, at first, but we didn't know the thing about burning the stumps.

  15. Re:Care to provide examples? by Gulthek · · Score: 3, Interesting

    It took me longer than it should've to answer this riddle. Shortcut for the similarly caffeine deprived: andrewd18 means "P" as in Windows XP.

    Seriously, I was like "Win...dows?" "U...nix?" "Micro...soft?" "OS...X"? "BS...D"?

  16. Tail packing by tepples · · Score: 4, Funny

    Unless HDD makers were going to create firmware, and programmers made partition formats, which address each bit individually (which itself would require an enormous amount of space... much larger than the HDD in fact), you will always be unable to live without sectors. The subdivision idea is again relevant. Imagine if every part of the 20 acre plot had to be "addressable" down to the square inch.

    It's called block suballocation: store a small file in its entirety in another file's slack space. And yes, it's a "killer" feature.

  17. Re:Care to provide examples? by Anonymous Coward · · Score: 5, Funny

    Solar... isssss

    D:

  18. Actually no. by Mashiki · · Score: 4, Interesting

    Most of the drive manufactures are releasing tools to align the drives to 4k clusters so they can be used under XP. WDC already has theirs out here: WDC Adv Format Plus instructions on all of their new 1TB and higher drives on how to set them up properly. You do have to jumper them, then format them specially but the drives work fine with 4k clusters. I put one in my work machine on Saturday, works flawlessly.

    *I only used WDC because that's the brand I picked up recently. I do know other companies have similar tools and jumper settings on their newer drives as well.

    --
    Om, nomnomnom...
  19. Re:Isn't this just a firmware change? by butlerm · · Score: 3, Informative

    NTFS has been 4K aligned for a long time now.

    That doesn't do any good if the partition it is on starts with an LBA that is not a multiple of 8. Windows versions prior to Vista create the first partition starting at LBA 63, which is not 4KB aligned.

    The people who will have performance problems will primarily be Windows XP users who purchase the newer style drives and do not realign the first partition accordingly. Some versions of "fdisk" on Linux have a similar deficiency, with an "cylinder" based user interface and odd size cylinders in the name of MSDOS compatibility. Not sure if that has been fixed yet.

  20. Re:Windows XP end-of-life? by Jim+Efaw · · Score: 3, Interesting

    Well, it's in Extended Support which for one thing means MS doesn't give a rats ass whether or not XP works with the more efficient AF HDDs, since that's not a security related patch.

    Well, that's a fair assessment. Of course, that's a monopoly tactic — any business that dropped support for that widespread of a product in a legitimate competitive environment would find themselves with no customers for the newer product because customers would be trying to migrate out from under that vendor at all costs.

  21. Characters were not always 8-bit by klubar · · Score: 4, Informative

    I believe that some of the early CDC machines (a company that is no longer around) had a 6-bit character. The Digital Equipment Company (DEC, alos a company that is no longer around) PDP-1, maybe the PDP-20, and some others also had a 6-bit character. The PDP's had 36-bit words, packing 6 characters into a word. And of course, the IBM machines (a company that is still around) used EBCDIC rather than ASCII (but did use an 8-bits per character). Some of the earlier (and even the 370's) IBM machines used BCD (binary coded decimal) for arithmetic (packing a number from 0 to 9 in 4 bits, with some sign and unassigned bits left over).

    Also, back in the IBM JCL days, when allocating disk space for a file you could specify the number of cylinders (or tracks) that you wanted, the block size and the packing factor.

    1. Re:Characters were not always 8-bit by VGPowerlord · · Score: 3, Informative

      As strange as it may seem, there actually is precedence for 8-bit bytes... in Currency of all places.

      The Spanish Milled Dollar was often split into eight pieces to make change. Hence the term "Pieces of Eight."

      However, for whatever reason, those were often termed bits in the US. So, there were 8 bits to the Spanish Milled Dollar.

      And two bits made up a quarter-dollar, hence the "Shave and a hair cut... two bits!" routine.

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  22. please stop spreading FUD by Anonymous Coward · · Score: 4, Informative

    What a bunch of misinformed drivel. That article is missing a couple of things:

    firstly) The issue affects all Windows versions based on a 5.x kernel. That means Windows 2000, XP, 2003 server and Windows Home Server.

    1) These drives are NOT strictly-4k-sector. The platters may be organized in 4k sectors, but the drive only talks to the OS in terms of 512 byte-sectors. And since we're discussing old Windows versions: NTFS has defaulted to using 4k (logical) sectors since its introduction, so there is NO performance penalty when using NTFS on these drives. You shouldn't be using FAT32 anyway.

    2) The issue can be worked around by creating partitions with a tool that understands 4k sectors, or by re-aligning the partitions after creation/installation. If you only use a drive in those systems (i.e. no repartitioning), the drive will work as it should. Even if you create partitions that are unaligned, the drive will still work - you will only lose some performance.

    3) The one genuine problem raised in the linked article comes when you want to use these drives in closed-firmware devices. In this case you still have two options: either you use the WD-provided jumper setting, or you pre-create the partitions before you insert the drive.

    I fail to see what the fuss is all about.