Difference between revisions of "Installing Gentoo on a ThinkPad 750P"

From ThinkWiki
Jump to: navigation, search
Line 1: Line 1:
 +
__TOC__
 +
----
 +
===Overview===
 
Written by Chris Schumann
 
Written by Chris Schumann
 
c schumann at twp dash llc dot com
 
c schumann at twp dash llc dot com
Line 6: Line 9:
 
In this version of this document, I will tell you how I installed Gentoo Linux on my 750P.
 
In this version of this document, I will tell you how I installed Gentoo Linux on my 750P.
  
'''Requirements'''
+
===Requirements===
 
 
 
You need some RAM. The 750 family all came with 4MB RAM built in. That's fine for DOS, but not a modern OS. You can buy a 32MB DRAM card, bringing up the total to 36MB, which is just enough to run a few useful tasks.
 
You need some RAM. The 750 family all came with 4MB RAM built in. That's fine for DOS, but not a modern OS. You can buy a 32MB DRAM card, bringing up the total to 36MB, which is just enough to run a few useful tasks.
  
Line 16: Line 18:
 
You need another computer. Use this computer to download and make floppy disks and to hold files your 750 will need.
 
You need another computer. Use this computer to download and make floppy disks and to hold files your 750 will need.
  
'''Assumptions'''
+
===Assumptions===
 
 
 
* You have installed Linux before
 
* You have installed Linux before
 
* You have at least read the Gentoo Handbook, or even installed Gentoo
 
* You have at least read the Gentoo Handbook, or even installed Gentoo
Line 26: Line 27:
 
You want a system that works so you can learn Gentoo better and tweak it later, or do it again the way YOU want it done.
 
You want a system that works so you can learn Gentoo better and tweak it later, or do it again the way YOU want it done.
  
'''The Steps'''
+
===The Steps===
 
 
 
Download the bare.i, install.1, install.2, and pcmcia Slackware floppies. Boot the 750 with the bare.i disk. Insert install.1 when it asks for the root disk. Continue with install.2 when prompted.
 
Download the bare.i, install.1, install.2, and pcmcia Slackware floppies. Boot the 750 with the bare.i disk. Insert install.1 when it asks for the root disk. Continue with install.2 when prompted.
  
Line 52: Line 52:
 
Your partition numbers will be different.
 
Your partition numbers will be different.
  
============ This section replaces the Gentoo Handbook sections 5.a to 5.d. ============
+
'''This section replaces the Gentoo Handbook sections 5.a to 5.d.'''
 
On another machine, download a stage tarball. I used stage1-x86-2004.3.tar.bz2. Use bunzip2 on that machine to get a tar file. This is important because the Slackware floppies cannot understand a bz2 file. Put that tar file on a web or ftp server. The Slackware floppies cannot mount an SMB share.
 
On another machine, download a stage tarball. I used stage1-x86-2004.3.tar.bz2. Use bunzip2 on that machine to get a tar file. This is important because the Slackware floppies cannot understand a bz2 file. Put that tar file on a web or ftp server. The Slackware floppies cannot mount an SMB share.
  
Line 65: Line 65:
  
 
Note that this portage bz2 file was about 18MB, expanded to a 40MB tarball and took about 500MB of disk space because of the huge number of small files.
 
Note that this portage bz2 file was about 18MB, expanded to a 40MB tarball and took about 500MB of disk space because of the huge number of small files.
============
 
  
 +
'''Continue with Gentoo Handbook section 5.e'''
 
Continue with the Gentoo Handbook with Installation section 5.e. Configuring the Compile Options.
 
Continue with the Gentoo Handbook with Installation section 5.e. Configuring the Compile Options.
  
============ Installation Notes ============
+
===Installation Notes===
 
In step 6.a, Chrooting, you must manually set the GENTOO_MIRRORS and SYNC in your make.conf file because mirrorselect is not available.
 
In step 6.a, Chrooting, you must manually set the GENTOO_MIRRORS and SYNC in your make.conf file because mirrorselect is not available.
  

Revision as of 02:30, 28 February 2005


Overview

Written by Chris Schumann c schumann at twp dash llc dot com

