ZOIS *
Technical Notes
ZOIS Technical Note TN-2002-11-01.
Author and Audience
This TN is intended for owners of the IBM ThinkPad 570[1] who may be contemplating or in the middle of an upgrade
to Threads Linux 7.3 (the fully free Red Hat 7.3). Written by Martin
Sullivan[2], ZOIS Limited, Cockermouth.
Abstract
The IBM ThinkPad 570 is a two year old laptop from the largest
computer company in the world and a particular expample has been the
authors constant companion for that length of time. A hard disk failure
requried it to be upgraded to a later version of Linux (it had been at
Red Hat 6.2) and have Windows 95 reinstalled. The Linux, including the
installation of a Linux compatible Winmodem driver, went by the book.
Reinstalling Windows was slightly more problematic.
Introduction
The trusty IBM ThinkPad 570 (TP570) has been a constant companion
for some two years now. It has withstood some physical abuse, but as
is the way with such things, it suffered a hard-disk failure and thus an
upgrade was necessary. Physically this was no great deal. A new disk was
bought and since it was found, that under Linux, some Java programs tend
to be very memory-hungry an extra 128 MBytes of memory was purchased
too. With these two items installed as per the handbook it was time to
install/reinstall software.
Materials and Platform
IBM ThinkPad 570, Type 2644-3AG. IBM ThinkPad UltraBase
equipped with a CD-ROM drive. Software on CD, product
recovery disks for Windows 95 (IBM supplied), Threads Linux 7.3.
Method
It was decided to reinstall the as-distributed Microsoft Windows
system in a 2 GByte patition of the single new disk. The rest could then be
dedicated to Linux. In the light of experience, as you will read, Linux
should be installed first, but the partition that the Windows recovery
disk uses has to be the first one. The inital disk partitioning should
therefore take this into account.
Installing Linux
The Linux distribution chosen for this was Threads 7.3. Threads Linux is Red Hat's[3] `free' distribution provided by The Linux Emporium[4]. Threads Linux is so called for it does not contain official Red Hat goodness and the name "Red Hat" is cherished, a trademark that we duly acknowledge (as we indeed acknowledge everything that might be a trademark). As you might guess, Threads Linux 7.3 approximates to Red Hat 7.3.
Since this was a new installation on a relatively well known and common PC the installation went by the book. The only point to note was that the initial disk partitioning has to allow DOS/Windows to be installed on the first partion (see the Windows Installation section for the reason). The Threads Linux install uses Disk Druid as its partitioning program and this too is easy.
The Linux fdisk(8) command reports the following when asked to print the disk partition table (command 'p');
Disk /dev/hda: 240 heads, 63 sectors, 2584 cylinders Units = cylinders of 15120 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 277 2094088+ 6 FAT16 /dev/hda2 278 284 52920 83 Linux /dev/hda3 285 2532 16994880 83 Linux /dev/hda4 2533 2584 393120 f Win95 Ext'd (LBA) /dev/hda5 2533 2584 393088+ 82 Linux swap |
Disk Druid insisted that the Linux Swap partion be in a Extended Partion.
After all the standard things had been done a number of `extras' were
installed for Linux on the ThinkPad. See the section on this.
Reinstalling Windows
While Linux proved to be a relatively simple affair (see above) re-installing Windows proved to be somewhat harder. The ThinkPad is provided with two "Product Recovery" CDs, one bootable and the other not. A special floppy disk is also provided to boot the machine if one uses the non-bootable CD. The bootable CD booted to DOS and then ran some cursory checks. Finding that it didn't recognise the newly installed hard-disk it terminated the install. It was found that the boot floppy was corrupt and so the alternative path of booting from floppy and then using the other CD didn't work either. Unfortunately it appears that this floppy contains more than just a bootable DOS, and simply subsituting it with one that did boot didn't get the process any futher.
The "Product Recovery" CDs were examined elsewhere and discovered to contain large ZIP files full of Windows programs. A DOS partition was prepared and formatted on the ThinkPad after booting from a special floppy prepared on another machine complete with the DOS programs FORMAT and FDISK.
Having installed Linux on the ThinkPad and mounting this DOS
filesystem in Linux, these recovery CD files were then unzipped into
it. This partition then proved to be bootable but the installation failed
further into the boot sequence. After some experiment, which involved
re-installing Linux, it was found that this process will only work if
the ZIP files are unloaded into the first partition on the disk. The
initial boot process could then proceed. At this point the Windows 95
activation key was prompted for. The key supplied on the front of the
Windows book was entered but failed, the book was for Windows 98. It
would seem that an incorrect book or CDs were shipped. Fortunately the
Windows activation key for another copy of Windows 95 worked and one
could proceed to reload this legitimate copy of Windows.
Extras for Linux - Modem
The most important `extra' is the installation of a driver for the Winmodem that the ThinkPad is equipped with. Winmodems are modems which, for the sake of cost, have only part of their functionality held in firmware. They rely for the rest on the machine's main CPU and specialised software. The specialised software is ususally binary only, contains proprietery information and code and is only available under Microsoft Operating Systems. Since Laptops are practically universely equipped with Winmodems their internal modems are all but useless with third-party Operating Systems, such as Linux. The IBM ThinkPad 570 is no exception, but fortunately has a Lucient Winmodem chip-set. A `binary' only driver exists for this, kindly provided by Lucient, as a compiled object for Linux. This driver has been incorporated into an appropriate kernel `mod' for a variety of Linuxes by Chrisoph Hebeisen[5] amongst others.
To avoid clashes a package that precisely matched the kernal provided
by Threads Linux 7.3, 2.4.18-3, was downloaded[6]
and installed as per the read-me file without problems. This modem
works fine with previously defined Point-to-Point Protocol (PPP)
and IP Chains firewall scripts. Those previous PPP settings
reduced the Maximum Transmission Unit (MTU) size to 552 bytes (512 +
header size) and this was left in the new configuration. This smaller
MTU size (the default is something like 1500 bytes) had been found
to increase through-put on noisy lines and reduced connection failures,
particularly with sendmail(8).
Extras for Linux - Other Stuff
Dag Wieërs has published a number of "How To Pages" on ThinkPads[8] one of which covers Linux on TP570s.
Conclusion
The ThinkPad in question, a 570, is succesfully being used under
Linux (Red Hat 7.3); infact this TN was written on it. Windows 95 is
there if required and Linux can use the internal modem. Not detailed in
this technical note is the configuration necessary to use the modem to
connect to an ISP. This may be the subject of another TN, but for now
(2002-11-01) is left as an exercise for the reader.
References
$Date: 2009/12/06 11:27:50 $