Alright, here's how I did it, I wonder if I should write this in a dedicated topic.
Eventually I can just copy-paste the post in another thread.
How to restore your X20 with a USB CD ROM.
There are three types of USB CD ROM, Thinkpad wise.
A - Not recognized by the BIOS, not working even with DOS drivers: I have one of these and I'm afraid that it is trying to pull too much current from the USB port, so it is not working properly. Nothing that can be done.
B - Not recognized by the BIOS, working with DOS drivers: if you try to boot it from the BIOS it won't work, but if you load the drivers from DOS then it will work.
C - Recognized by the BIOS, working with DOS drivers: BIOS boots off the CD, but then you'll need either the built-in drivers of the recovery CD or custom drivers.
Unfortunately you'll need a USB CD ROM of the C type for this.
If it is supported by the drivers supplied with the recovery CD, then you're set.
If not, read on...
Other than the CD drive, unfortunately the only accessible drive you have in DOS is the Hard Disk.
The IBM Thinkpad Transnote Recovery CD will work fine with the X20, you'll just have some extra programs which are related to the touchscreen that you can remove after you've completed the recovery.
They both have the exact same hardware, minus the touch screen.
To start off, you'll have to format the internal X20 hard disk to FAT32 and copy the USB CD ROM DOS drivers you need.
You can find them here:
USBASPI.sys
https://hddguru.com/software/2006.02.09 ... OS-Driver/
usbcd*.sys
https://www.hiren.info/downloads/dos-files
You're going to need both of them.
There are several usbcd*.sys files, you have to discover which one works with your drive.
We're also going to need an app to nuke the whole MBR, you can get it here:
http://support.fccps.cz/download/adv/frr/wipembr.html
Remove the hard drive from the X20, plug it into a PC/Mac with a IDE-to-USB adapter and format it with a MBR style partition table and a FAT32 partition.
_______________________________REPEAT____________________________________
| Copy USBASPI.sys, all the usbcd*.sys and wipembr.exe from your PC/Mac to the X20 Hard Drive.
|
| Put the HD back into the X20, plug your CD drive and start the machine with the Recovery CD in.
| When it boots, make sure that you go into the BIOS and put both CD ROM and External Device before the HD in the boot order.
| Save and reboot.
| Your X20 should boot from the CD. If it doesn't (like mine), press CTRL+ALT+DEL to reboot and now it should work (don't ask).
|
| Choose any CD Drive from the menu, it won't matter, you'll end up in a command prompt because it cannot find a useable CD drive.
| Now, first thing, you have to load the ASPI driver.
|
| and press Enter when it asks.
| It should scan your USB devices and pick up your CD Drive.
| Sometimes it fails throwing an error.
| If it does, try again and the second or third time should work.
|
| Now you have to try the various usbcd*.sys drivers
|
Code: Select all
dynaload C:\usbcd1.sys /D:oemcd001
| You should either see your CD drive or something like "nothing found" or an error.
| Keep trying the various usbcd*.sys until you find one that works for you.
|
| After that
|
| And now you should be able to access the CD Drive.
|
| Now we have to restart the recovery CD but not from the start:
|
| Now press SHIFT and keep it pressed and start pressing the down arrow to select everything until you reach the line above ":NOWGO".
| Press Delete to delete everything you've selected.
| Press ALT+F and S to save.
| Press ALT+F and X to exit.
_______________________________REPEAT____________________________________
Now a very important part which drove me crazy because the recovery wasn't working for me: we have the zero out the MBR of the hard drive or the recovery program won't be able to correctly make the partitions and recover everything.
Copy wipembr.exe to the Smart Drive you're on (it should be either D: or E: or something like that. You can see it on the screen.)
(if needed, replace D: with the smart drive letter)
Launch wimpembr
Now you have to select the correct drive (it should be "80", but check carefully) and then the option "d".
_______________________________REPEAT____________________________________
| Finally we can start the recovery process again.
|
_______________________________REPEAT____________________________________
It will start the recovery process and, unfortunately, throughout the process you'll have to reboot several times.
And every time you reboot you'll have to copy the USB CD drivers to the hard disk (because it's probably going to be wiped) and load them again.
Did you see the _REPEAT_ thing?
That's the steps you'll have to redo at every reboot.
Eventually everything should be finally restored, including the hidden partitions.
EDIT: wanted to add that this process should work with all Thinkpads that don't have a CD drive and are old enough that have issues booting natively from CD and you have to install Windows 98.
If you have a USB Floppy drive that is recognized and works this is all much simpler as you can just put the USB CD Drives on the floppy and modify the autoexec.bat accordingly.