linux-l: nochmal LILO

Detlef Neubauer detlef.neubauer at gmx.de
Mi Apr 12 12:04:06 CEST 2000


RBuenning at t-online.de (Rolf Buenning) writes:

> Hallo Detlef,
> 
> On Die, Apr 11, 2000 at 05:31:56 +0200, Detlef Neubauer wrote:
> > RBuenning at t-online.de (Rolf Buenning) writes:
> > 
> > map-drive = 0x80
> >        to = 0x82
> > map-drive = 0x82
> >        to = 0x80
> 
> Danke fuers Antworten, aber kannst du das noch mal etwas ausfuehrlicher
> erklaeren, sozusagen fuer Dummies?

Na klar, kein Problem.

Wie du ja schon bemerkt hattest, kann Windows nur von der ersten
primären Partition auf der ersten Festplatte booten.

Du hast nun folgende Konstellation

/dev/hda1 --> 1.W95
/dev/hda2 --> Linux
/dev/hdb1 --> W95 Daten
/dev/hdb2 --> Linux Swap
/dev/hdc1 --> 2.W95

Das Bios (oder Lilo?)nummeriert folgender Massen

erste  Platte  (hda)    0x80
zweite Platte  (hdb)    0x81
dritte Platte  (hdc)    0x82

Da Windows aber nun nur von 0x80 starten kann müssen wir die
Bezeichnungen vertauschen. Das geschieht mit

# hda nach hinten
map-drive = 0x80     # hda
       to = 0x82     # wird hdc
# nun hdc nach vorn
map-drive = 0x82     # hdc
       to = 0x80     # wird hda
# hdb kann da bleiben wo es ist

> Wo muss ich was hinschreiben?

Das ganze wird in die lilo.conf eingebaut

boot     = /dev/hda
map      = /boot/map
install  = /boot/boot.b
vga      = normal
default  = linux
keytable = /boot/de-latin1.klt
prompt
timeout  = 100

image = /boot/vmlinuz
        label = linux
        alias = l
        root=/dev/hda2
        read-only

other = /dev/hda1
        label = windows1
        alias = w1
        table = /dev/hda

other = /dev/hdc1
        label = windows2
        alias = w2
        table = /dev/hdc
        map-drive = 0x80
               to = 0x82
        map-drive = 0x82
               to = 0x80

So sollte es funktionieren. Eventuell musst du es noch auf deine
Gegebenheiten anpassen.
-- 
    Linux ist wie ein Pinguin im Wasser, elegant und geschmeidig
        und für manch andere Spezies durchaus gefährlich.
----------------------------------------------------------------------
http://learn.to/quote   http://linux01.gwdg.de/~steufel/Zehn-Wege.html



Mehr Informationen über die Mailingliste linux-l