Problhma sthn ekkinhsh

Giannis Papaioannou jhn at egnatia.ee.auth.gr
Tue Nov 28 12:53:01 EET 2000


On Sun, 26 Nov 2000, Kostas wrote:

> Ekana egatastash tou Mandrake 7 kai afou mou evgale sthn egatastash tou LILO
> pos den einai dunath epeidh to partition tou linux arxizei meta apo ton 1024
> kylindro tou diskou eftiaxa mia boot disk me to image tou kernel.To provlhma

[CTRL+V]

Let's assume that a suitable DOS-partition within 1024 cylinders is
mounted in /dos. LILO shall go into the MBR (i.e. /dev/hda). It also
should be able to boot DOS from /dev/hda1. Then procede as follows :

First create bootdisks for MSDOS and Linux (just in case ...) and check
that they work. This is to ensure that you can restore the original MBR if
something goes wrong.

Create a new directory (e.g. /dos/LINUX) and copy the LILO-files from
/boot there. Also copy the Linux-kernels that LILO shall boot.

Then create a file named /dos/LINUX/lilo.conf according to the following
example. All paths in this file should point to the directory /dos/LINUX :

# LILO configuration-file for foreign partition 
# Start LILO global Section 
boot=/dev/hda                 # Installationsziel
backup=/dos/LINUX/mbr_hda.bak #backup of old MBR 
install=/dos/LINUX/boot.b     # Of course LILO and the
map=/dos/LINUX/map            # map-file are in /dos/LINUX! 
message=/dos/LINUX/message    # optional 
prompt 
timeout=100                   # Wait at prompt for 10s 
vga = normal # End LILO global section 
# 
# Linux bootable partition config begins 
image = /dos/LINUX/First_Kernel #Put your kernel here
root = /dev/Your_Root_Device    # root-partition into this place
label = linux 
# Linux bootable partition config ends 
# 
# DOS bootable partition config begins 
other = /dev/hda1 #MSDOS-systemdrive
label = dos
loader = /dos/LINUX/chain.b
table = /dev/hda 
# DOS bootable partition config ends

Install LILO with this lilo.conf :

# /sbin/lilo -C /dos/LINUX/lilo.conf
Done !

Now LILO should work. Boot DOS and try to protect the LILO-files against
write-access as much as possible ! (As a reminder : Any displacing of
these files done e.g. by a defragmentation-program will stop LILO from
working). At least mark all the files in X:\LINUX (where X: is the
DOS-partition just mounted under /dos) with the DOS-attributes system and
hidden .





More information about the Linux-greek-users mailing list