荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: ydqingsi@bbs.pku.edu.cn (努力学习ING...), 信区: Linux
标  题: IBM Thinkpad r31 build linux ---howto
发信站: 北大未名站 (Sun May 11 13:48:04 2003)
转信站: SZU!news.tiaozhan.com!news.happynet.org!PKU

Redhat Linux on an IBM Thinkpad R31
Summary
Please note: I no longer have this laptop. I am told that the problems I des
cribe below are due to the ACPI power savings features, and that if you disa
ble them when booting that things should work fine. I have not tested that.
The IBM Thinkpad R31 has a few differences from it's predecessor, the R30. M
ost notable is the graphic chipset is an i830m chip from Intel. This has sup
port in Xfree86 4.2 through the i810 driver.
The short summary is that I am having a lot of problems with this laptop and
 Linux. I will most likely be trying some other distributions in hopes of fi
nding one with better out-of-the-box support.
The internal modem (as in the R30) is a Lucent AMR softmodem, and is not sup
ported under linux.
Partitioning
The machine came with Windows XP Home. Upon the first bootup, Windows detect
ed a Fat32 filesystem and automatically converted it to NTFS (Without prompt
ing). This is a bad thing, as Linux cannot write to NTFS, and reads are rumo
red to be unreliable.
The 20 GB disk shipped with a 1 GB hidden restore partition, and the rest fo
r XP. I had a recent copy of Partition Magic (7.0) that could handle XP, and
 I used it to repartition the drive. I did not care to keep the restore part
ition around, since I am uncertain what it would do to the Linux partitions
I am going to add.
Since the modem is not supported under Linux, I want to keep XP around for a
 bit, and have the ability to transfer files between the two OSes.
I decided to use Partition Magic to shrink the Windows partition down to 7 G
B, created a small 1 GB Fat32 partition to allow the transfers between the t
wo OSes, and left the rest unallocated (the RH installer will make use of it
).
The final partitioning scheme is:
/hda1 NTFS Windows XP partition
/hda2 Fat32 extended partition
 /hda5 FAT32 logical partition transfer partition
/hda3 hidden partition IBM restoration partition
/hda4 ext3 Linux partition
Eventually I'll delete the restoration partition and merge it into the trans
fer partition. If I can find a way to get the modem working under Linux, the
n XP will go too.
Choosing the Linux distribution
I wanted to install Redhat, since that is what I use on all my other machine
s. Unfortunately, RH 7.2 does not support the i830 graphics chipset. Intel g
ives some information on the i830 under Linux. In addition to XFree86 4.2, k
ernel 2.4.11 is required. Since the Skipjack beta 2 came out a few days ago,
 I decided to install that.
Installing Redhat 7.2.93
Installation should be pretty smooth. Put the first CD in the drive, boot, a
nd hit 'F12' to select the boot device, choosing CD-ROM. The graphical insta
ll did not work too well -- a few screens into the install, the mouse stoppe
d working properly, instead, pulling to the side of the screen. (Doing the s
ame steps with the RH 7.2 install disk did not show these problems). I conti
nued with the text install.
I choose to use GRUB, putting the bootloader on the first sector of the boot
 partition (/dev/hda4), instead of the master boot record, so XP would play
nicely with Linux.
The automatic partitioning did not work, so I created an ext3 partition and
told it to mount it as '/'. Things went smoothly from here.
I choose the i830 graphics chip from a list of devices -- these resulted in
a XF86Config-4 that X did not like. The solution was to run XConfigurator an
d chose the i810 driver and select 'generic laptop display 1024x768' as the
monitor.
Getting things to boot
By placing the bootloader on the first sector of the boot partition, instead
 of the MBR, the GRUB screen does not come up when you reboot. We need to us
e the Windows XP bootloader (because of that damn NTFS) to get things workin
g properly. Insert the first Redhat CD and reboot. Type 'linux rescue' at th
e prompt. It should find your Linux installation, mount it under /mnt/sysima
ge/, and drop you into a BASH shell.
Below are the steps required to get the Windows XP bootloader booting Linux
for you. I more or less followed the tips at this R30 Linux page. The main d
ifference is that our XP partition is NTFS. Remember that FAT32 partition we
 created -- we need it here (since there is no floppy drive on the R31).
Type 'chroot /mnt/sysimage' to make your 'rescued' Linux installation the de
fault root directory.
Mount the FAT32 partition by making a /mnt/vfat directory ('mkdir /mnt/vfat'
), and then 'mount -t vfat /dev/hda5 /mnt/vfat'.
Now create a file bootsect.lnx containing the first 512 bytes of the Linux b
oot partition using dd, 'dd if=/dev/hda4 of=/bootsect.lnx bs=512 count=1'
Copy this file onto the FAT32 partition so XP will be able to see it, 'cp /b
ootsect.lnx /mnt/vfat'. Boot into Windows XP and move that file into c:\Linu
x\.
Now open a DOS shell, and make boot.ini writable ('attrib -h -r -s boot.ini'
), edit it (with edit), and add c:\Linux\bootsect.lnx="Linux" to the end of
the file (right after the "Windows XP Home Edition" line in the [operating s
ystems] section).


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店