Aiuto GRUB

Postate qui per tutte le discussioni legate a Linux in generale.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware 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 Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
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.
Avatar utente
darkstaring
Linux 3.x
Linux 3.x
Messaggi: 639
Iscritto il: mer ott 13, 2010 13:55
Nome Cognome: Francesco Achenza
Desktop: KDE
Distribuzione: Arch Linux
Contatta:

Aiuto GRUB

Messaggioda darkstaring » gio set 06, 2018 12:11

Salve a tutti :D
Ho due dischi un m2 e un hdd, sull'm2 ho Arch & Windows, mentre sull'hdd ho diversi sistemi, tra qui parrot security...
Ho bios con avvio uefi....
E' possibile lasciare il boot dell'M2 e partire anche sui sistemi dell'Hdd, in passato l'ho fatto ma non ci sto riuscendo ora...

Questo e' tutto il mio grub.cfg:

Codice: Seleziona tutto

#
# 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 ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

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
}

set menu_color_normal=light-gray/black
set menu_color_highlight=green/black

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
else
  search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
fi
    font="/usr/share/grub/unicode.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_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd1,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
else
  search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
fi
insmod png
background_image -m stretch /usr/share/grub/background.png
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
set color_normal=light-gray/black
set color_highlight=green/black
### END /etc/grub.d/06_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ca87b9db-9e7e-4233-8633-9ebebf4383cb' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd1,gpt4'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
        else
          search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
        fi
        echo    'Caricamento Linux 4.14.67-1-MANJARO x64...'
        linux   /boot/vmlinuz-4.14-x86_64 root=UUID=ca87b9db-9e7e-4233-8633-9ebebf4383cb rw  quiet
        echo    'Caricamento ramdisk iniziale...'
        initrd  /boot/intel-ucode.img /boot/initramfs-4.14-x86_64.img
}
submenu 'Opzioni avanzate per Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-ca87b9db-9e7e-4233-8633-9ebebf4383cb' {
        menuentry 'Manjaro Linux (Kernel: 4.14.67-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.67-1-MANJARO x64-advanced-ca87b9db-9e7e-4233-8633-9ebebf4383cb' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd1,gpt4'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
                else
                  search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
                fi
                echo    'Caricamento Linux 4.14.67-1-MANJARO x64...'
                linux   /boot/vmlinuz-4.14-x86_64 root=UUID=ca87b9db-9e7e-4233-8633-9ebebf4383cb rw  quiet
                echo    'Caricamento ramdisk iniziale...'
                initrd  /boot/intel-ucode.img /boot/initramfs-4.14-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 4.14.67-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.67-1-MANJARO x64-fallback-ca87b9db-9e7e-4233-8633-9ebebf4383cb' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd1,gpt4'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
                else
                  search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
                fi
                echo    'Caricamento Linux 4.14.67-1-MANJARO x64...'
                linux   /boot/vmlinuz-4.14-x86_64 root=UUID=ca87b9db-9e7e-4233-8633-9ebebf4383cb rw  quiet
                echo    'Caricamento ramdisk iniziale...'
                initrd  /boot/initramfs-4.14-x86_64-fallback.img
        }
        menuentry 'Manjaro Linux (Kernel: 4.14.63-rt40-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.63-rt40-1-MANJARO x64-advanced-ca87b9db-9e7e-4233-8633-9ebebf4383cb' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd1,gpt4'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
                else
                  search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
                fi
                echo    'Caricamento Linux 4.14.63-rt40-1-MANJARO x64...'
                linux   /boot/vmlinuz-4.14-rt-x86_64 root=UUID=ca87b9db-9e7e-4233-8633-9ebebf4383cb rw  quiet
                echo    'Caricamento ramdisk iniziale...'
                initrd  /boot/intel-ucode.img /boot/initramfs-4.14-rt-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 4.14.63-rt40-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.63-rt40-1-MANJARO x64-fallback-ca87b9db-9e7e-4233-8633-9ebebf4383cb' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd1,gpt4'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
                else
                  search --no-floppy --fs-uuid --set=root ca87b9db-9e7e-4233-8633-9ebebf4383cb
                fi
                echo    'Caricamento Linux 4.14.63-rt40-1-MANJARO x64...'
                linux   /boot/vmlinuz-4.14-rt-x86_64 root=UUID=ca87b9db-9e7e-4233-8633-9ebebf4383cb rw  quiet
                echo    'Caricamento ramdisk iniziale...'
                initrd  /boot/initramfs-4.14-rt-x86_64-fallback.img
        }
}

