Difference between revisions of "PreDesktop Area"

From ThinkWiki
Jump to: navigation, search
(How to remove it)
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| width="100%"
+
#REDIRECT [[Predesktop Area]]
|style="vertical-align:top;padding-right:20px;width:10px;" | [[Image:hpa.jpg|IBM PreDesktop Area]] __NOTOC__
 
|style="vertical-align:top" |
 
<div style="margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#F8F8FF; align:right;">
 
=== The PreDesktop Area ===
 
The Predesktop Area is part of the HPA (generally known as the "Host Protected Area", but called "Hidden Protected Area" by IBM). The HPA is a special area on your harddisk, usually hidden to partitioning tools. It includes all the software and data needed to recover the preloaded state of the ThinkPad. The HPA also includes some diagnostic tools and a (MS Windows only) backup tool.
 
 
 
The Predesktop area was introduced with the R/T/X 40 series of ThinkPads and is present on the preinstalled harddisks of all ThinkPads shipped by IBM since then.
 
</div>
 
|}
 
==General information about the HPA==
 
The HPA seems to be using [http://www.phoenix.com/en/Products/Trusted+Applications/Phoenix+FirstWare/default.htm Phoenix FirstWare]. FirstWare is (in short) an implementation of two technologies: BEER and PARTIES. (Yes, those names are correct!) BEER (Boot Engineering Extension Record) and PARTIES (Protected Area Run Time Interface Extension Services) are described in [http://www.t13.org/project/d1367r3-PARTIES.pdf this T13 working draft]. There is a more general introduction to PARTIES on the [http://www-1.ibm.com/support/docview.wss?rs=0&uid=psg1MIGR-51248&loc=en_US IBM site].
 
 
 
Basically, what seems to be going on is that the Phoenix BIOS hides the last few gigabytes of the harddisk (that is the HPA) to the OS. Note that this is just a setting in the BIOS and can be disabled. The HPA can be accessed by pressing the [[Access IBM Button]] at boot time. The BIOS will then parse the BEER (128 bytes, situated in the last sector of 512 bytes of the harddisk) and the "Directory of Services" (consisting of directory entries of 64 bytes each, starting in the last sector and spilling over into the previous sectors) to see what part of the HPA should be launched. In (most?) ThinkPads the BEER tells the BIOS to launch the Access IBM Predesktop Area. The system will then actually be booting into a (minimal) DOS which is able to launch a graphical shell (called Phoenix FirstSight). IBM has simply rebranded this graphical shell to the Access IBM Predesktop Area. From this graphical shell one can launch several tools (BIOS Setup Utility, diagnostic tools, recovery tools).
 
 
 
==Three BIOS options==
 
The BIOS has three settings for the "IBM Predesktop Area" (in the Security category):
 
*Secure: No user or SW-initiated changes
 
*Normal: Change allowed; Contents hidden from OS
 
*Disabled: Not Usable. Visible and Reclaimable
 
 
 
Normal and secure seem to behave identical when using GNU/Linux. Maybe changes are possible in "Normal" mode using an MS Windows application. With "Disabled" you can even remove the HPA.
 
 
 
==Details of the HPA==
 
Fabrice Bellet describes a [http://bellet.info/laptop/t40.html#the_predesktop_area technique he used] to explore the HPA of his ThinkPad T40, using GNU/Linux tools. This technique is only for the more curious or more careless people. It uses "dd" to copy the sectors on the harddisk containing the HPA from "/dev/hda" to a new file: when using "dd" on "/dev/hda" you are only one small typo away from an unrecoverable disaster!
 
 
 
Here follows a more detailed description of the HPA on a ThinkPad T41 (60 GB harddisk) to contrast his findings.
 
 
 
On this ThinkPad T41 the HPA is 3,4 GB in size. It contains 8 consecutive PSAs (Protected Service Areas). Six of those start with an x86 boot sector.
 
 
 
* The first PSA is 3,2 GB in size. The OEM-ID of the boot sector is: "IBM  7.1". It seems to hold a copy of the preloaded OS and everything needed to generate a bootable DVD-ROM for it, even an El Torito boot image and a boot catalog: see [[Backing up the preloaded OS]].
 
 
 
* The second PSA is exactly 2 MB in size. According to its entry in the Directory of Service it's the "BIOSWORKAREA".
 
 
 
* The third PSA is only 7,4 MB in size. The OEM-ID of the boot sector is: "MSWIN4.1". It seems to be an image of a 1,44 MB bootable floppy disk (with MS DOS) and a directory containig 6 MB of FirstWare tools. It will be launched by the "Recover to factory contents" tool of the Predesktop Area. Those "factory contents" should be the data on the first PSA.
 
 
 
* The fourth PSA is only 1,4 MB in size. The OEM-ID of the boot sector is: "IBM  7.1". It too seems to be an image of a (sort of) 1,44 MB bootable floppy disk. It will be launched by the "Restore your backups" tool of the Predesktop Area.
 
 
 
* The fifth PSA is again 7,4 MB in size. The OEM-ID of the boot sector is: "IBM  7.0". It will be launched by the "Run diagnostics" tool of the Predesktop Area.
 
 
 
* The sixth PSA is also 7,4 MB in size and the OEM-ID of the boot sector also is: "IBM  7.0". It will be launched by the "Create diagnostic disks" tool of the Predesktop Area. It contains a copy of a (sort of) bootable 1,44 MB floppy disk, some tools and compressed copies of the diagnostic disks.
 
 
 
* The seventh PSA is only 1,4 MB in size. The OEM-ID of the boot sector is "PHOENIX". It seems to be a copy of a (sort of) 1.44 MB bootable floppy disk too and only contains a (minimal) DOS and the FirstSight application. Basically, this is the Access IBM Predesktop Area.
 
 
 
* The eigth PSA is 101 MB in size. It doesn't have a boot sector. It contains the FirstWare Reserved Area. That probably is some sort of swap space for the FirstWare system.
 
 
 
==How to remove it==
 
There's a BIOS setting in my T42p. After disabling the Predesktop Area, it's possible to remove the partition with standard tools. i.e. fdisk, mkfs, ...
 
 
 
'''WARNING'''
 
Removing the HPA is simple to effect, but may result in your not being able to access the machine's BIOS. After removing the HPA on my x40, I can still dual boot into Windows and Linux without incident, but attempting to access the BIOS yields only a message "Missing operating system." So tread carefully.
 
 
 
==Alternative uses?==
 
It might be possible to use the FirstWare tools included in the HPA to make the HPA more useful for GNU/Linux purposes. For instance, the copy of the preloaded OS could be replaced with an emergency backup of your GNU/Linux distribution. Maybe the Predesktop area could be even used to boot into a GNU/Linux rescue system. Whether the Phoenix propietary tools really allow alternative uses and whether those tools do not make it too hard to accomplish those cannot yet be said. It seems realistic to assume that the benefits of those alternative uses aren't worth the effort to accomplish them. Still, it might be fun (altough possibly hazardous to your system) to try ...
 
 
 
 
 
==Related links==
 
*[http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-46023 Predesktop Area white paper]
 
*[http://www-3.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-46025 Predesktop Aministrator Utility (DOS)]
 
*[http://webstore.ansi.org/ansidocstore/product.asp?sku=ANSI+INCITS+346-2001 Protected Area Run Time Interface Extension Services (PARTIES) ANSI INCITS 346-2001 ($18)]
 
*[http://www.phoenix.com/NR/rdonlyres/7465D3CF-B0E3-4F64-9122-47D9C83028D0/0/cme_firstware_wp.pdf Phoenix FirstWare White Paper]
 
*[http://www.win.tue.nl/~aeb/linux/Large-Disk-11.html Section 11 of the Large Disk HOWTO (Clipped disks)]
 
 
 
 
 
==Models featuring this Technology==
 
*ThinkPad {{R40}}, {{R50}}, {{R50e}}, {{R50p}}, {{R51}}, {{R52}}
 
*ThinkPad {{T40}}, {{T40p}}, {{T41}}, {{T41p}}, {{T42}}, {{T42p}}, {{T43}}, {{T43p}}
 
*ThinkPad {{X31}}, {{X32}}, {{X40}}, {{X41}}
 
 
 
 
 
[[Category:Glossary]]
 

Latest revision as of 12:31, 13 November 2005

Redirect to: