Re: Kann Kernel nicht installieren was: In welchem Packet versteckt sich mkinitrd, was:
Eduard Bloch wrote:
Moin Gerhard!
Gerhard schrieb am Thursday, den 02. May 2002:
Hmmm .. :(( Ich lasse den Rechner mal an, ein reboot wird nichts geben
Hat jemand einen Vorschlag?
Für die Zwischenzeit:
apt-get install kernel-image-2.4.18-bf2.4
Und das beschriebene Verhalten als Bug melden.
Gruss/Regards,
Eduard.
Hallo Eduard,
danke für Deinen Vorschlag
ich habe nun noch einiges probiert, leider nicht mit dem gewünschten
Ergebnis.
1. Habe ich boot geleert und nach
http://qref.sourceforge.net/quick/ch-kernel.en.html mit make-kpkg einen
kernel gebaut, den ich aber nicht installieren konnte.
2. Nachdem ich die entsprechenden Dateien aus dem Backup zurückkopierte
konnte ich zwar wieder von der Anfangs erstellten Floppy starten, aber
von der Festplatte ging nichts.
3. apt-get install kernel-image-2.4.18-bf2.4 hat nach deinstalliertem
mkinitrd (alien -i redhat-rpm)
und wiederum geleertem /boot nichts gebracht, da es sich a) nicht
installieren ließ, b) das script keine passende lilo.conf erbrachte.
4. Die lilo.conf passte ich wiederum von Hand an.
Nach erneuter deinstallation des selbstgebauten Kernels und mkinitrd
konnte ich Kernel-image-2.4.18-bf2.4 erfolgreich installieren, womit ich
wieder am Anfang meiner Odyssee stehe, jedoch wenigstens was bootet.
z.B. windows von hda1, floppy und Debian, was allerdings keine /dev/hd*
Gerätedateien findet! fsck.ext3 wird in /sbin nicht gefunden, hda5 ist
aber auf ext3,ro gemountet?
Hier bietet es ein login im singleusermode an um das ext2 system von
Hand zu checken, da kein Superblock gefunden wird.
Das /root verzeichnis enthält aber alle Dateien, die ich vorher mal
angelegt habe.
Mit ctrl-D gibt es einen reboot. Von Floppy startet alles normal?!).
5. initrd-tools installiert, und mkinitrd blabla ausgeführt um ein
initrd zu schreiben.
Diesen mit lilo aktivieren. Die Aktion führt zum selben Ergebnis wie 4.
und endet in der Meldung:
fsck.ext3: No such file or directory while trying to open /dev/hdb5
mount ergibt allerdings, dass / auf /dev/hdb5 ext3,ro gemountet ist
ls /dev/hd* ergibt nichts.
Liegt es vielleicht am devfs? Falls ja: Wie finde ich den Fehler? Wo
kann ich nachlesen wie man erfolgreich einen Kernel installiert?
Das kann ja wohl nicht sein, das ich jetzt meine Kernel nicht anpassen
kann und auf ewig von floppy booten soll.. :( Ich bin nicht scharf
darauf alles platt zu machen und neu zu installieren.
Hat jemand eine Ahnung was los ist, und wie dem Problem beizukommen ist?
Ich bin dankbar für jeden Vorschlag
gerhard
Ps: Wie meldet man einen Bug? Obwohl ich zweifele, dass es einer ist.
Alledings wäre es von Vorteil eine einfachere Möglichkeit zu haben das
System doch noch von hd zu starten, falls man bei der Erstinstallation
den lilo nur auf floppy geschrieben hat.
___________________________________________________________________________________
Ein "paar" infos:
debian:~# df
Filesystem Mounted on
/dev/hdb5 /
/dev/hdb6 /home
/dev/hdb7 /var
/dev/hdb8 /var/mail
/dev/hdb9 /usr
/dev/hda3 /boot
/dev/hda1 /mnt/win_c
debian:~# fdisk -l /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 2490 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 491 3943926 b Win95 FAT32
/dev/hda2 511 2490 15904350 f Win95 Ext'd (LBA)
/dev/hda3 492 494 24097+ 83 Linux
/dev/hda4 495 510 128520 82 Linux swap
/dev/hda5 511 957 3590496 b Win95 FAT32
/dev/hda6 958 1776 6578586 b Win95 FAT32
/dev/hda7 1777 2490 5735173+ b Win95 FAT32
Partition table entries are not in disk order
debian:~# fdisk -l /dev/hdb
Disk /dev/hdb: 255 heads, 63 sectors, 1245 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 153 1228941 b Win95 FAT32
/dev/hdb2 154 169 128520 82 Linux swap
/dev/hdb3 170 1245 8642970 5 Extended
/dev/hdb5 * 170 233 514048+ 83 Linux
/dev/hdb6 234 425 1542208+ 83 Linux
/dev/hdb7 426 680 2048256 83 Linux
/dev/hdb8 681 719 313236 83 Linux
/dev/hdb9 720 1245 4225063+ 83 Linux
debian:~#
debian:~# cat /etc/lilo.conf
#mandrake generated
lba32
prompt
timeout=50
keytable=/boot/de-latin1-nodeadkeys.klt
#debian generated
#boot=/dev/hda5 <-- bestimmt nicht richtig lilo bricht ab: 5 zu hohe
nummer (nicht primaere partition)
#boot=/dev/hda3 <-- auch falsch: medet beim booten: L 40 40 40 40 40 ...
boot=/dev/hda # <-- vorherige mandrake geschichte
root=/dev/hdb5
#mandrake
initrd=/boot/initrd.img
append=" hdd=ide-scsi quiet"
vga=788
#mandrake schluss
#compact evtl. probleme mit lba32
install=/boot/boot.b
map=/boot/map
#vga=normal
delay=20
image=/vmlinuz
label = Linux
read-only
#meine
other=/dev/hda1
label=windows
table=/dev/hda
other=/dev/fd0
label=floppy
unsafe
debian:~#
# /etc/mkinitrd/modules: Kernel modules to load for initrd.
#
# This file should contain the names of kernel modules and their arguments
# (if any) that are needed to mount the root file system, one per line.
# Comments begin with a `#', and everything on the line after them are
ignored.
#
# You must run mkinitrd(8) to effect this change.
#
# Examples:
#
# ext2
# wd io=0x300
#
#ext3 rootfsflags=data=journal
#ext2
#alias usb-interface usb-uhci
#probeall scsi_hostadapter ide-scsi ide-scsi
#alias sound-slot-0 es1371
#alias ppp0 ppp_generic
ext3
debian:~# cat /etc/mkinitrd/mkinitrd.conf
# /etc/mkinitrd/mkinitrd.conf:
# Configuration file for mkinitrd(8). See mkinitrd.conf(5).
#
# This file is meant to be parsed as a shell script.
# What modules to install.
MODULES=most
# The length (in seconds) of the startup delay during which linuxrc may be
# interrupted.
DELAY=5
# If this is set to probe mkinitrd will try to figure out what's needed to
# mount the root file system. This is equivalent to the old PROBE=on
setting.
ROOT=probe
# This controls the permission of the resulting initrd image.
UMASK=022
# Command to generate the initrd image.
MKIMAGE='mkcramfs %s %s > /dev/null'
debian:~# ls -l /
-rw-r--r-- 1 root root 517655 May 1 00:20 System.map-2.4.18
lrwxrwxrwx 1 root root 13 May 1 00:20 config ->
config-2.4.18
-rw-r--r-- 1 root root 29357 May 1 00:20 config-2.4.18
-rw-r--r-- 1 root root 1031357 May 2 15:34 vmlinuz
-rw-r--r-- 1 root root 1031358 May 1 00:20 vmlinuz-2.4.18
lrwxrwxrwx 1 root root 14 May 1 00:20 vmlinuz.old ->
vmlinuz-2.4.18
debian:~# ls -l /boot
total 2991
-rw-r--r-- 1 root root 547924 Mar 30 01:15
System.map-2.4.18-bf2.4 -rw-r--r-- 1 root root 7988 Feb
16 03:56 boot-bmp.b
-rw-r--r-- 1 root root 6204 Feb 16 03:56 boot-compat.b
-rw-r--r-- 1 root root 7964 Feb 16 03:56 boot-menu.b
-rw-r--r-- 1 root root 6204 Feb 16 03:56 boot-text.b
-rw-r--r-- 1 root root 512 Apr 30 15:15 boot.0300
-rw-r--r-- 1 root root 512 May 3 17:34 boot.0303
-rw------- 1 root root 512 Apr 30 13:55 boot.0345
lrwxrwxrwx 1 root root 11 May 2 22:39 boot.b ->
boot-menu.b
-rw-r--r-- 1 root root 728 Feb 16 03:56 chain.b
-rw-r--r-- 1 root root 29979 Mar 30 00:55 config-2.4.18-bf2.4
-r--r--r-- 1 root root 256 May 27 2001
de-latin1-nodeadkeys.klt-rw-r--r-- 1 root root 16909 May
3 03:30 initrd-2.4.18-686.img
-rw-r--r-- 1 root root 18037 May 3 20:11
initrd-2.4.18-bf2.4.img
lrwxrwxrwx 1 root root 27 May 3 03:32 initrd.img ->
/boot/initrd-2.4.18-686.img
drwx------ 2 root root 1024 Apr 30 01:59 lost+found
-rw------- 1 root root 21504 May 3 20:21 map
-rw-r--r-- 1 root root 84480 Mar 9 15:54 memtest86.bin
-r--r--r-- 1 root root 159 Jan 12 08:23 message
-rw-r--r-- 1 root root 656 Feb 16 03:56 os2_d.b
lrwxrwxrwx 1 root root 24 May 2 22:41 vmlinuz ->
/boot/vmlinuz-2.4.18-686
-rw-r--r-- 1 root root 1031357 May 2 15:34 vmlinuz-2.4.18-686
-rw-r--r-- 1 root root 1248637 Mar 30 01:15 vmlinuz-2.4.18-bf2.4
debian:~#
--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
Reply to: