Il Grub di Salix non mi avvia più Gentoo

Italian forum
Post Reply
User avatar
Zievatron
Posts: 272
Joined: 31. Jan 2012, 15:13

Il Grub di Salix non mi avvia più Gentoo

Post by Zievatron »

Ciao a tutti,
Dopo gli ultimi aggiornamenti, che hanno richiesto anche un update-grub, è sorto un problema.
Il Grub di Salix non riesce più ad avviare Gentoo. Mi compare un messaggio di "File not found".
Ci deve essere qualche riga nel file di configurazione di Grub che è venuta sbagliata (chissà perchè?).
Però io non ho idea nè di quale sia l'errore nè di come devo correggere.
Vi posto i file di configurazione di entrambi i grub, di Salix e di Gentoo ed il risultato di fdisk -l e blkid
Se qualcuno riesce ad aiutarmi.

Salix grub.cfg

Code: Select all

root[grub]# cat grub.cfg
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #

    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      load_env
    fi
    set default="${saved_entry}"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi

    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }

    function load_video {
      insmod vbe
      insmod vga
      insmod video_bochs
      insmod video_cirrus
    }

    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos9)'
    search --no-floppy --fs-uuid --set=root ae6fca37-5894-429a-880f-00aacd4964e3
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos8)'
      search --no-floppy --fs-uuid --set=root 8915d2d6-1f83-4113-8a0f-9cf817362157
      set locale_dir=($root)/grub/locale
      set lang=it_IT
      insmod gettext
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos8)'
    search --no-floppy --fs-uuid --set=root 8915d2d6-1f83-4113-8a0f-9cf817362157
    insmod jpeg
    background_image -m stretch /grub/salix.jpg
    set timeout=5
    ### END /etc/grub.d/00_header ###

    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Salix 13.37.0 GNU/Linux, con Linux 3.3.6' --class salix --class gnu-linux --class gnu --class os {
       load_video
       set gfxpayload=keep
       insmod gzio
       insmod part_msdos
       insmod ext2
       set root='(hd0,msdos8)'
       search --no-floppy --fs-uuid --set=root 8915d2d6-1f83-4113-8a0f-9cf817362157
       echo   'Caricamento Linux 3.3.6...'
       linux   /vmlinuz-huge-recent-3.3.6 root=/dev/sda9 ro vt.default_utf8=1 resume=/dev/sda3  quiet vga=791
    }
    menuentry 'Salix 13.37.0 GNU/Linux, con Linux 3.3.6 (modalità ripristino)' --class salix --class gnu-linux --class gnu --class os {
       load_video
       set gfxpayload=keep
       insmod gzio
       insmod part_msdos
       insmod ext2
       set root='(hd0,msdos8)'
       search --no-floppy --fs-uuid --set=root 8915d2d6-1f83-4113-8a0f-9cf817362157
       echo   'Caricamento Linux 3.3.6...'
       linux   /vmlinuz-huge-recent-3.3.6 root=/dev/sda9 ro single vt.default_utf8=1 resume=/dev/sda3
    }
    menuentry 'Salix 13.37.0 GNU/Linux, con Linux 2.6.37.6' --class salix --class gnu-linux --class gnu --class os {
       load_video
       set gfxpayload=keep
       insmod gzio
       insmod part_msdos
       insmod ext2
       set root='(hd0,msdos8)'
       search --no-floppy --fs-uuid --set=root 8915d2d6-1f83-4113-8a0f-9cf817362157
       echo   'Caricamento Linux 2.6.37.6...'
       linux   /vmlinuz-huge-2.6.37.6 root=/dev/sda9 ro vt.default_utf8=1 resume=/dev/sda3  quiet vga=791
    }
    menuentry 'Salix 13.37.0 GNU/Linux, con Linux 2.6.37.6 (modalità ripristino)' --class salix --class gnu-linux --class gnu --class os {
       load_video
       set gfxpayload=keep
       insmod gzio
       insmod part_msdos
       insmod ext2
       set root='(hd0,msdos8)'
       search --no-floppy --fs-uuid --set=root 8915d2d6-1f83-4113-8a0f-9cf817362157
       echo   'Caricamento Linux 2.6.37.6...'
       linux   /vmlinuz-huge-2.6.37.6 root=/dev/sda9 ro single vt.default_utf8=1 resume=/dev/sda3
    }
    ### END /etc/grub.d/10_linux ###

    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
       insmod part_msdos
       insmod ntfs
       set root='(hd0,msdos1)'
       search --no-floppy --fs-uuid --set=root ECACF9FDACF9C25E
       drivemap -s (hd0) ${root}
       chainloader +1
    }
    menuentry "Gentoo Linux linux-3.2.1-gentoo-r2 (on /dev/sda6)" --class gnu-linux --class gnu --class os {
       insmod part_msdos
       insmod ext2
       set root='(hd0,msdos6)'
       search --no-floppy --fs-uuid --set=root 7237a91e-01ec-40d0-92a7-daa64e4fbcf6
       linux /boot/kernel-miaprova1 root=/dev/sda6
    }
    ### END /etc/grub.d/30_os-prober ###

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###

    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
