PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : LILO neu installieren oder GRUB drüber...



ksd
22.08.05, 14:51
Hi
Ich habe das Problem, dass beim starten der Maschine, LILO hängen bleibt. Und zwar wird "LI_" angezeigt, mehr nicht.
Kann mir jemand sagen wie ich LILO neu installiere? Oder GRUB?

Danke und Gruss

Shutdown
22.08.05, 14:54
Also bevor man LiLo blind drüberinstalliert würde ich die lilo.conf überprüfen.
Wenn die Kiste von alleine nimmer booten will, wirf ne Knoppix-CD rein, mounte dein / von der Platte und guck dir die /etc/lilo.conf an.
Wenn die passt, "lilo -C /pfad/zu/deiner/lilo.conf" ausführen.

Wenn dir GRUB besser gefällt, installier halt GRUB drüber. Von GRUB hab ich aber keinen blassen :ugly:

Shutdown

ksd
22.08.05, 15:25
Wenn die passt, "lilo -C /pfad/zu/deiner/lilo.conf" ausführen.Ob die passt weiss ich nicht, da ich sie nicht öffnen kann (Keine ausreichenden Berechtigungen).
Wenn ich "lilo -C /mnt/hda1/etc/lilo.conf" ausführe, dann kommt eine Fehlermeldung:


/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
/dev/mapper/control: open failed: No such device
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.00.20-ioctl (2005-01-06)(compat) and kernel driver
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/cloop0' -> '/dev/cloop'
Fatal: Trying to map files from unnamed device 0x000d (NFS/RAID mirror down ?)

:ugly: :confused:

Shutdown
22.08.05, 15:55
Du versuchst das Ganze schon auch als root, oder?
Als user geht da gar nix und es sieht so aus als würdest du es so versuchen ;)

Shutdown

ksd
23.08.05, 08:44
Also ich versuche das gerade über Knoppix zu machen und habe dort den Befehl als root ausgeführt...

Shutdown
23.08.05, 11:37
Poste doch mal den Inhalte deiner lilo.conf, evtl liegt da die Wurzel allen übels :p

Shutdown

ksd
23.08.05, 12:16
Meine lilo.conf sieht so aus:
root@1[/]# cat /mnt/hda1/etc/lilo.conf

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# --------------- `install-mbr(8)', `/usr/share/doc/lilo/',
# and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# | !! Reminder !! |
# | |
# | Don't forget to run `lilo' after you make changes to this |
# | conffile, `/boot/bootmess.txt', or install a new kernel. The |
# | computer will most likely fail to boot if a kernel-image |
# | post-install script or you don't remember to run `lilo'. |
# | |
# +---------------------------------------------------------------+

# Support LBA for large hard disks.
#
lba32

# Overrides the default mapping between harddisk names and the BIOS'
# harddisk order. Use with caution.
#disk=/dev/hde
# bios=0x81

#disk=/dev/sda
# bios=0x80

# 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/hda1

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller. Using `compact' is especially recommended when
# booting from a floppy disk. It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration. If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well. Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like. If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress. `single-key' goes with the `alias' lines in the
# `image' configurations below. eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
# prompt
# single-key
# delay=100
# timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, <mode>)
#
# vga=ask
# vga=9
#
vga=normal

# Kernel command line options that apply to all installed images go
# here. See: The `boot-prompt-HOWO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""

# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
# restricted
# alias=2

# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
# label=HURD
# restricted
# alias=3

Danke für deine Hilfe

Shutdown
23.08.05, 14:39
default=Linux
boot = /dev/hda
lba32
#compact
prompt
timeout = 200
vga = normal


# menu
menu-title = "LiLo"
menu-scheme = wK:WK:wK:WK


# current linux
image = /vmlinuz
root = /dev/hda1
label = Linux
read-only
append = ""

Du kannst es mal mit der Config da oben probieren, ist aber wohl ziemlich gleich wie deine... *grübel*
Wenns nix wird, gib mir mal die Outputs folgender 2 Befehle:


