Talk:Hidden Protected Area

From ThinkWiki
Revision as of 11:27, 7 January 2007 by Pebolle (Talk | contribs) (Description of the files of a FirstWare HPA backup image file set)
Jump to: navigation, search

There is conflicting information on this page. In the introductory paragraph it says "The HPA was introduced with the R/T/X 40 series of ThinkPads." But on the bottom the X3x models are also linked as having this technology. What is right? --Rolf 12:30, 19 October 2006 (CEST)

Also I know an R50e machine, that has Rescue and Recovery on a Compaq Diagnostics partition. So it shouldn't be listed either on the bottom of the page. I'm just not too sure, if I understand those technologies correctly, so I hesitate to remove it.

Removing item "Accessing the HPA from Linux"

I've checked the fwdir code (http://colimit.googlepages.com/fwdir.zip). This code works on a Hidden Partition (is that the same as a R and R or yet another Predesktop variant?). This code can not work with real HPAs.

I suggest we remove this section in an week or so (or move it to the discussion section) unless further info regarding those Hidden Partition is provided.

Paul Bolle 01:08, 4 January 2007 (CET)

The fwdir page is quite clear that it does not access HPAs, but rather hidden partitions. I don't know if an HPA and a phoenix HP partition have the same internal layout (they could, and it would make sense; a partition does not have to contain a filesystem, it could contain an HPA image just as easily). Also, I have no idea if IBM ships the HPA as unpartitioned area, or as a hidden partition...

If you know the answer to the two implied questions above, you know what to do.

--hmh 03:22, 5 January 2007 (CET)

FirstWare Image Backup span file format

FWBACKUP creates an image set (a set of span files) of a Phoenix FirstWare HPA. FWRESTOR uses these span files to restore an HPA beckup image. (See the Predesktop Area white paper for usage information for FWBACKUP and FWRESTOR.) The format of a span file is straightforward.

Each span file consists of a plain (not compressed, not encrypted) copy of a number of (512 byte) sectors of the HPA. It is preceded by a 512 byte header.

The format of this 512 byte header is:

bytes   description
 0-  7  magic ("fwbackup")
 8-  9  1 (LSB first) # version number?
10- 11  span file number, one based (LSB first)
12- 13  number of span files in image set (LSB first)
14- 17  number of sectors in span file (LSB first)
18- 21  number of sectors in image set (LSB first)
22- 25  last sector of HPA on the original hard drive, zero based (LSB first)
26- 29  first sector of HPA on the original hard drive, zero based (LSB first)
30- 37  unused
38- 53  checksum # MD5? checksum of what exactly?
54-511  unused

Only bytes 10-11, 14-17 and 38-53 are unique for each span file. All other bytes of the header should be equal for all span files in an image set.

This magic entry for file(1) can be used to identify the files part of an Phoenix FirstWare HPA backup image file set:

# File magic for Phoenix FirstWare HPA backup image
0       string          fwbackup        FirstWare HPA backup image
# >8    leshort         # x             , version %d ???
>26     lelong          x               (first disk sector of HPA: %d,
>22     lelong          x               last disk sector of HPA: %d)
>14     lelong          x               %d of
>18     lelong          x                %d image sectors
>10     leshort         x               (span file %d
>12     leshort         x                of %d)

Paul Bolle 11:27, 7 January 2007 (CET)