How to properly install WD Advanced Format drive in Ubuntu as 2nd HDD?

16,114

Is there a way to properly format it for an Ubuntu 9.10 Server to take advantage of the advanced format? Such as with sector sizes?

The potential problem arises not from formatting the drive but from where on the drive the partitions are located. 4K sector drives need to be aligned on a logical block address that is a multiple of 8.

Supposedly the Linux tools have been updated to do the right thing when it comes to the 4K sector drives.

If you are using the most recent version of a popular Linux partition editor to create one or more new partitions on the drive you should be OK.

One warning: The WD drives can be jumpered as a kludge to work "correctly" with partitions created by Windows XP. Since you are using Linux make sure you do not have the jumper set for Windows XP. (If you did have the XP jumper set then you would get terrible performance from the drive).


Update:

OK, after Googling around a bit further, I'm confused. On the one hand, I've read the overview articles which claim Linux has no problem at all with 4K sector drives. But on the other hand, there are articles like these which claim the opposite.
Linux Not Fully Prepared for 4096-Byte Sector Hard Drives
Linux WD EARS Advanced Hard Drive Format

The second link above is probably more useful since it seems to offer suggestions on how to properly partition a 4K sector drive.

What I suggest is that you first check the alignment of your partitions by using fdisk -lu to display their starting LBAs. If your partition(s) are already aligned on LBAs that are a multiple of 8 then you should be fine. (You could also time the transfer of a large file just as an extra sanity check.)

If you have unaligned partitions then you probably want to delete and recreate using the method in the second article to ensure they are aligned properly.

Hope this helps ...

Share:
16,114

Related videos on Youtube

wag2639
Author by

wag2639

I work in IT :)

Updated on September 17, 2022

Comments

  • wag2639
    wag2639 5 months

    I got a new Western Digital WD15EARS Caviar Green 1.5TB SATA drive but it seems to use WD new advanced format using 4k blocks or something (I get the general idea but not really).

    Is there a way to properly format it for an Ubuntu 9.10 Server to take advantage of the advanced format? Such as with sector sizes?

    • user14764
      user14764 over 12 years
      I just posted a little guide about all this. It's partially explained on Western Digital's website but somehow it's incomplete and I ended up gessing from what the WD Align tools fixed in my partitioning mistakes... Anyway here it is: notepad.patheticcockroach.com/927/…
  • user3784403
    user3784403 over 12 years
    ext4, ext3, NTFS ... whatever, it doesn't matter how you format the partition. What matters is the Logical Block Address (LBA) where the partition starts. The Anandtech article you linked to in your question says, "Notably, Linux and Mac OS X are not affected by this issue." I think you'd be safe with Ubuntu 9.10 since it was available around the time WD appears to have been doing their testing.
  • user3784403
    user3784403 over 12 years
    @wag2639 BTW, what tool are you using to partition your 4k sector WD drive? I'm in the process of trying to digest this article osnews.com/story/22872/… to see if it points out anything which really needs to be worried about.
  • wag2639
    wag2639 over 12 years
    @john I just left fdisk do whatever the default setting was, at least at first just to make sure the drives works, I was hoping others would chime in over time and offer some advice or other experience.
  • wag2639
    wag2639 over 12 years
    just realized i didn't include the guide i was using, i'll include for others with this problem: help.ubuntu.com/community/InstallingANewHardDrive