Advanced Format

From ArchWiki
Revision as of 23:08, 13 July 2010 by Graysky (Talk | contribs) (Created page with '==Introduction== ==Current HDD Models that Employ a 4k Sectors== ==Formatting an AF HDD== One can employ fdisk to align partitions to sector 2048. Interestingly, in sector mode…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Current HDD Models that Employ a 4k Sectors

Formatting an AF HDD

One can employ fdisk to align partitions to sector 2048. Interestingly, in sector mode, the default starting point is not 63 or 64 but 2048 in the current version of fdisk (2.17.2) so it's automatically taking care of the 4k sector size.

# fdisk -c -u /dev/sda

Special Consideration for WD Green HDDs

The WD20EARS (and other sizes include 1.0 and 1.5 TB driver in the series) will attempt to part the read heads once every 8 seconds which is just horrible. Use hdparm in Template:Filename to disable this 'feature' and likely add life to your hdd:

# echo "hdparm -S 242 /dev/sdX" > /etc/rc.local

Alternatively, the following bash script can accomplish this automatically:

#!/bin/bash
for DISK in `fdisk -l |grep 2000.4 | cut -c13-13`
do echo hdparm -S 242 /dev/sd$DISK
done
#note you need to substitute 1000.2 in for 2000.4 if you have a 1 gig version