[pc110] Booting from the pcmcia harddisk

felix nospam at mueri.ch
Sun, 27 Sep 1998 22:38:00 +0200

Despite some statements in this mailing list, it _is_ possible
to boot Linux from the pcmcia harddisk.

First you have to adjust the boot sequence in the bios setup: first
floppy, then pcmcia harddisk, then internal flash (this is in my
opinion the natural sequence).

The configuration of lilo is a bit tricky. Here is the /etc/lilo.conf

boot=/dev/hdc1
root=/dev/hdc1
install=/boot/boot.b
disk=/dev/hdc
bios=0x80
sectors=34
heads=16
cylinders=936
map=/boot/map
vga=normal
delay=20
image=/vmlinuz
label=Linux
read-only

The trick lies in the section disk=/dev/hdc ....
When you boot e.g. from floppy disk, your bootdisk is something
like /dev/hdc1. But when the bios boots from the pcmcia harddisk
it (temporary) remaps this drive to /dev/hda. The default lilo
configuration assumes to find /boot/boot.b on the same harddisk as it
was during installation. But this is here not the case! Therefore
you see something like L 04 04 04 04 04 04.............

The solution is written at the end of the lilo manual. There you find
the explanation of the command disk=.... which is 0x80 for /dev/hda.
The sectors, heads and cylinders have naturally to be adapted
to your harddisk.

Good luck

Felix Müri

-- 
(An apple a day keeps the doctor away.)
An apple every eight hours will keep three doctors away.

e-mail: felix nospam at mueri.ch (web: www.home.ch/~spaw1354)