From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,4fa0eac0ba37daa5,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-09-30 13:14:40 PST Newsgroups: comp.os.linux.announce Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swiss.ans.net!solaris.cc.vt.edu!MathWorks.Com!news.kei.com!travelers.mail.cornell.edu!cornell!bounce-bounce From: Jason Lempka (bs bioc) Subject: Installing Linux on an IBM PS/1 Message-ID: Followup-To: comp.os.linux.misc Keywords: Linux, IBM PS/1, LILO, Install Sender: mdw@cs.cornell.edu (Matt Welsh) Reply-To: Jason Lempka (bs bioc) Organization: None Date: Fri, 30 Sep 1994 14:46:34 GMT [This will be included in the next Installation-HOWTO. --mdw] This is may turn out to be a Mini-Howto, but for now, lets just call this the IBM PS/1 Howto. Many people have had problems with getting Linux and LILO to run on their IBM PS/1, Valuepoint, and Thinkpad. There are already documents out there to help out the Thinkpad and Valuepoint people, but there is nothing for the IBM PS/1 people. This is it for them. IBM's have this annonying habit of not keeping the hard drive geometry specs in the CMOS. This throws Linux into a bit of a tizzy, since it probes the CMOS to find out the geometry of the hard drives in order to run fdisk correctly. To get Linux to run with IBM PS/1's you have to pass the geometry thru LILO and get the kernel to accept it that way. This means that you must find out the geometry on your own, unless you happen to know what it is before hand. This geometry is pass thru LILO to the kernel at boot time. One would type: LILO: "ramdisk hd=,," without the quotes of cours, and filling in the appropriate numbers for your computer. Luckily, MS DOS gives a nice little application to help with this. It is called MSD.EXE and usually resides in the dos directory or in the Windows directory, if you have MS Windows. This will probe all of the hard ware that is connected to your computer, and will then tell you what you need to know. This is not an easy task. In order for the numbers to be correct, you have to do some simple addition, but you have to know what the correct numbers are to add. Also, you must have all of the hard drive occupied. This does not mean that if you have 100 megs of space you must have 100 megs of info. This means that if you have 100 megs, all 100 megs must be accounted for by dos's fdisk. Even if one of the partitions is empty, you must have it registered. Here is a sample output from MSD.EXE on my primary hard drive, which does not contain Linux, but does contain a Linux Swap file: ________ Disk Drives ______________ C: Fixed Disk, CMOS Type 7 403M 821 Cylinders, 16 Heads 512 Bytes/Sector, 63 Sectors/Track CMOS Fixed Disk Parameters 21328 Cylinders, 176 Heads 117 Sectors/Track D: Fixed Disk, CMOS Type 0 16M 33 Cylinders, 16 Heads 512 Bytes/Sector, 63 Sectors/Track CMOS Fixed Disk Parameters 21328 Cylinders, 176 Heads 117 Sectors/Track E: Fixed Disk, CMOS Type 0 83M 169 Cylinders, 16 Heads 512 Bytes/Sector, 63 Sectors/Track CMOS Fixed Disk Parameters 21328 Cylinders, 176 Heads 117 Sectors/Track Now, to figure out how many Cylinders I have, I have to add 821+33+169=1023 Cylinders. The Heads are up there, 16 Heads, and so are the Sectors per Track, 63. You SHOULD NOT add the numbers under the CMOS setting. These are incorrect for the IBM PS/1. As you can see, this hard drive is a 504 Meg hard drive (yes, I see that the numbers are off, but the formatted capacity is less than the actual capacity). Anyway, those numbers need to be passed thru LILO to the kernel when you start up. I used the bare.gz boot file, from the Slackware 2.0 distribution and I entered at the LILO prompt: LILO: ramdisk hd=1023,16,63 I also have a second hard drive in the computer, that is a 130 Meg hard drive, which totally houses Linux. I found out the numbers for that the same way as I did for the first hard drive as above. Now, I had to tell the kernel that there were two hard drives in my computer, so I told LILO: LILO: ramdisk hd=1023,16,63 hd=935,16,17 And that told the kernel that /dev/hda was the first hd geometry reading and /dev/hdb was the second hd geometry. After going thru the nice install program for slackware, it allows you to setup LILO if you want. It also gives you a chance to add any extra info to LILO. At this point you should type: hd=,, if you only have one hard drive, and if you have two, just put one space and add the second one. Just like you had to do when booting. Once I got everything installed, I then had problems with LILO. I tried installing it everywhere, but no matter where I installed it, I still got the same problem. It would hang at "LI" and never go any farther. I tracked down the problem and fixed it in this way: 1) Make sure that in the global section of lilo.conf, there is a line that says append = "hd=,," with the qoutes like that, with the relevant info for your computer. 2) In the global section, add one line that says: linear I am not sure what this does, but it did help me. 3) Once again in the global section, uncomment the line: #compact Just remove the # symbol. This should allow you to boot LILO just fine. I have LILO on the MBR and it works fine after doing those fixes. My lilo.conf is at the bottom of this. This is just so you can see what mine looks like. Do not use mine instead of yours!! Rather build yours based on what mine looks like! WARNING>> This is by no means fool proof. One should be careful with LILO, and with DISK GEOMETRY. I hold no responsiblity for anyone breaking there system, just because they followed what I did. This is by no means a fix for everyone, but rather, a stepping stone to fixing the problems. You run these fixes at your own risk!!! I hope that this will work for those that try it, because it worked for me. Jason Lempka jlempk1@gl.umbc.edu All Things copyrighted by their respective companies. ----------begin lilo.conf-------------- # LILO configuration file # generated by 'liloconfig' # # Start LILO global section append = "hd=1023,16,63 hd=935,16,17" boot = /dev/hda linear # Don't ask, I don't really know. compact # faster, but won't work on all systems. delay = 50 vga = normal # force sane state ramdisk = 0 # paranoia setting # End LILO global section # DOS bootable partition config begins other = /dev/hda1 label = D table = /dev/hda # DOS bootable partition config ends # Linux bootable partition config begins image = /vmlinuz root = /dev/hdb1 label = L # Linux bootable partition config ends -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu Be sure to include Keywords: and a short description of your software.