Choong KN wrote:
Hi all,
I saw a thread on
(http://mail.nl.linux.org/kernelnewbies/2003-07/msg00344.html)
about booting LILO from Compact Flash. I have tried
the method given (as below).
However, my platform showed me "LI". "LI" means
failure to execute 2nd stage boot loader. The thread
didn't mention how to solve the "LI" problem. Can
anyone help?
I'm using RedHat 7.1, lilo ver 21.4-4.
What is the meaning of this command?
cp -dpR /home/<rootfs files>/* /mnt/hdc1
I have a list of user directories in /home, what is
<rootfs files>?
Thanks.
regards,
KN
1.Check out whether your BIOS recognised flash
disk.Generally it identifies
as "hdc" on the linux host machine.I assume you have
IDE adapter connected
to your host machine with flash mounted to it.
2.Formated the flash with fdisk
fdisk /dev/hdc
(d,1)
3.Create a primary partition of type linux
(n,p,enter,enter,t,1,83)
4.Make it bootable
(a)
5.enable the changes
(w)
6.check for the desired partition
fdisk /dev/hdc
(p)
7.mke2fs /dev/hdc1
8.mount /dev/hdc1 /mnt/hdc1
9. copy entire directory system
(bin,boot,dev,etc,....) onto flash
cp -dpR /home/<rootfs files>/* /mnt/hdc1
10.Edit the lilo
The lilo needs to be modified that comes with
intoto linux kernel.
The new lilo looks like this:
boot=/dev/hdc
disk=/dev/hdc
bios = 0x80
map=/boot/map
install=/boot/boot.b
vga=normal
default=linux
lba32
prompt
timeout=10
image=/boot/vmlinuz
label=linux
root=/dev/hda1
read-only
11.Time to run lilo
/mnt/hdc1/sbin/lilo -r /mnt/hdc1 -C etc/lilo.conf
12. A success shows
Added linux *
13.Now umount /dev/hdc1
14.Boot the box with the flash and enjoy computing.
Read /usr/share/doc/lilo* it should be inside the documents.
I think "bios=0x80" is not correct
Stephane
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/