Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    7,691

    Kernel panic avviando con grub

    Ciao,

    su di un portatile ho la seguente situazione:

    /dev/hda1 swap
    /dev/hda2 Knoppix 5.0
    /dev/hda5 PuppyLinux

    Quando dal bootloader (GRUB) avvio knoppix ottengo il seguente errore:

    Kernel panic - not syncing:VFS:Unable to mount root fs on unknow-block(3,2)

    Avevo installato all'inizio la knoppix su hda2 (mi aveva messo grub e funzionava) ed in seguito ho installato Puppylinux in hda5 e mi ha messo il suo grub (e lei si avvia). Il contenuto del suo menu.lst è:
    --------
    -------
    default 0
    timeout 5
    ............
    ...........

    ## ## End Default Options ##

    title Debian GNU/Linux, kernel 2.6.15 Default
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 ro ramdisk_size=100000 lang=it apm=power-off nomce vga=791
    initrd /boot/initrd.img
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.15
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.15 root=/dev/hda2 ro ramdisk_size=100000 lang=it apm=power-off nomce vga=791
    initrd /boot/initrd.img-2.6.15
    savedefault
    boot

    title Debian GNU/Linux, kernel memtest86
    root (hd0,1)
    kernel /boot/memtest86.bin
    boot

    in hda5 ho:

    il menu.lst del grub in hda2 è:

    # GRUB configuration file '/boot/grub/menu.lst'.
    # generated by 'grubconfig'. Fri May 26 22:52:12 2006
    #
    # The backup copy of the MBR for drive '/dev/hda' is
    # here '/boot/grub/mbr.hda.10206'. You can restore it like this.
    # dd if=/boot/grub/mbr.hda.10206 of=/dev/hda bs=512 count=1
    #
    # Start GRUB global section
    #timeout 30
    color light-gray/blue black/light-gray
    # End GRUB global section
    # Linux bootable partition config begins
    title Linux (on /dev/hda2)
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal
    # Linux bootable partition config ends
    # Linux bootable partition config begins
    title Linux (on /dev/hda5)
    root (hd0,4)
    kernel /boot/vmlinuz root=/dev/hda5 ro vga=normal
    # Linux bootable partition config ends
    # Linux bootable partition config begins
    title Linux (on /dev/hda6)
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/hda6 ro vga=normal
    # Linux bootable partition config ends
    title Install GRUB to floppy disk (on /dev/fd0)
    pause Insert a formatted floppy disk and press enter.
    root (hd0,4)
    setup (fd0)
    pause Press enter to continue.
    title Install GRUB to Linux partition (on /dev/hda5)
    root (hd0,4)
    setup (hd0,4)
    pause Press enter to continue.
    title - For help press 'c', then type: 'help'
    root (hd0)
    title - For usage examples, type: 'cat /boot/grub/usage.txt'
    root (hd0)

    in hda2/boot c'i sono i seguenti files:

    coffee.bmp
    config-2.6.15
    debian.bmp
    debianlilo.bmp
    grub
    initrd.img
    initrd.img-2.6.15
    knoppix-old-mbr.2006-05-26
    memtest86.bin
    memtest86+.bin
    sarge.bmp
    sid.bmp
    System.map
    System.map-2.6.15
    vmlinuz
    vmlinuz-2.6.15

    Cosa c'entra quel "unknow-block(3,2)" nel kernel panic" ?

    Cosa faccio ? (non conosco GRUB)

    Grazie
    ... S'i' fosse Giorgio, com'i' sono e fui,
    torrei le donne giovani e leggiadre:
    le vecchie e laide lasserei altrui....
    Non mandatemi PVT, mi dimentico sempre di leggerli ... mandatemi e-mail, se è il caso

  2. #2

    re:

    verifica che il menu.lst che hai installato sia corretto...

    da puppy prova a montare la partizione 2 e a controlare che sia a posto...
    es. che /etc/fstab sia corretto, la / su /dev/hda2

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    7,691
    grazie
    ... S'i' fosse Giorgio, com'i' sono e fui,
    torrei le donne giovani e leggiadre:
    le vecchie e laide lasserei altrui....
    Non mandatemi PVT, mi dimentico sempre di leggerli ... mandatemi e-mail, se è il caso

  4. #4
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    7,691
    Riprendo il post perchè non ho ancora risolto (ho lasciato perdere ...)

    Vorrei provare a reinstallare Knoppix in hda2, facendogli mettere il bootloader nella sua root.

    Se usassi LiILO aggiungerei la seguente riga in quello attuale nell'MBR:

    other=/dev/hda1
    label="Knoppix"

    e poi darei

    # lilo -v

    In grub funziona allo stesso modo ?

    Cosa devo mettere nella riga che richiama il bootloader di hda1 (sempre grub) ?

    Modificando il grub attuale, come glielo faccio riscrivere nell'MBR ?

    Grazie
    ... S'i' fosse Giorgio, com'i' sono e fui,
    torrei le donne giovani e leggiadre:
    le vecchie e laide lasserei altrui....
    Non mandatemi PVT, mi dimentico sempre di leggerli ... mandatemi e-mail, se è il caso

  5. #5
    per aggiugere a grub una sezione basta indicare con esattezza
    un title
    una partizione
    un kernel con la partizione
    initrd se presente
    poi fa da se

    questa è sarge di default ad esempio

    title Debian GNU/Linux, kernel 2.6.8-2-386
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro
    initrd /boot/initrd.img-2.6.8-2-386
    savedefault
    boot

    basta controllare il vmlinuz che hai in /boot

  6. #6
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    7,691
    aggiornamento:

    ho reinstallato in /dev/hda2 l'ultima versione di knoppix (CD) appena scaricata, che mi ha messo nell'MBR GRUB con il seguente /dev/hda2/boot/grub/menu.lst

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 5

    # Pretty colours
    color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=/dev/hda2 ro ramdisk_size=100000 lang=it apm=power-off nomce vga=791

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,1)

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=false

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery mode) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## ## End Default Options ##

    title Debian GNU/Linux, kernel 2.6.17 Default
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 ro ramdisk_size=100000 lang=it apm=power-off nomce vga=791
    initrd /boot/initrd.img
    savedefault
    boot

    title Debian GNU/Linux, kernel 2.6.17
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.17 root=/dev/hda2 ro ramdisk_size=100000 lang=it apm=power-off nomce vga=791
    initrd /boot/initrd.img-2.6.17
    savedefault
    boot

    # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXX

    # Aggiunti da me, presi dal vecchio grub di PuppyLinux, che avviava PuppyLinux in /dev/hda5

    title PuppyLinux (on /dev/hda5)
    root (hd0,4)
    kernel /boot/vmlinuz root=/dev/hda5 ro vga=normal

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    Così come sopra, posso avviare scegliendo l'ultima opzione, PuppyLinux in hda5. ma se scelgo una delle prime due voci riferite a Knoppix in hda2, ottengo il seguente errore:

    .................................................. .......
    .................................................. .
    (parentesi quadra aperta)Linux-initrd.img (chiocciola) 0x1fb20000, 0x4cfd00byte(parentesi quadra chiusa)
    savedefault
    Error 16: Inconsistent filesystem structure...

    se invece commento le righe riferite a PuppyLinux, parte regolarmente Knoppix con una o l'altra delle due opzioni.

    in /hda5/boot ci sono i seguenti files

    drwxr-xr-x 3 root root 4096 May 26 22:51 .
    drwxr-xr-x 14 root root 4096 Jun 4 08:04 ..
    drwxr-xr-x 2 root root 4096 May 26 22:52 grub
    -rw-r--r-- 1 root root 1047363 May 26 22:50 vmlinuz

    ed in /dev/hda5/boot/grub

    drwxr-xr-x 2 root root 4096 May 26 22:52 .
    drwxr-xr-x 3 root root 4096 May 26 22:51 ..
    -rw-r--r-- 1 root root 15 May 26 22:52 device.map
    -rw-r--r-- 1 root root 7808 May 2 2005 e2fs_stage1_5
    -rw-r--r-- 1 root root 7568 May 2 2005 fat_stage1_5
    -rw-r--r-- 1 root root 6848 May 2 2005 iso9660_stage1_5
    -rw-r--r-- 1 root root 512 May 26 22:52 mbr.hda.10206
    -rw-r--r-- 1 root root 1326 May 26 22:52 menu.lst
    -rw-r--r-- 1 root root 9280 May 2 2005 reiserfs_stage1_5
    -rw-r--r-- 1 root root 512 May 2 2005 stage1
    -rw-r--r-- 1 root root 94034 May 2 2005 stage2
    -rw-r--r-- 1 root root 94034 May 2 2005 stage2_eltorito
    -rw-r--r-- 1 root root 7156 May 2 2005 ufs2_stage1_5
    -rw-r--r-- 1 root root 1833 May 26 22:52 usage.txt

    Come si vede in hda5 (puppylinux) non c'è traccia di initrd.

    Perchè se aggiungo le righe relative a PuppyLinux non parte più Knoppix ?

    Grazie a tutti
    ... S'i' fosse Giorgio, com'i' sono e fui,
    torrei le donne giovani e leggiadre:
    le vecchie e laide lasserei altrui....
    Non mandatemi PVT, mi dimentico sempre di leggerli ... mandatemi e-mail, se è il caso

  7. #7
    Utente di HTML.it
    Registrato dal
    Jan 2001
    Messaggi
    7,691
    credo di aver capito ...

    Probabilmente si tratta di un malfunzionamento hardware, qualche settore difettoso sul disco.
    Infatti, ho rinominato menu.lst e poi l'ho copiato come menu.lst e funziona perfettamente (almeno per ora), probabilmente non riusciva a leggere correttamente il settore.

    Esite qualche comando od utility che individui e segni i settori danneggiati di modo che non vengano usati in seguito ? Avevo cerato in passato, ma senza risultato.
    Per non mischiare capra e cavoli, apro un nuovo thread in merito.
    ... S'i' fosse Giorgio, com'i' sono e fui,
    torrei le donne giovani e leggiadre:
    le vecchie e laide lasserei altrui....
    Non mandatemi PVT, mi dimentico sempre di leggerli ... mandatemi e-mail, se è il caso

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.