Gentoo grub.conf

Code: Select all

root[grub]# cat grub.conf
    # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
    # http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
    # If you are not using Genkernel and you need help creating this file, you
    # should consult the handbook. Alternatively, consult the grub.conf.sample that
    # is included with the Grub documentation.

    default 0
    timeout 30
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz

    title Gentoo Linux linux-3.2.1-gentoo-r2
    root (hd0,4)
    kernel /boot/kernel-miaprova1 root=/dev/sda6

Code: Select all

root[unknow]# fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 testine, 63 settori/tracce, 19457 cilindri, totale 312581808 settori
    Unità = settori di 1 * 512 = 512 byte
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Identificativo disco: 0x00041b2b

    Dispositivo Boot      Start         End      Blocks   Id  System
    /dev/sda1   *          63    43006004    21502971    7  HPFS/NTFS/exFAT
    /dev/sda2        43006005    86012009    21503002+   7  HPFS/NTFS/exFAT
    /dev/sda3       307197952   312580095     2691072   82  Linux swap
    /dev/sda4        86013952   307197951   110592000    5  Esteso
    /dev/sda5        86016000    87039999      512000   83  Linux
    /dev/sda6        87042048   148482047    30720000   83  Linux
    /dev/sda7       148484096   271364095    61440000   83  Linux
    /dev/sda8       271366144   272390143      512000   83  Linux
    /dev/sda9       272392192   307197951    17402880   83  Linux

    Le voci nella tabella delle partizioni non sono nello stesso ordine del disco

    Disk /dev/sdb: 500.1 GB, 500107860992 bytes
    255 testine, 63 settori/tracce, 60801 cilindri, totale 976773166 settori
    Unità = settori di 1 * 512 = 512 byte
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Identificativo disco: 0x7bbba113

    Dispositivo Boot      Start         End      Blocks   Id  System
    /dev/sdb1              63   976768064   488384001    7  HPFS/NTFS/exFAT

Code: Select all

root[unknow]# blkid
    /dev/sda1: UUID="ECACF9FDACF9C25E" TYPE="ntfs"
    /dev/sda5: LABEL="boot" UUID="5c0ab23e-5da8-4f05-978d-a0b851cd4988" TYPE="ext2"
    /dev/sda6: LABEL="Gentoo" UUID="7237a91e-01ec-40d0-92a7-daa64e4fbcf6" TYPE="ext4"
    /dev/sda7: UUID="965a0d7c-52bc-4bd8-9c99-78486da88150" TYPE="ext4" LABEL="home"
    /dev/sdb1: LABEL="FreeAgent Drive" UUID="80145A12145A0B92" TYPE="ntfs"
    /dev/sda2: LABEL="Deposito0" UUID="7C98F9FB98F9B3AC" TYPE="ntfs"
    /dev/sda3: UUID="14f8bea7-9a47-4dea-8953-d96bc21a6d88" TYPE="swap"
    /dev/sda8: LABEL="boot Salice" UUID="8915d2d6-1f83-4113-8a0f-9cf817362157" TYPE="ext2"
    /dev/sda9: LABEL="Salice X" UUID="ae6fca37-5894-429a-880f-00aacd4964e3" TYPE="ext4"
User avatar
Kerd
Posts: 193
Joined: 25. May 2010, 17:11
Location: Italy
Contact:

Re: Il Grub di Salix non mi avvia più Gentoo

Post by Kerd »

Premesso che io non ho mai usato grub2 ma il nome del kernel è proprio questo: kernel-miaprova1 ?
Di quali aggiornamenti parli?
User avatar
Zievatron
Posts: 272
Joined: 31. Jan 2012, 15:13

Re: Il Grub di Salix non mi avvia più Gentoo

Post by Zievatron »

Sì, il nome del kernel è giusto. E' l'unico che ho "cucito" io, un po' con qualche dritta, un po' a naso. :D

Avevo aggiornato sia Gentoo che Salix.
In Salix ho aggiornato il kernel e, come suggerito, ho dato il comando update-grub.
Post Reply