Re: Lilo: L 40 40 40
Hallo Markus,
On Fri, Oct 17, 2003 at 11:43:22AM +0200, Markus Hansen wrote:
> Am Sonntag, 12. Oktober 2003 20:18 schrieb Martin Samesch:
> > On Sun, Oct 12, 2003 at 07:01:53PM +0200, Markus Hansen wrote:
> > > Am Sonntag, 12. Oktober 2003 12:17 schrieb Martin Samesch:
> > > >
> > > > On Sun, Oct 12, 2003 at 12:47:25AM +0200, Markus Hansen wrote:
> > > > > [...]
> > > > > Warning: /dev/hdb is not on the first disk
> > > >
> > > > [disk=/dev/hdb bios=0x80]
>
> Hab ich gemacht, hat nicht geholfen.
Du hast in der lilo.conf obige Zeile eingefügt? Ähm, sorry, wie war
das noch gleich, die Platte hängt an IDE1? Dann natürlich hdc.
Peinlich...
Was mir gerade noch einfällt: ist die Platte Master oder Slave
(sollte natürlich Ersteres sein).
> > > > Oder installiere lilo in den MBR der ersten Platte (erste Stufe) und
> > > > übergebe dann an lilo auf /dev/hdb (zweite Stufe).
>
> Verstehe ich leider nicht...:-(
Die Profis mögen mir gnädig sein und mich ggf. korrigieren... ;-)
_Alternativ_ zu disk=/dev/hdc bios=0x80
Angenommen, an IDE0 und IDE1 hängt jeweils eine Platte. Auf /dev/hda
soll irgendwann unstable (mit / auf /dev/hda1), auf /dev/hdc liegt
mit / auf /dev/hdc1 stable.
# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda
# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hdc1
> Dann eben nur ein MBR, der ein nettes Menu hat, dachte ich...
Ein nettes Menü? Kannst Du z.B. damit haben:
http://kyi.sytes.net/downloads/debian-bootscreen-0.1/
> Ich hab dann in die lilo.conf folgendes eingetragen:
> other=/dev/hdb1
other?
man lilo.conf:
ALTERNATE SYSTEM (other=)
Used to load systems other than Linux. [...]
Bist Du Dir sicher?
Bei Dir müsste das entsprechend obiger Annahmen in etwa so aussehen:
default=stable
image=/vmlinuz
label=stable
read only
image=/vmlinuz
label=unstable
root=/dev/hda1
read-only
-----------------------------------------------------
Bei mir sieht das so aus:
(tutnix liegt auf /dev/sda2, wo auch der Boot-Block von tutnix liegt;
kannix liegt auf /dev/sda1 und schreibt den Boot-Block in /dev/sda,
also den MBR der Platte. Ich rufe also in tutnix lilo auf, mounte
/dev/sda1, mache den Mountpoint mit 'chroot /mnt/kannix' zum
Rootverzeichnis, mounte dort /dev/sda2, rufe lilo auf, unmounte
/dev/sda2 und kehre zu tutnix zurück. Ganz einfach.... ;-)
lilo.conf von kannix (/dev/sda1):
-----
# Specifies the boot device. This is where Lilo installs its boot
# block. It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/sda
# Specifies the device that should be mounted as root. (`/')
#
root=/dev/sda1
[...]
default=tutnix
image=/vmlinuz
label=kannix
read-only
image=/vmlinuz.old
label=kannix.old
read-only
optional
image=/mnt/tutnix/vmlinuz
label=tutnix
root=/dev/sda2
read-only
image=/mnt/tutnix/vmlinuz.old
label=tutnix.old
root=/dev/sda2
read-only
lilo.conf von tutnix (/dev/sda2):
-----
# The boot record is installed on the second primary partition
# Which will have to be marked active to get to it.
boot=/dev/sda2
root=/dev/sda2
[...]
image=/vmlinuz
label=tutnix
image=/vmlinuz.old
label=tutnix.old
-----
Sorry, ziemlich chaotisch. Ich hoffe, Du kannst etwas damit anfangen.
> Aber ist jetzt meine Platte kaputt oder ich unfähig?
Oder ich habe Müll erzählt (/dev/hdb statt /dev/hdc)....
Gruß,
Martin
Reply to: