User Tools

Site Tools


hardware:hpa

Hard Drive: Host Protected Area

What is HPA

HPA (Host Protected Area) is a 'feature' (read: curse) of certain motherboards that is supposed to help recover from a corrupted BIOS. At the time of this writing (Feb. 2011), only certain older Gigabyte motherboards are known to force an HPA on hard drives. I don't know the exact cut-off date, but if you are using a Gigabyte motherboard manufactured before 2010 then you should definitely check to see if you have HPA on any of your drives. Also, it is definitely possible to have an HPA from a previous motherboard. If a drive has at any point in time been used with one of these HPA-inducing boards, then there's a good chance that it still has a vestigial HPA, even if it has been formatted since.

Check if HPA is enabled/disabled

hdparm -N /dev/[hs]d[a-z]

Enable or Disable HPA

For the output

/dev/sdx:
max sectors   = 78125000/78165360, HPA is enabled

Enable

hdparm --yes-i-know-what-i-am-doing -N p78125000 /dev/sdx

Disable

hdparm --yes-i-know-what-i-am-doing -N p78165360 /dev/sdx

Sources

hardware/hpa.txt · Last modified: 2015/05/22 13:57 by tschulz