Difference between revisions of "Rescue and Recovery"
(grub4dos entry still unfixed. I'm removing it now.) |
(add info on R&R for T23, T30, bmgr.exe) |
||
Line 18: | Line 18: | ||
*the default MBR seems to ignore the active bit and always boots the first partition instead | *the default MBR seems to ignore the active bit and always boots the first partition instead | ||
*the default MBR contains code to catch a press of the appropriate button during bootup and boot the R&R partition in that case | *the default MBR contains code to catch a press of the appropriate button during bootup and boot the R&R partition in that case | ||
− | *before booting the R&R, the default MBR changes | + | *before booting the R&R, the default MBR changes its partition type to 0x0b, otherwise it changes it to 0x12 (to hide it from Windows) |
*the R&R software assumes that the first partition contains Windows | *the R&R software assumes that the first partition contains Windows | ||
*the R&R partition needs to be of type 0x0b (FAT32) for the R&R software to work | *the R&R partition needs to be of type 0x0b (FAT32) for the R&R software to work | ||
Since neither LILO nor GRUB can catch the press of the button (an undocumented mechanism anyway) it is not possible to invoke Rescue and Recovery by pressing the appropriate button during system boot, once LILO or GRUB have altered the MBR for their boot procedure. | Since neither LILO nor GRUB can catch the press of the button (an undocumented mechanism anyway) it is not possible to invoke Rescue and Recovery by pressing the appropriate button during system boot, once LILO or GRUB have altered the MBR for their boot procedure. | ||
+ | |||
+ | The IBM provides a program to manage the R&R MBR. It is located in {{path|C:\Program Files\IBM ThinkVantage\Common\BMGR}}. It can select the partition to boot, and also allows for rewriting the R&R MBR if it was overwritten. | ||
===GRUB in the MBR=== | ===GRUB in the MBR=== | ||
− | You can, however, boot the Rescue and Recovery partition from within a GRUB residing in your MBR. However if you leave its | + | You can, however, boot the Rescue and Recovery partition from within a GRUB residing in your MBR. However if you leave its partition's type to 0x12 (Compaq diagnostics), this will result in an error message "c000021a, Fatal System Error" if you try to boot it. To avoid that and to make sure the recovery partition always is of the right type, add a line to change the partition type to 0x0b to the recovery partition's entry in your {{path|/boot/grub/menu.lst}}. Assuming your recovery partition is the second partition, it should look like this: |
title IBM Rescue and Recovery | title IBM Rescue and Recovery | ||
root (hd0,1) | root (hd0,1) | ||
Line 32: | Line 34: | ||
chainloader +1 | chainloader +1 | ||
− | We also add an <tt>unhide</tt> line here because we are going to hide the recovery partition on every boot of Windows, so we need to unhide it, when the recovery partition is booted. This is because if we | + | We also add an <tt>unhide</tt> line here because we are going to hide the recovery partition on every boot of Windows, so we need to unhide it, when the recovery partition is booted. This is because if we don't hide the partition when booting Windows, it would be visible and accessable there and that's not what we want. So, assuming that Windows is on the first partition, the Windows entry should now look like this: |
title Windows | title Windows | ||
root (hd0,0) | root (hd0,0) | ||
Line 38: | Line 40: | ||
chainloader +1 | chainloader +1 | ||
− | Now you should be able to boot the R&R partition from | + | Now you should be able to boot the R&R partition from within GRUB, residing in your MBR. |
===GRUB in a partitions boot sector=== | ===GRUB in a partitions boot sector=== | ||
Line 44: | Line 46: | ||
{{NOTE|If the above finding is true that the MBR ignores the active bit, that partition has to be the first one.}} | {{NOTE|If the above finding is true that the MBR ignores the active bit, that partition has to be the first one.}} | ||
*In the BIOS, set the IBM Predesktop Area to 'Secure'. | *In the BIOS, set the IBM Predesktop Area to 'Secure'. | ||
− | *Boot your Linux | + | *Boot your Linux distribution's installation CD. |
*Follow the instructions and go through the regular installation process. | *Follow the instructions and go through the regular installation process. | ||
*Create a primary partition for /boot (the other stuff can go into the extended partitions) and when the time comes to install GRUB, make sure you install it into the boot sector of the boot partition. | *Create a primary partition for /boot (the other stuff can go into the extended partitions) and when the time comes to install GRUB, make sure you install it into the boot sector of the boot partition. | ||
*Set this partition as active. Leave the MBR alone. | *Set this partition as active. Leave the MBR alone. | ||
+ | |||
+ | ==Older versions of Rescue and Recovery== | ||
+ | Some Thinkpads (e.g., T23 and T30) do not come with a Recovery CD, but also do not support the [[Hidden Protected Area]]. These ThinkPads have an older version of Rescue and Recovery preloaded on the hard disk to implement the factory recovery function. Most of the comments above also apply to the older versions, with the following differences: | ||
+ | *The recovery partition type is 0x1c, hidden FAT32, (or 0xc when unhidden). | ||
+ | *The boot manager program is in {{path|C:\IBMTOOLS\RECOVERY}} and only runs in a 16-bit DOS environment | ||
+ | *The IBM Predesktop area runs atop of Windows 98 (command-line) instead of WinPE | ||
==External Sources== | ==External Sources== | ||
* IBM page on [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4Q2QAK ThinkVantage Rescue and Recovery]. | * IBM page on [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4Q2QAK ThinkVantage Rescue and Recovery]. | ||
* [ftp://ftp.software.ibm.com/pc/pccbbs/thinkvantage_en/tvtrnr3_1027en.txt Rescue and Recovery Readme] | * [ftp://ftp.software.ibm.com/pc/pccbbs/thinkvantage_en/tvtrnr3_1027en.txt Rescue and Recovery Readme] | ||
− | * [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-46088 | + | * [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-46088 IBM page about accessing the Recovery Partition if Linux has been installed and the F11 button no longer works] |
* [http://sharadware.com/2005/07/11/suse-linux-winxp-access-ibm-on-the-thinkpad-t43/#comment-165 original GRUB R&R boot success report on SharedWare] | * [http://sharadware.com/2005/07/11/suse-linux-winxp-access-ibm-on-the-thinkpad-t43/#comment-165 original GRUB R&R boot success report on SharedWare] | ||
* [http://sharadware.com/2005/07/11/suse-linux-winxp-access-ibm-on-the-thinkpad-t43/ how to keep the AccessIBM functionality] | * [http://sharadware.com/2005/07/11/suse-linux-winxp-access-ibm-on-the-thinkpad-t43/ how to keep the AccessIBM functionality] | ||
Line 58: | Line 66: | ||
==Models featuring this technology== | ==Models featuring this technology== | ||
+ | * ThinkPad {{T23}}, {{T30}} (R&R 2.0) | ||
* ThinkPad {{T42}} | * ThinkPad {{T42}} | ||
* ThinkPad {{T43}}, {{T43p}} | * ThinkPad {{T43}}, {{T43p}} |
Revision as of 21:21, 1 May 2006
Rescue and RecoveryRescue and Recovery version 3.0 consists of a bootable partition containing various system recovery tools, including full recovery of the preinstalled Windows XP partition. It can be activated by pressing the ThinkPad, Access IBM or ThinkVantage Button during system boot. It contains a FAT filesystem (labeled "IBM_SERVICE"), and has partition type 0x12 ("Compaq diagnostics" in fdisk). As opposed to a Hidden Protected Area Recovery partitions are ordinary partitions, accessible through the partition table. As they are ordinary partitions they are accessible by ordinary partitioning tools. They should be dealt carefully with. |
Proper MBR
Consideration 6 of the Readme states:
"The Master Boot Record (MBR) must be configured properly for the Rescue and Recovery application to function properly. When possible, the Rescue and Recovery application attempts to ensure the proper configuration of the MBR. This can only occur if the Rescue and Recovery application is installed after other applications that requires the MBR."
Apparently, the MBR is not "configured properly" if LILO or GRUB has been installed in it as the following is the case:
- the default MBR seems to ignore the active bit and always boots the first partition instead
- the default MBR contains code to catch a press of the appropriate button during bootup and boot the R&R partition in that case
- before booting the R&R, the default MBR changes its partition type to 0x0b, otherwise it changes it to 0x12 (to hide it from Windows)
- the R&R software assumes that the first partition contains Windows
- the R&R partition needs to be of type 0x0b (FAT32) for the R&R software to work
Since neither LILO nor GRUB can catch the press of the button (an undocumented mechanism anyway) it is not possible to invoke Rescue and Recovery by pressing the appropriate button during system boot, once LILO or GRUB have altered the MBR for their boot procedure.
The IBM provides a program to manage the R&R MBR. It is located in C:\Program Files\IBM ThinkVantage\Common\BMGR. It can select the partition to boot, and also allows for rewriting the R&R MBR if it was overwritten.
GRUB in the MBR
You can, however, boot the Rescue and Recovery partition from within a GRUB residing in your MBR. However if you leave its partition's type to 0x12 (Compaq diagnostics), this will result in an error message "c000021a, Fatal System Error" if you try to boot it. To avoid that and to make sure the recovery partition always is of the right type, add a line to change the partition type to 0x0b to the recovery partition's entry in your /boot/grub/menu.lst. Assuming your recovery partition is the second partition, it should look like this:
title IBM Rescue and Recovery root (hd0,1) parttype (hd0,1) 0x0b unhide (hd0,1) chainloader +1
We also add an unhide line here because we are going to hide the recovery partition on every boot of Windows, so we need to unhide it, when the recovery partition is booted. This is because if we don't hide the partition when booting Windows, it would be visible and accessable there and that's not what we want. So, assuming that Windows is on the first partition, the Windows entry should now look like this:
title Windows root (hd0,0) hide (hd0,1) chainloader +1
Now you should be able to boot the R&R partition from within GRUB, residing in your MBR.
GRUB in a partitions boot sector
A way to have your Access IBM button still functional on bootup, is to create a separate /boot partition, install GRUB to that partition and make it active.
- In the BIOS, set the IBM Predesktop Area to 'Secure'.
- Boot your Linux distribution's installation CD.
- Follow the instructions and go through the regular installation process.
- Create a primary partition for /boot (the other stuff can go into the extended partitions) and when the time comes to install GRUB, make sure you install it into the boot sector of the boot partition.
- Set this partition as active. Leave the MBR alone.
Older versions of Rescue and Recovery
Some Thinkpads (e.g., T23 and T30) do not come with a Recovery CD, but also do not support the Hidden Protected Area. These ThinkPads have an older version of Rescue and Recovery preloaded on the hard disk to implement the factory recovery function. Most of the comments above also apply to the older versions, with the following differences:
- The recovery partition type is 0x1c, hidden FAT32, (or 0xc when unhidden).
- The boot manager program is in C:\IBMTOOLS\RECOVERY and only runs in a 16-bit DOS environment
- The IBM Predesktop area runs atop of Windows 98 (command-line) instead of WinPE
External Sources
- IBM page on ThinkVantage Rescue and Recovery.
- Rescue and Recovery Readme
- IBM page about accessing the Recovery Partition if Linux has been installed and the F11 button no longer works
- original GRUB R&R boot success report on SharedWare
- how to keep the AccessIBM functionality
- IBM Rescue & Recovery repair diskette