### 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 'Parrot 4.1 (4.1) (su /dev/sda5)' --class parrot --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-ec47884b-2ca8-40df-9e92-904ec79b4e6a' {
        savedefault
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ec47884b-2ca8-40df-9e92-904ec79b4e6a
        else
          search --no-floppy --fs-uuid --set=root ec47884b-2ca8-40df-9e92-904ec79b4e6a
        fi
        linux /boot/vmlinuz-4.16.0-parrot12-amd64 root=/dev/sda5 ro quiet splash noautomount quiet
        initrd /boot/initrd.img-4.16.0-parrot12-amd64
}
submenu 'Opzioni avanzate per Parrot 4.1 (4.1) (su /dev/sda5)' $menuentry_id_option 'osprober-gnulinux-advanced-ec47884b-2ca8-40df-9e92-904ec79b4e6a' {
        menuentry 'Parrot GNU/Linux (su /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.16.0-parrot12-amd64--ec47884b-2ca8-40df-9e92-904ec79b4e6a' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ec47884b-2ca8-40df-9e92-904ec79b4e6a
                else
                  search --no-floppy --fs-uuid --set=root ec47884b-2ca8-40df-9e92-904ec79b4e6a
                fi
                linux /boot/vmlinuz-4.16.0-parrot12-amd64 root=/dev/sda5 ro quiet splash noautomount quiet
                initrd /boot/initrd.img-4.16.0-parrot12-amd64
        }
        menuentry 'Parrot GNU/Linux, con Linux 4.16.0-parrot12-amd64 (su /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.16.0-parrot12-amd64--ec47884b-2ca8-40df-9e92-904ec79b4e6a' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ec47884b-2ca8-40df-9e92-904ec79b4e6a
                else
                  search --no-floppy --fs-uuid --set=root ec47884b-2ca8-40df-9e92-904ec79b4e6a
                fi
                linux /boot/vmlinuz-4.16.0-parrot12-amd64 root=/dev/sda5 ro quiet splash noautomount quiet
                initrd /boot/initrd.img-4.16.0-parrot12-amd64
        }
        menuentry 'Parrot GNU/Linux, with Linux 4.16.0-parrot12-amd64 (recovery mode) (su /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.16.0-parrot12-amd64-root=/dev/sda5 ro single quiet splash noautomount-ec47884b-2ca8-40df-9e92-904ec79b4e6a' {
                savedefault
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ec47884b-2ca8-40df-9e92-904ec79b4e6a
                else
                  search --no-floppy --fs-uuid --set=root ec47884b-2ca8-40df-9e92-904ec79b4e6a
                fi
                linux /boot/vmlinuz-4.16.0-parrot12-amd64 root=/dev/sda5 ro single quiet splash noautomount
                initrd /boot/initrd.img-4.16.0-parrot12-amd64
        }
}

menuentry 'Windows Boot Manager (su /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-efi-ACEE-3087' {
        savedefault
        insmod part_gpt
        insmod fat
        set root='hd1,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1  ACEE-3087
        else
          search --no-floppy --fs-uuid --set=root ACEE-3087
        fi
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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.
menuentry "Android"{
        insmod part_gpt
        search --file --no-floppy --set=root /Android81/system.sfs
        linux /Android81/kernel root=/dev/ram0 androidboot.selinux=permissive
        buildvariant=userdebug SRC=/Android81
        initrd /Android81/initrd.img
}
### 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 ###

### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
    menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
        search --fs-uuid --no-floppy --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4  ca87b9db-9e7e-4233-8633-9ebebf4383cb
        linux16 /boot/memtest86+/memtest.bin
    }
fi
### END /etc/grub.d/60_memtest86+ ###


Arch, Android e windows vanno..parrot no
ho anche provato con GRUB CUSTOMIZER
che mette parrot su Altro e non su Linux..con questa configurazione

Codice: Seleziona tutto

   savedefault
   insmod part_gpt
   insmod ext2
   set root='hd0,gpt5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  ec47884b-2ca8-40df-9e92-904ec79b4e6a
   else
     search --no-floppy --fs-uuid --set=root ec47884b-2ca8-40df-9e92-904ec79b4e6a
   fi
   linux /boot/vmlinuz-4.17.0-parrot17-amd64 root=UUID=ec47884b-2ca8-40df-9e92-904ec79b4e6a ro quiet splash noautomount quiet
   initrd /boot/initrd.img-4.17.0-parrot17-amd64

Sapete aiutarmi ???

Grazie in anticipo
Francesco

Avatar utente
darkstaring
Linux 3.x
Linux 3.x
Messaggi: 639
Iscritto il: mer ott 13, 2010 13:55
Nome Cognome: Francesco Achenza
Desktop: KDE
Distribuzione: Arch Linux
Contatta:

Re: Aiuto GRUB

Messaggioda darkstaring » dom set 16, 2018 13:14

up