Repository 32bit  Forum
Repository 64bit  Wiki

errore grub-install

Se avete problemi con l'installazione e la configurazione di Slackware64 postate qui. Non usate questo forum per argomenti che trattano la Slackware32 o generali... per quelli usate rispettivamente il forum Slackware e Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.

errore grub-install

Messaggioda varjag » mer mar 13, 2013 13:13

Buon giorno.
Spero che qualcuno usi grub2 e non lilo :)

Sto studiando Slackware64 14 da qualche mese per abbandonare dopo 5 anni Debian, stufo di controllo totale delle dipendenze da parte del distributivo e continui aggiornamenti con problemi derivati....

Sto cercando configurare l'avvio di Slackware64 14 con grub2. Ho scaricato e installato grub2 da SBo con relative dipendenze.

Codice: Seleziona tutto
Linux varjag 3.2.29 #2 SMP Mon Sep 17 14:19:22 CDT 2012 x86_64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz GenuineIntel GNU/Linux


Codice: Seleziona tutto
fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 testine, 63 settori/tracce, 60801 cilindri, totale 976773168 settori
Unità = sectors di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Identificativo disco: 0x07f2837e

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1              63      208844      104391   de  Dell Utility
Partition 1 does not start on physical sector boundary.
/dev/sda2   *      212992    41172991    20480000    7  HPFS/NTFS/exFAT
/dev/sda3        41172992   409798655   184312832    7  HPFS/NTFS/exFAT
/dev/sda4       409798656   976773119   283487232   83  Linux

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

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048   195508223    97753088   83  Linux
/dev/sdb2       195508224   246708223    25600000   83  Linux
/dev/sdb3       293167102   912320511   309576705    5  Esteso
Partition 3 does not start on physical sector boundary.
/dev/sdb5       293167104   312696831     9764864   82  Linux swap
/dev/sdb6       312698880   851924991   269613056   83  Linux
/dev/sdb7       851927040   912320511    30196736   83  Linux


dopo il :
Codice: Seleziona tutto
grub-mkconfig -o /boot/grub/grub.cfg

Codice: Seleziona tutto
cat /boot/grub/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="0"

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  e95c2abf-3f27-411e-9c3c-8380ead79dff
else
  search --no-floppy --fs-uuid --set=root e95c2abf-3f27-411e-9c3c-8380ead79dff
fi
    font="/usr/share/grub/unifont.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=it_IT
  insmod gettext
fi
terminal_output gfxterm
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Slackware-14.0 GNU/Linux' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e95c2abf-3f27-411e-9c3c-8380ead79dff' {
        load_video
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  e95c2abf-3f27-411e-9c3c-8380ead79dff
        else
          search --no-floppy --fs-uuid --set=root e95c2abf-3f27-411e-9c3c-8380ead79dff
        fi
        echo    'Caricamento Linux 3.2.29...'
        linux   /boot/vmlinuz-huge-3.2.29 root=/dev/sdb2 ro 
}
submenu 'Opzioni avanzate per Slackware-14.0 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e95c2abf-3f27-411e-9c3c-8380ead79dff' {
        menuentry 'Slackware-14.0 GNU/Linux, con Linux 3.2.29' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.29-advanced-e95c2abf-3f27-411e-9c3c-8380ead79dff' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  e95c2abf-3f27-411e-9c3c-8380ead79dff
                else
                  search --no-floppy --fs-uuid --set=root e95c2abf-3f27-411e-9c3c-8380ead79dff
                fi
                echo    'Caricamento Linux 3.2.29...'
                linux   /boot/vmlinuz-huge-3.2.29 root=/dev/sdb2 ro 
        }
        menuentry 'Slackware-14.0 GNU/Linux, con Linux 3.2.29 (modalità ripristino)' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.29-recovery-e95c2abf-3f27-411e-9c3c-8380ead79dff' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  e95c2abf-3f27-411e-9c3c-8380ead79dff
                else
                  search --no-floppy --fs-uuid --set=root e95c2abf-3f27-411e-9c3c-8380ead79dff
                fi
                echo    'Caricamento Linux 3.2.29...'
                linux   /boot/vmlinuz-huge-3.2.29 root=/dev/sdb2 ro single
        }
        menuentry 'Slackware-14.0 GNU/Linux, con Linux 3.2.29' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.29-advanced-e95c2abf-3f27-411e-9c3c-8380ead79dff' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  e95c2abf-3f27-411e-9c3c-8380ead79dff
                else
                  search --no-floppy --fs-uuid --set=root e95c2abf-3f27-411e-9c3c-8380ead79dff
                fi
                echo    'Caricamento Linux 3.2.29...'
                linux   /boot/vmlinuz-generic-3.2.29 root=/dev/sdb2 ro 
        }
        menuentry 'Slackware-14.0 GNU/Linux, con Linux 3.2.29 (modalità ripristino)' --class slackware-14.0 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.29-recovery-e95c2abf-3f27-411e-9c3c-8380ead79dff' {
                load_video
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos2'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2  e95c2abf-3f27-411e-9c3c-8380ead79dff
                else
                  search --no-floppy --fs-uuid --set=root e95c2abf-3f27-411e-9c3c-8380ead79dff
                fi
                echo    'Caricamento Linux 3.2.29...'
                linux   /boot/vmlinuz-generic-3.2.29 root=/dev/sdb2 ro single
        }
}

