From: corey@sdf.lonestar.org (Corey Carroll) Subject: Help with installing linux 0.98pl5, part 2 Date: Mon, 5 Apr 1993 00:09:33 GMT
OK, I got some email telling me about how hlu's bootable rootdisk
(0.98pl5, the 3.5" version) had some bad directions in the README
file. I am still having some problems. First, the specs:
386sx-25 cpu
AMI Bios, HM386sx V1.5 3-5-92
4 Megs ram
color VGA monitor, 256K card
I decided to use an old hard drive here at work. It is a ST-1144A,
and its geometry is 1001 cylinders, 15 heads, and 17 sectors/track.
This is how I want my partition set up: (I was going to put Linux and
DOS on another hard drive, but I am keeping it for DOS solely. I want
to put only Linux on the ST-1144A).
/dev/hda1 50Megs Linux root
/dev/hda2 Rest of hard drive, extended partition
/dev/hda5 Swap space ~ 10 Megs
/dev/hda6 About 66 Megs for /usr.
I can boot up off of hlu's rootdisk fine; I get this message that
doesn't look good:
Warning: WD8003 board not found at i/o = 280
After that, I use the fdisk on the floppy to partition my hard drive. Here
is what my partition table ends up looking like:
Device Boot Begin Start End Blocks Id System
/dev/hda1 * 1 1 402 51254+ 81 Linux/MINIX
/dev/hda2 403 403 1001 76372+ 5 Extended
/dev/hda5 403 403 483 10327 82 Linux swap
/dev/hda6 484 484 1001 66044 81 Linux/MINIX
The next thing I do is make my filesystems;
mkfs /dev/hda1 51524
mount /dev/hda1 /mnt
for F in bin dev etc lib tmp usr user vmlinux; do
cp -av $F /mnt
done
This should make my root filesystem, and copy over all the stuff on the
floppy to hard drive. It does do it.. However my programs still load off
of floppy, I assume because it is still the root device. Then,:
mkfs /dev/hda5 10327
mkswap /dev/hda5 10327 ; swapon /dev/hda5
This adds my swap partition; I know it exists because free reports it.
Then:
mkfs /dev/hda6 65500 (since mkfs won't make more than 65536 blocks)
mkdir /mnt/usr
mount -t ext /dev/hda6 /mnt/usr
Then I copy the usr stuff to /mnt/usr.
The next thing I do is edit my /mnt/etc/fstab file; it looks like this after
I am through:
/dev/hda1 / minix defaults
/dev/hda5 none swap sw
/dev/hda6 /usr ext defaults
/dev/fd0 / minix defaults
/dev/proc /proc proc defaults
Question: Do I need to comment out the /dev/fd0 line? I can't have
/TWO/ root devices, can I??
Now, the NEXT thing I do is to run lilo; I do the following, and I get
this output:
$ cd /mnt/etc/lilo
$ rm boot.0* map
$ ./lilo -r /mnt -b /dev/hda1 -i /etc/lilo/boot.b -v -v -v /vmlinux
LILO version 0.6
Written by ....
Reading boot sector from /dev/hda1
Merging with /etc/lilo/boot.b
Device 0x0301: BIOS drive 0x80, 15 heads, 1001 cylinders, 17 sectors.
Partition offset: 1 sectors.
Secondary loader: 3 sectors.
Device 0x0301: BIOS drive 0x80, 15 heads, 1001 cylinders, 17 sectors.
Partition offset: 1 sectors.
Bootimage: /vmlinux
Device 0x0301: BIOS drive 0x80, 15 heads, 1001 cylinders, 17 sectors.
Partition offset: 1 sectors.
Mapped 693 sectors
Added vmlinux
<dev=0x80, hd=6, cyl=8, sct=12>, root=0x0301, swap=0x0000
Backup copy of boot sector in /etc/lilo/boot.0301
Map file size: 4608 bytes.
Writing boot sector.
Then, I sync, and reboot, without the floppy in A: , and the screen comes
up with a notorious "Missing operating system" error. I don't know why this
occurs; perhaps LILO didn't load the kernel/boot sectors properly; why did
it report a drive with 6 heads, 8 cylinders, and 12 sectors, also?
Please help!
Am I missing a step or ignoring something here?
-- corey@sdf.lonestar.org 214-296-0458 Corey Carroll