Linux Thinkpad R40 (2897-54U)
2003-08-02
The Hardware

- Weight about 6.3 lbs.
- 1.3 GHz Pentium M
- 256 MB
- 15 inch display, XGA (1024 x 768)
- 40 GB hard disk
- CD-RW/DVD ROM
- Intel "PRO" 802.11b Wireless
- Windows XP
Installing Dual Boot Linux/Windows XP
This is a major hurdle because
- The hard disk has a single partition for Windows
- The hard disk gets formatted to NTFS on first boot
- There is no floppy drive
Here is what I did:
- Download the ISO for a Knoppix
disk.
- Wretched Windows XP can't burn a CD from an ISO file. How lame is
that? Install the ISO Recorder
"Power Toy" and burn the Knoppix disk.
- I ran the Windows XP defragmenter. There was nothing to
defragment, but
it was instructive to see the file layout--a big file about half-way on
the hard disk that the defragmenter didn't want to move. Maybe the swap
file?
- I didn't follow J.
Hall's suggestion to turn off swap in Windows XP, but perhaps I
should have--I believe it would have given me more space for the Linux
partition.
- Enough of Windows--boot into Knoppix.
- I tried to use QTParted to resize the NTFS partition, but it
failed with an enlightening message "An error has occurred."
- I then followed the manual
instructions for running ntfsresize. Worked like a charm. I got
about 17GB for Linux.
- I installed Red Hat 9 (Shrike). Red Hat didn't detect the laptop
screen, so I had to use the text-based installer. At the end of the
installation, tell Red Hat that you have a Generic LCD Panel (1024 x
768), and that you want 24-bit color and 1024 x 768 resolution.
- If you don't have a flash card reader (see below), also
make a small FAT partition so that you can exchange data between
Windows XP and Linux.
- Following Ed
Park's advice, I told GRUB to use a /boot partition, not the MBR.
My /boot partition seems
to be beyond cylinder 1024, but I didn't have trouble with that.
- I rebooted with Knoppix (since Red Hat isn't quite ready to
boot). Still following Ed
Park's advice, I copied the first 512 bytes of the /boot image to a file. To
overcome the lack of a floppy onto which to save the file, I used a
flash card reader (for my digital camera). Make sure to insert the card
reader before Knoppix boots--it should recognize it as /dev/hde1. Then (as root) issue
mkdir /mnt/flash
mount -t vfat
/dev/hde1 /mnt/flash
dd if=/dev/hda2 of=/mnt/flash/linux.bin
bs=512 count=1
- Reboot into Windows XP (with the flash card reader still in the
slot). Windows XP will wet its pants and tell you to reboot once again
so that it can use the flash card reader.
- In Windows XP, get a shell (Ctrl+Esc, R, cmd, Enter).
copy
e:\linux.bin c:\
attrib -s -r -h c:\boot.ini
edit c:\boot.ini
Now add a line
c:\linux.bin="Linux"
at the end of the file. Save and execute
attrib +s +r +h
c:\boot.ini
- Reboot one more time, and select Linux. GRUB will come up and
load Linux.
What doesn't work
- The wireless networking (Centrino--need I say more?)
- When the display screen blanks out, I can't get the display back
until I put the computer to sleep and wake it up again.
Other Links
Conclusions
- My previous Thinkpad laptop
came preloaded with Linux. It was great. It is really too bad that this
machine is such a pain to set up. My last four laptops have been
Thinkpads, but maybe I am ready for a machine that is "built for Linux"
next time.
- For now, don't buy anything that says "Centrino". Intel seems to
have the resources for a huge ad campaign but not to write a Linux
driver for the wireless card.
- Questions? Comments? Corrections? Please email me at cay@horstmann.com .