ls /mnt/hda1/vmlinuz
ls /mnt/hda1/boot/*

Und mit was startest du? Knoppix-CD? Wenn du noch ne andere/neuere hast würde ich es damit mal versuchen, evtl stimmt mit den Kerneleinstellungen da was nicht.

Shutdown

ksd
24.08.05, 09:10
Ich kann meine lilo.conf irgendwie nicht editieren. Obwohl die die hda1 als rw gemountet wurde. (Ja habe mit root versucht :D )


root@1[~]# ls /mnt/hda1/vmlinuz
/mnt/hda1/vmlinuz


root@1[~]# ls /mnt/hda1/boot/*
/mnt/hda1/boot/boot.0300 /mnt/hda1/boot/map
/mnt/hda1/boot/boot.b /mnt/hda1/boot/sarge.bmp
/mnt/hda1/boot/coffee.bmp /mnt/hda1/boot/sid.bmp
/mnt/hda1/boot/config-2.4.18-bf2.4 /mnt/hda1/boot/System.map-2.4.18-bf2.4
/mnt/hda1/boot/debian.bmp /mnt/hda1/boot/vmlinuz-2.4.18-bf2.4
/mnt/hda1/boot/debianlilo.bmp

Susu
24.08.05, 09:51
# Installs the specified file as the new boot sector
# You have the choice between: bmp, compat, menu and text
# Look in /boot/ and in lilo.conf(5) manpage for details
#
install=/boot/boot-menu.b Da haben wir doch schon einen Verdächtigen. Ich vermute, es sollte bmp heißen...

Susu

ksd
24.08.05, 10:18
Jo, könnte sein. Aber irgendwie schaffe ich es nicht meine lilo.conf zu editieren. Es kommt immer die Meldung sie sei Schreibgesützt. Und wenn ich mit w! abspeichern will kommt:
/mnt/hda1/etc/lilo.conf" E212: Datei kann nicht zum Schreiben geöffnet werden

Susu
24.08.05, 10:24
Vielleicht klappts, wenn Du mittels chroot /mnt/hda1/ /bin/sh auf die Partition zugreifst...?! Und Du solltest nochmal überprüfen, ob die Partition WIRKLICH rw gemountet ist.

Susu

Shutdown
24.08.05, 10:47
Evtl auch mal die Rechte von der lilo.conf überarbeiten:


chown root.root /mnt/hda1/etc/lilo.conf
chmod 600 /mnt/hda1/etc/lilo.conf

Das Ganze bitte auch wieder als root - danach kann auch nur der root-User die lilo.conf editieren und lesen, was aber eigentlich auch so sein sollte (da man evtl ein Passwort oder sowas da drin hat).

Und Susu hat recht, da ist wirklich ein Fehler drin, es müsste korrekterweise

install = /boot/boot-bmp.b
heissen. Nur damit's keine Missverständnisse gibt wo das "bmp" hinsoll :D

Shutdown

ksd
24.08.05, 13:41
install = /boot/boot-bmp.b
Habe ich ersetzt.

default=Linux
boot = /dev/hda
lba32
#compact
prompt
timeout = 200
vga = normal


# menu
menu-title = "LiLo"
menu-scheme = wK:WK:wK:WK


# current linux
image = /vmlinuz
root = /dev/hda1
label = Linux
read-only
append = ""
Habe ich nachgetragen.


chmod 600 /mnt/hda1/etc/lilo.conf
War vorher auf -rw-r-----, aber ich denke macht zu -rw------- nicht viel unterschied.

Hat bis anhin noch nichts geholfen :p
Ansonsten geben wir LILO auf und versuchen es mit GRUB :D

R4miu5
24.08.05, 14:11
sollte es nicht heissen:

image=/boot/...

?

welche distro verwendest du btw?

ksd
24.08.05, 14:53
Debian Woody 3.0 wenn ich mich nicht täusche... :D

R4miu5
24.08.05, 14:55
wie schaut deine /etc/fstab aus, und hat debian noch nie gebootet?

Shutdown
24.08.05, 15:44
sollte es nicht heissen:

image=/boot/...

Wenn das so wäre und das Kernelimage nich in / liegen würde, dann würde da auch ne andere Fehlermeldung rauskommen...

@ ksd: Hat sich an der Fehlermeldung seit wir hier rumbasteln irgendwas geändert?

Shutdown

ksd
25.08.05, 07:16
wie schaut deine /etc/fstab aus, und hat debian noch nie gebootet?
Debian hat schon ein paar mal gebootet. Der Fehler trat erst nach einem Update auf.
Meine /etc/fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / ext3 errors=remount-ro 0 1
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/sda1 /mnt/usbstick vfat rw,user,noauto,umask=000 0 0

Hat sich an der Fehlermeldung seit wir hier rumbasteln irgendwas geändert?
Nein, Leider nicht... Immer noch LI und sonst gar nichts.

Shutdown
25.08.05, 10:14
Zuallererst mal ein Link: http://linux.about.com/od/linux101/l/blnewbie4_1_2.htm

Ich hab mal ein kleines bisschen gegoogelt und wenn LiLo nur "LI" anzeigt, ist es wohl oft ein Problem mit der Geometrie der Platte im BIOS.
Hast du die Platte im BIOS manuell eingetragen oder per "auto"-Setting erkennen lassen?
Was für ein System hast du eigentlich?
Evtl mal in der lilo.conf irgendwo oben im generellen Teil "linear" ergänzen...

Shutdown

ksd
30.08.05, 13:04
Zuallererst mal ein Link: http://linux.about.com/od/linux101/l/blnewbie4_1_2.htm Danke hab ich angeschaut, hat aber bis anhin nichts geholfen, ausser evt. der letzte Punkt aber dazu später mehr. :p


Hast du die Platte im BIOS manuell eingetragen oder per "auto"-Setting erkennen lassen? Jo, das war nie irgend ein Problem in Sachen Festplatter erkennen o.ä..


Was für ein System hast du eigentlich? Debian Woody 3.0 wenn ich mich nicht täusche


Evtl mal in der lilo.conf irgendwo oben im generellen Teil "linear" ergänzen... Hat nichts genutzt...

Zitat von deinem Link:

6. Get rid of LILO and use GRUB. Kann mir jemand sagen, was ich dafür brauche und wie ich das genau anstellen muss? :D
Bräuchte ja eigentlich bloss ne Bootdisk mit GRUB drauf und den dann installieren. Bloss woher nehme ich diese Bootdisk mit GRUB? Gibts da fertig Images oder so?

P.S.
Danke für eure Hilfe

Shutdown
30.08.05, 19:19
Zitat von deinem Link:
Kann mir jemand sagen, was ich dafür brauche und wie ich das genau anstellen muss? :D
Bräuchte ja eigentlich bloss ne Bootdisk mit GRUB drauf und den dann installieren. Bloss woher nehme ich diese Bootdisk mit GRUB? Gibts da fertig Images oder so?

KNOPPIX. (http://www.knopper.net)
-> http://forum.gamestar.de/gspinboard/showthread.php?t=143420

Muss wohl gehen, ich kenne mich mit Grub aber absolut nicht aus... :rolleyes:

Shutdown

PS: Man hilft doch gerne :D