ATATool


ATATool is freeware software that is used to display and modify ATA disk information from a Microsoft Windows environment. The software is typically used to manage host protected area and device configuration overlay features and is broadly similar to the hdparm for Linux. Recent versions include support for DCO restore and freeze operations, HPA security operations and simulated bad sectors.

Usage examples

ATATool must be run with administrator privileges. On Windows Vista and later it requires an elevated-privileges command prompt.
Display detected hard disks:
ATATOOL /LIST
Display information on hard disk 1:
ATATOOL /INFO \\.\PhysicalDrive1
Set HPA to 10GB on hard disk 1 :
ATATOOL /SETHPA:10GB \\.\PhysicalDrive1
Set HPA to 10GB on hard disk 1 :
ATATOOL /NONVOLATILEHPA /SETHPA:10GB \\.\PhysicalDrive1
Remove HPA to 10GB on hard disk 1 :
ATATOOL /NONVOLATILEHPA /RESETHPA \\.\PhysicalDrive1
Set DCO to 5GB on hard disk 1:
ATATOOL /SETDCO:5GB \\.\PhysicalDrive1
Remove DCO on hard disk 1:
ATATOOL /RESTOREDCO:5GB \\.\PhysicalDrive1

Data safety

Use of the ATATool can permanently change the disk configuration, may result in permanent data loss by making some sectors of the disk inaccessible. The tool should therefore be used with extreme care.