Currently, there is no detailed information about HPA.
I. What is HPA
Hidden protected area or Host protected area
HPA is an area defined in ATA/ATAPI-4, which is after the BIOS-visible space, so it cannot be accessed through the BIOS. But it can be accessed by directly sending AT commands.
The popular understanding is to set the maximum sector number of the read hard disk, so as to hide the high-end content. This maximum sector number can be written in a certain place on the hard disk. Therefore, even if you hang this hard disk on other machines, normally you cannot see the hidden content, and tools like Fdisk, PowerQuest PartitionMagic also treat this hard disk as a hard disk with a slightly smaller capacity. Now HPA has been based on the ATA-5 standard, and this standard needs to be supported by the HDD's Firmware.
Examples of using HPA are Phoenix's Core Managed Environment (cME), IBM's Access IBM, and Lenovo motherboard's recovery easy II.
II. Introduction to recovery systems using HPA technology currently
(1) System integrators
1. IBM's Access IBM
For models launched after 2003, IBM uses the new HPA technology to replace the previous partition-based product recovery solutions (Partition-based recovery solutions).
During the boot process, HPA interrupts the boot process by pressing the Enter key or the Access Thinkpad key and activates a program called Access IBM Predesktop Menu, which can provide functions such as diagnosing the system, restoring the operating system, and upgrading/restoring the BIOS. The original D2D system activates the Service Partition by pressing F11 during the boot process and performs operating system restoration. The HPA technology can integrate the Rapid Restore PC function, and can back up user data in the HPA partition.
There is relatively more research on IBM's one-key recovery system on the Internet, and you can find relevant resources later.
2. Lenovo's one-key recovery 4.5 and leos system (data last updated on May 19, 2005)
There are relatively few materials on Lenovo's one-key recovery system, and the official only gives a simple introduction. You can download the leos installation CD to analyze.
3. Founder's emergency recovery system
There are very few relevant materials on Founder's emergency recovery system. No materials were found on the official homepage. I only downloaded the manufacturer's deployment emergency center tool CD, but it was not installed successfully.
(2) Third-party manufacturers
1. Phoenix's Phoenix FirstWare Recover Pro
2. Super Future Information Co., Ltd.'s PCClone v1.64
III. Design ideas for DIY one-key recovery system
Why DIY?
Other software is bloated, difficult to port, not fast enough, etc.
1. Design requirements: Through our manual transformation, it is required to achieve easy installation, stable use, simplicity. The one-key recovery system must be robust and not easy to damage, etc.
2. Design ideas: Use HPAtool to create one (it is not yet certain the exact number, one or two, or more) HPA partition, modify the MBR code, so that during the boot process, press a certain hotkey to start its own loaded backup software (considering speed, etc., use Ghost 8.3) from the HPA area to perform backup and restore operations.
3. Existing problems:
(1) Creation of HPA partition
Lenovo provides a tool, HPAtool, and the updated version on April 20, 2005 is v0.8D.
Briefly introduce the use of this tool when creating an HPA partition:
HPATOOL
Among them, the space will be divided from the highest sector down in the order of TypeID; HDDx is the target hard disk number.
Regarding this TypeID field, I still don't understand it. By checking the installation files jiayue.bat in the leos installation CD home Yue D model, TJA.bat in the Tianjiao A-X model, and TJE.bat in the Tianjiao E-X model, I found
First, they all create multiple partitions, and then add modules to corresponding partitions.
Second, the meaning of their TypeID field cannot be understood.
Why create multiple HPA partitions? Could there be a partition similar to a "primary partition" in multiple partitions to realize the boot function? After checking the relevant materials on IBM HPA, I found that there is indeed a part similar to the hard disk MBR in the HPA partition, which records relevant content of each HPA partition, just like the partition table. But in the "part similar to the hard disk MBR", are the "bootable code" part and the "first 80 partition" created by the partition software? Or added later? If added later, what does a specific data bit represent? Lenovo has made it into a bin module and added it in.
(2) How to access and manage HPA partition
If it is a system integrator, such as IBM, lenovo, then it is almost not a problem, and the original program can be used. But for our DIY, we must consider it.
Since int 13 cannot access the HPA partition, how to boot from this partition and run Ghost? Founder provides a tool, UlockHPA, which runs in the DOS environment and can open the HPA partition for operation. This is just a direction. If thinking along this direction, then: Where does the DOS environment required to run this tool come from? Do we need to create a primary partition to install DOS? Can we add code in the MBR or in the next few sectors (first 63 sectors) to realize the corresponding functions? If this is possible, that would be the best. When the hotkey is pressed, the HPA partition is automatically opened, and when the backup software operation is completed, the partition is automatically closed (this may require the support of other scripts in this partition).
(3) When the MBR is damaged, can the MBR be quickly restored manually? Can we boot from the CD-ROM and extract the image file from the HPA partition for restoration?
(4) How to quickly and conveniently install the one-key recovery system (this is a later topic, let's not discuss it for now)
IV. Additional resources
Access IBM technical support page
http://www-3.ibm.com/pc/support/ ... S.html#APPLYCOUNTRY
Super Future Information Co., Ltd.'s PCClone v1.64
http://www.gotofnet.com/Big5/lin ... s/PCClone/index.htm
PCClone hard disk specification test program (this tool mainly detects whether your hard disk supports HPA)
http://www.gotofnet.com/Big5/lin ... d/utility/index.htm
Lenovo Yangtian one-key recovery 4.0 hidden partition structure
http://faq.lenovo.com.cn:81/docs ... Er77zN1z8dbHoI.html
Lenovo home computer new version (v3.0) one-key recovery software instruction manual
http://faq.lenovo.com.cn:81/docs ... pa44HJdBCMCctR.html
LEOS system CD
http://www.znpc.net/bbs/viewthre ... &extra=page%3D1
Back up the hidden system partition of IBM notebooks
http://article.pchome.net/00/01/13/06/index.phtml?40,0
Practice is higher than theory, and there are innovations in practice.
A few more words:
1. Virtual machines do not support HPA partitions.
2. Please experiment on unimportant hard disks.
3. Access IBM HPA header standard document ANSI+NCITS+346-2001.
Related link address:
http://webstore.ansi.org/ansidoc ... NSI+INCITS+346-2001
Unfortunately, it costs $30. If anyone has this standard document, please share it for joint research.
4. It may be more labor-saving to study with IBM as the prototype. There are still some discussions about IBM on the Internet, although there are many repetitions. The ThinkPad system recovery CD may be useful to you.
Precautions: The above discussion of mine refers to some articles on the Benyouhui forum, Sysoft Time and Space forum, and other websites. Thanks for that.
I have only initially studied the HPA technology. If there are any improper places in the above discussion, please feel free to give advice. This article can be freely reprinted, but please keep the file original, indicate the source, and keep the precautions. Thank you.
Updated again on 200608022028:
It seems necessary to introduce some basic knowledge
ATA/ATAPI-4 revision 18 (final draft)
http://t13.org/project/d1153r18-ATA-ATAPI-4.pdf
ATA/ATAPI-5 revision 3 (final draft)
http://t13.org/project/d1321r3-ATA-ATAPI-5.pdf
Of course, there are other materials such as ATA/ATAPI-6, ATA/ATAPI-7, ATA/ATAPI-8, etc. Those who need can download from
http://www.t13.org/.
You can go to DOSTOR.com Storage Online to see white papers and posts. Related link:
http://www.dostor.com/
http://bbs.wuyou.com/viewthread.php?tid=80412&highlight=hpa