RedHat Linux 8.0 on a Dell Latitude C400

This page documents my experiences getting RedHat Linux 8.0 (Psyche) working on my Dell Latitude C400 laptop. If you're interested in doing this, you should also take a look at these other pages about this machine: Some other pages I found useful are the following: Overall Linux works very nicely on this machine -- it's a vast relief after attempting to use the bewildering Windows XP for a few hours. Windows is mighty pretty, but I can't work out how to make it do anything. Like, for example, where is the editor? Every operating system has to have an editor of some sort, right? Wrong.

Anyway, Linux runs well on the Dell, with only one caveat. Suspend-to-RAM, which used to work on this machine in RedHat 7.3, is partially broken in version 8.0. (It only works if you do a suspend-to-disk first.) No one really appears to know why this is, but it's widely reported. Other than that, everything works.

As usual, these notes are merely a document of things that worked for me. There's no guarantee they will work for you, and there are some things you could do while installing Linux that would really mess up your computer bad. I'm not aware of anything that will do that other than flashing your BIOS, which I don't recommend, but hey, you never know. You have been warned. All opinions expressed here are those of the author and have nothing to do with the University of Michigan. Obviously.

Installation

Installation was smooth, but it's a little complicated if you want to use suspend-to-disk. (If you don't, it's trivial.) To use suspend-to-disk with this machine you need to create a special partition that will store the contents of the system memory when you suspend. To do this Dell provides a utility called mks2d, which you can download from their support website here. Here's what you do. First use a utility like DOS fdisk (which comes on the RedHat CDs) to delete any existing partitions on the hard drive (thereby, usefully, getting rid of Windows in the process; if you want to keep Windows, you can always reinstall it from the CD afterwards). Then boot from floppy and run mks2d. The program can recommend a size for the suspend partition, or you can set it yourself. I had read that the automatic calculation was not entirely reliable, so I set it myself to 550MB, which should be plenty on my 512MB machine -- the recommended value was about 540MB. You do this by typing mks2d -p550M at the DOS prompt. This creates a suspend partition that will appear as /dev/hda1 in Linux-world.

Next, plug in the external CD-ROM drive that comes with the machine, put the first RedHat CD in it, and reboot. While the system is rebooting press F12 which will pull up the boot menu. Select "CD/DVD/CD-RW Drive" to boot from the CD. Then RedHat will boot and go into the standard installation routine. It is safe to select the default graphical install. Things all proceed as normal. Select "2-button PS/2 mouse" for the pointing device. Click on the "Emulate 3 buttons" box if you want pressing both buttons to be like the middle button on a 3-button mouse.

When you get to the part about partitioning the disk, you may want to do a manual partitioning yourself. The first partition is used up by the suspend-to-disk. The second one should be your /boot partition, for which 100MB is ample. Then I made a swap partition of 1GB, and two filesystem partitions together in an extended partition, one for / and one for /home. I used ext3 for everything, which is the RedHat default. I made / generously large -- about 10GB. I did a full install of all packages which is about 5GB in this version of RedHat, but the OS gets bigger with each version, so it pays to allow plenty of room for later upgrades.

The installer will also ask you where you want to put the boot loader. As far as I know you can use either Grub or Lilo (I used Lilo), but it must be installed on the boot record of your /boot partition (which is probably /dev/hda2) if you made a suspend-to-disk partition as described above. The default behavior is to put the boot loader on the Master Boot Record (MBR) at the beginning of the disk, but if you do this, it will break suspend-to-disk. So don't. Select the option to put it on the /boot partition. The installer will automatically set the bootable flag for the /boot partition, so that the computer will know to boot from that partition and not from the Master Boot Record. (You can make it work if you install the loader on the MBR, but it requires you to set up extra boot options in the loader to allow you to choose whether to boot from the suspend partition or the /boot partition, and you also have to remember for yourself how you last shut the machine down -- see here. This sounds like a real pain. If you just install the loader on /boot then everything will be automatic.)

Select the packages you want, and watch it go. It takes about an hour to install everything. Then it'll ask you about X configuration. At this point select 8-bit color. This is important. We choose 8-bit at this point, and switch to 24-bit later. If you select anything other than 8-bit during the install, X will not work. This is because the default version of X only supports 8-bit color on this machine. You have to upgrade to a newer version as described below to get the 24-bit support. Also select the Dell 1024 laptop panel as your display.

Note that the CD-ROM drive and the floppy both use the same port on the side of the Dell, and you can't unplug the CD-ROM and plug in the floppy in mid-install. So you'll have to skip making a boot floppy. If you want to make one, then wait until you have the install complete and the machine's up and running, then su root and run mkbootdisk.

When the install is done, reboot the machine and you should have a pretty complete working system.

Tricks