### 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 'Windows 7 (loader) (su /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-D078008A78007210' {
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  D078008A78007210
        else
          search --no-floppy --fs-uuid --set=root D078008A78007210
        fi
        chainloader +1
}
menuentry 'Debian GNU/Linux (7.0)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-a60fff23-3a7d-47da-b386-c842948fdd7d' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  a60fff23-3a7d-47da-b386-c842948fdd7d
        else
          search --no-floppy --fs-uuid --set=root a60fff23-3a7d-47da-b386-c842948fdd7d
        fi
        linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro quiet
        initrd /boot/initrd.img-3.2.0-4-amd64
}
submenu 'Opzioni avanzate per Debian GNU/Linux (7.0)' $menuentry_id_option 'osprober-gnulinux-advanced-a60fff23-3a7d-47da-b386-c842948fdd7d' {
        menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-amd64 (su /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64--a60fff23-3a7d-47da-b386-c842948fdd7d' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  a60fff23-3a7d-47da-b386-c842948fdd7d
                else
                  search --no-floppy --fs-uuid --set=root a60fff23-3a7d-47da-b386-c842948fdd7d
                fi
                linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro quiet
                initrd /boot/initrd.img-3.2.0-4-amd64
        }
        menuentry 'Debian GNU/Linux, con Linux 3.2.0-4-amd64 (modalità ripristino) (su /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-amd64-root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro single-a60fff23-3a7d-47da-b386-c842948fdd7d' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  a60fff23-3a7d-47da-b386-c842948fdd7d
                else
                  search --no-floppy --fs-uuid --set=root a60fff23-3a7d-47da-b386-c842948fdd7d
                fi
                linux /boot/vmlinuz-3.2.0-4-amd64 root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro single
                initrd /boot/initrd.img-3.2.0-4-amd64
        }
        menuentry 'Debian GNU/Linux, con Linux 3.2.0-2-amd64 (su /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-2-amd64--a60fff23-3a7d-47da-b386-c842948fdd7d' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  a60fff23-3a7d-47da-b386-c842948fdd7d
                else
                  search --no-floppy --fs-uuid --set=root a60fff23-3a7d-47da-b386-c842948fdd7d
                fi
                linux /boot/vmlinuz-3.2.0-2-amd64 root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro quiet
                initrd /boot/initrd.img-3.2.0-2-amd64
        }
        menuentry 'Debian GNU/Linux, con Linux 3.2.0-2-amd64 (modalità ripristino) (su /dev/sdb1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-2-amd64-root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro single-a60fff23-3a7d-47da-b386-c842948fdd7d' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  a60fff23-3a7d-47da-b386-c842948fdd7d
                else
                  search --no-floppy --fs-uuid --set=root a60fff23-3a7d-47da-b386-c842948fdd7d
                fi
                linux /boot/vmlinuz-3.2.0-2-amd64 root=UUID=a60fff23-3a7d-47da-b386-c842948fdd7d ro single
                initrd /boot/initrd.img-3.2.0-2-amd64
        }
}