I know a lot of you out there either already have an old ThinkPad or have access to cheap ones, or are thinking about what these machines can do. Well, they can run Linux. I plan to make mine an SMB file and print server.

In this version of this document, I will tell you how I installed Gentoo Linux on my 750P.

Requirements

You need some RAM. The 750 family all came with 4MB RAM built in. That's fine for DOS, but not a modern OS. You can buy a 32MB DRAM card, bringing up the total to 36MB, which is just enough to run a few useful tasks.

You need a bigger hard disk. My 750P came with a 170 MEGABYTE hard disk. The 750 with IBM's latest BIOS can handle 8GB of drive capacity. Any OS (such as DOS) that uses the BIOS for disk access can use 8GB of capacity. Linux and other modern OSes can use larger disks (up to 137GiB) but the boot partition must be entirely below the 8GB boundary. A 4GB drive may be large enough for Gentoo. I'm using a 12GB drive.

You need some way to get files on your machine. I used a network card. Specifically, the LinkSys PCMPC200. It's a 16-bit PCMCIA (PC Card) card that does 100Mbps speeds and has native Linux drivers.

You need another computer. Use this computer to download and make floppy disks and to hold files your 750 will need.

Assumptions

  • You have installed Linux before
  • You have at least read the Gentoo Handbook, or even installed Gentoo
  • You are comfortable designing a partition scheme
  • You are using a NIC to install Gentoo
  • You do NOT want a fine-tuned, ultra-tweaked Gentoo installation after this procedure.

You want a system that works so you can learn Gentoo better and tweak it later, or do it again the way YOU want it done.

The Steps

Download the bare.i, install.1, install.2, and pcmcia Slackware floppies. Boot the 750 with the bare.i disk. Insert install.1 when it asks for the root disk. Continue with install.2 when prompted.

Login as root. If you have a 750 or 750P (and its grayscale screen) enter TERM=vt100. Insert your NIC if not done already. Type pcmcia. Configure your card:

ifconfig eth0 $IPADDR broadcast $BCAST netmask $NETMASK

Then make sure you can route to the internet:

route add -net default gw $GTWAY netmask 0.0.0.0 metric 1

Make /etc/resolv.conf to include your DNS servers.

Follow section 4, Preparing the Disks, to partition, format, and mount your disk. Remember to ensure your /boot partition is in the first 1024 cylinders or 8GB. Use mke2fs to format them. Be sure to activate your swap partition using swapon. Compiles will take more memory than my 36MB could handle.

Here's what I did after partitioning:

mke2fs /dev/hda6
mke2fs -j /dev/hda8
mkswap /dev/hda7
swapon /dev/hda7
mkdir /mnt/gentoo
mount /dev/hda8 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda6 /mnt/gentoo/boot

Your partition numbers will be different.

This section replaces the Gentoo Handbook sections 5.a to 5.d. On another machine, download a stage tarball. I used stage1-x86-2004.3.tar.bz2. Use bunzip2 on that machine to get a tar file. This is important because the Slackware floppies cannot understand a bz2 file. Put that tar file on a web or ftp server. The Slackware floppies cannot mount an SMB share.

Get and extract the stage tar archive:

cd /mnt/gentoo
wget http://othermachine/stage1-x86-2004.3.tar
tar -xvpf stage1-x86-2004.3.tar

Also download the most recent version of portage, unzip it and make the tar archive available via http or ftp. Get and extract that file:

wget http://othermachine/portage-20050225.tar
tar -xvf portage-20050225.tar -C /mnt/gentoo/usr

Note that this portage bz2 file was about 18MB, expanded to a 40MB tarball and took about 500MB of disk space because of the huge number of small files.

Continue with Gentoo Handbook section 5.e Continue with the Gentoo Handbook with Installation section 5.e. Configuring the Compile Options.

Installation Notes

In step 6.a, Chrooting, you must manually set the GENTOO_MIRRORS and SYNC in your make.conf file because mirrorselect is not available.

You do not need to "emerge --sync" or "emerge-websync" if you used a recent portage archive earlier. "emerge --sync" will usually timeout because the 750 is so slow. This can be configured, but there's no need to do it just yet.

Choose your USE flags carefully. I'm still waiting for bootstrap.sh to complete. I'm sure I'll have much more to add once I'm ready for more steps.