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

4

2

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?

wag2639

Posted 2010-06-04T21:40:42.783

Reputation: 5 568

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: http://notepad.patheticcockroach.com/927/dealing-with-wd-advanced-format-hard-drives-on-linux-part-2/

– user14764 – 2010-08-17T21:10:07.710

Answers

6

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 ...

irrational John

Posted 2010-06-04T21:40:42.783

Reputation: 3 243

I'm using the latest version of Ubuntu 9.10 (aptitude full-upgrade). Is that enough? Also, I was using this guide but it may be a bit outdated. I used ext4 instead of ext3. – wag2639 – 2010-06-04T21:51:59.123

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. – irrational John – 2010-06-04T22:05:23.583

@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 http://www.osnews.com/story/22872/Linux_Not_Fully_Prepared_for_4096-Byte_Sector_Hard_Drives to see if it points out anything which really needs to be worried about.

– irrational John – 2010-06-04T22:15:28.817

@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 – 2010-06-04T22:56:03.557

just realized i didn't include the guide i was using, i'll include for others with this problem: https://help.ubuntu.com/community/InstallingANewHardDrive

– wag2639 – 2010-06-05T18:00:43.723

0

Parted tool starting from version 2.1 is includes support for aligning Advanced Format drives. This recommendation is from WD official FAQ.

Kirill V. Lyadvinsky

Posted 2010-06-04T21:40:42.783

Reputation: 5 028