menuentry 'Ubuntu 12.10 (12.10)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-6b5e560e-1697-4521-b3e7-4144c4f873eb' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos7'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  6b5e560e-1697-4521-b3e7-4144c4f873eb
        else
          search --no-floppy --fs-uuid --set=root 6b5e560e-1697-4521-b3e7-4144c4f873eb
        fi
        linux /boot/vmlinuz-3.5.0-17-generic root=UUID=6b5e560e-1697-4521-b3e7-4144c4f873eb ro quiet splash $vt_handoff
        initrd /boot/initrd.img-3.5.0-17-generic
}
submenu 'Opzioni avanzate per Ubuntu 12.10 (12.10)' $menuentry_id_option 'osprober-gnulinux-advanced-6b5e560e-1697-4521-b3e7-4144c4f873eb' {
        menuentry 'Ubuntu'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-simple-6b5e560e-1697-4521-b3e7-4144c4f873eb (su /dev/sdb7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic--6b5e560e-1697-4521-b3e7-4144c4f873eb' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  6b5e560e-1697-4521-b3e7-4144c4f873eb
                else
                  search --no-floppy --fs-uuid --set=root 6b5e560e-1697-4521-b3e7-4144c4f873eb
                fi
                linux /boot/vmlinuz-3.5.0-17-generic root=UUID=6b5e560e-1697-4521-b3e7-4144c4f873eb ro quiet splash $vt_handoff
                initrd /boot/initrd.img-3.5.0-17-generic
        }
        menuentry 'Ubuntu, con Linux 3.5.0-17-generic'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.5.0-17-generic-advanced-6b5e560e-1697-4521-b3e7-4144c4f873eb (su /dev/sdb7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic--6b5e560e-1697-4521-b3e7-4144c4f873eb' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  6b5e560e-1697-4521-b3e7-4144c4f873eb
                else
                  search --no-floppy --fs-uuid --set=root 6b5e560e-1697-4521-b3e7-4144c4f873eb
                fi
                linux /boot/vmlinuz-3.5.0-17-generic root=UUID=6b5e560e-1697-4521-b3e7-4144c4f873eb ro quiet splash $vt_handoff
                initrd /boot/initrd.img-3.5.0-17-generic
        }
        menuentry 'Ubuntu, con Linux 3.5.0-17-generic (modalità ripristino)'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.5.0-17-generic-recovery-6b5e560e-1697-4521-b3e7-4144c4f873eb (su /dev/sdb7)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic--6b5e560e-1697-4521-b3e7-4144c4f873eb' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos7'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos7 --hint-efi=hd1,msdos7 --hint-baremetal=ahci1,msdos7  6b5e560e-1697-4521-b3e7-4144c4f873eb
                else
                  search --no-floppy --fs-uuid --set=root 6b5e560e-1697-4521-b3e7-4144c4f873eb
                fi
                linux /boot/vmlinuz-3.5.0-17-generic root=UUID=6b5e560e-1697-4521-b3e7-4144c4f873eb ro recovery nomodeset
                initrd /boot/initrd.img-3.5.0-17-generic
        }
}

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###


Quindi cerco di installare grub2 e qui l'errore:

Codice: Seleziona tutto
grub-install  /dev/sda
/usr/sbin/grub-bios-setup: avviso: your embedding area is unusually small.  core.img won't fit in it..                               
/usr/sbin/grub-bios-setup: errore: L'embed non è possibile, ma è richiesto per l'installazione su più dischi.


Su google non ho trovato soluzione.

L'avvio gestisce grub2 del Debian..
immagino che Debian installa grub2 in /dev/sda o sbaglio?

Debian si trova in partizione /dev/sdb1.
Slackware si trova in /dev/sdb2

Qui forse faccio confusione, non sono informatico.

Si puo installare grub anche in /dev/sdb?

Grazie in anticipo per aiuto.
varjag
Linux 1.0
Linux 1.0
 
Messaggi: 88
Iscritto il: mer mag 11, 2011 18:32

Re: errore grub-install

Messaggioda joseph » dom mar 17, 2013 1:35

Prova in questo modo:
Codice: Seleziona tutto
grub-install --no-floppy /dev/sdb
Avatar utente
joseph
Linux 2.4
Linux 2.4
 
Messaggi: 205
Iscritto il: lun giu 14, 2010 22:50
Località: Salerno
Slackware: 13.37
Kernel: 3.2.9
Desktop: xfce


Torna a Slackware64

Chi c’è in linea

Visitano il forum: Nessuno e 4 ospiti