Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problema Grub
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Tue Oct 15, 2024 9:51 am    Post subject: Problema Grub Reply with quote

Buongiorno,
terminata l'installazione di Gentoo, al riavvio ricevo questo errore:

Code:
Minimal BASH-like line editing is supported. For the first word, TAB
   lists possible command completions. Anywhere else TAB lists possible
   device or file completions. To enable less(1)-like paging, "set pager=1".


ho provato a cercare in rete ma ho trovato una vecchia guida del wiki di Ubuntu, ma non ho risolto comunque nulla, sapreste dirmi come dovrei fare?
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Thu Oct 31, 2024 5:32 pm    Post subject: Reply with quote

Da chroot, ho provato a installare nuovamente grub quando do il comando:

Quote:
grub-nkconfig -o /boot/grub/grub.cfg


Ricevo questo:

Code:
 Generating grub configuration file ...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
/us/lib/os-probes/50mounted-tests: riga 88: btrfs: comando non trovato
 /us/lib/os-probes/50mounted-tests: riga 89: btrfs: comando non trovato
/us/lib/os-probes/50mounted-tests: riga 90: btrfs: comando non trovato
Adding boot menu entry for UEFI Firmware Settings ...
done


Il mio non è un sistema UEFI, è BIOS la /home e’ formattata in BTRFS, potrebbe essere questo il problema?
Il Kernel l’ho compilato con genkernel
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1033

PostPosted: Thu Oct 31, 2024 8:04 pm    Post subject: Reply with quote

Di default grub è impostato per sistemi UEFI

Se hai solo BIOS boot nel make.conf :
Code:
# Setup GRUB platforms
GRUB_PLATFORMS="pc"



Code:
# emerge -DN @world --ask

o
Code:
# emerge -DN sys-boot/grub --ask


Code:
# grub-mkconfig -o /boot/grub/grub.cfg

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Thu Oct 31, 2024 10:25 pm    Post subject: Reply with quote

Avevo dimenticato di scriverlo, sul male.conf ho scritto grub_platforms=“pc”
Comunque ho dato il comando:

Code:
packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 32.71


* sys- boot/grub
Wouldyou tike  parents testertes? [Yes/No1 yes
>>> Recording sys-boot/grub in “world” favorites file…


Ho poi ridato il comando per creare il file grub (stessi messaggi postati prima)
Al riavvio continua a darmi l’errore di inizio topic
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 488

PostPosted: Fri Nov 01, 2024 9:30 am    Post subject: Reply with quote

La versione di Grub installata all'inizio del discho e nel sistema operativo devono essere uguali. Quindi con privilegi elevati
Code:
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Fri Nov 01, 2024 8:06 pm    Post subject: Reply with quote

Code:
(chroot)
ubuntu / #
mount /dev/sda1 / boot
(chroot )
ubuntu
nano -w / etc/portage/make.conf
(chroot)
ubuntu / # env-update && source /etc/profile && export PS1="(chroot) ${PS1}"
>›› Regenerating /etc/ld.so.cache...
(chroot) ubuntu / # emerge -DN sys-boot/grub - - ask
I
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 30.78 s (backtrack: 0/20) •
* sys-boot/grub
Would you like to add these packages to your world favorites? [Yes/No] yes
>>> Recording sys-boot/grub in "world" favorites file... (chroot) ubuntu / # emerge --ask --newuse sys-boot/os-prober
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 7.45 s (backtrack: 0/20) -
(chroot) / # grub-install /dev/sda
Installazione per la piattaforna 1386-pc.
Installazione completata, nessun errore segnalato.
grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
/us/Lib/os-probes/50mounted-tests: riga 88: btrfs: comando non trovato /us/Lib/os-probes/50mounted-tests: riga 89: btrfs: comando non trovato /us/lib/os-probes/50mounted-tests: riga 90: btrfs: comando non trovato
Adding boot menu entry for UEFI Firmware Settings ...
Done


Al riavvio ho sempre la schermata postata a inizio topic, in / etc/default/grub e’ inserito:
Code:
GRUB_DISABLE_OS_PROBER="false"
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1033

PostPosted: Fri Nov 01, 2024 10:30 pm    Post subject: Reply with quote

Quote:
/us/Lib/os-probes



c'è qualcosa che non va.... :roll:


Code:
equery b /usr/lib/os-probes/50mounted-tests
 * Searching for /usr/lib/os-probes/50mounted-tests ...
sys-boot/os-prober-1.82 (/usr/lib/os-probes/50mounted-tests)


prova a reinstallare os-prober , magari sistema questa avaria ....
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Sat Nov 02, 2024 8:29 am    Post subject: Reply with quote

Code:
(chroot) ubuntu / # emerge --ask os-prober

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 15.92 s (backtrack: 0/20).

[ebuild   R    ] sys-boot/os-prober-1.82

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-boot/os-prober-1.82::gentoo
 * os-prober_1.82.tar.xz BLAKE2B SHA512 size ;-) ...                     [ ok ]
>>> Unpacking source...
>>> Unpacking os-prober_1.82.tar.xz to /var/tmp/portage/sys-boot/os-prober-1.82/work
>>> Source unpacked in /var/tmp/portage/sys-boot/os-prober-1.82/work
>>> Preparing source in /var/tmp/portage/sys-boot/os-prober-1.82/work/os-prober-1.82 ...
 * Applying os-prober-1.79-mdraid-detection.patch ...                    [ ok ]
 * Applying os-prober-1.79-btrfs-subvolume-detection.patch ...           [ ok ]
 * Applying os-prober-1.79-use-fstab-name.patch ...                      [ ok ]
 * Applying os-prober-1.79-mounted-boot-partition-fix.patch ...          [ ok ]
 * Applying os-prober-1.79-fix-busy-umount-message.patch ...             [ ok ]
 * Applying os-prober-1.79-efi-chroot-blkid-fallback.patch ...           [ ok ]
 * Applying os-prober-1.81-boot-detected-twice-v3.patch ...              [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-boot/os-prober-1.82/work/os-prober-1.82 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-boot/os-prober-1.82/work/os-prober-1.82 ...
make -j5 newns
x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs  newns.c   -o newns
>>> Source compiled.
>>> Test phase [not enabled]: sys-boot/os-prober-1.82

>>> Install sys-boot/os-prober-1.82 into /var/tmp/portage/sys-boot/os-prober-1.82/image
>>> Completed installing sys-boot/os-prober-1.82 into /var/tmp/portage/sys-boot/os-prober-1.82/image

 * Final size of build directory: 260 KiB
 * Final size of installed tree:  184 KiB

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   /usr/lib/os-prober/newns

>>> Installing (1 of 1) sys-boot/os-prober-1.82::gentoo

>>> Completed (1 of 1) sys-boot/os-prober-1.82::gentoo

 * GNU info directory index is up-to-date.
(chroot) ubuntu / # equery b /usr/lib/os-probes/50mounted-tests
 * Searching for /usr/lib/os-probes/50mounted-tests ...
sys-boot/os-prober-1.82 (/usr/lib/os-probes/50mounted-tests)
(chroot) ubuntu / # emerge -DN sys-boot/grub --ask

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 30.11 s (backtrack: 0/20).



 * sys-boot/grub

Would you like to add these packages to your world favorites? [Yes/No] yes
>>> Recording sys-boot/grub in "world" favorites file...
(chroot) ubuntu / # grub-install /dev/sda
Installazione per la piattaforma i386-pc.
Installazione completata, nessun errore segnalato.
(chroot) ubuntu / # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
/usr/lib/os-probes/50mounted-tests: riga 88: btrfs: comando non trovato
/usr/lib/os-probes/50mounted-tests: riga 89: btrfs: comando non trovato
/usr/lib/os-probes/50mounted-tests: riga 90: btrfs: comando non trovato
Adding boot menu entry for UEFI Firmware Settings ...
done
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 488

PostPosted: Sat Nov 02, 2024 10:00 am    Post subject: Reply with quote

Per favore mostra /boot/grub/grub.cfg.

Hai bisogno di os-prober?
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Sat Nov 02, 2024 10:58 am    Post subject: Reply with quote

Code:
#
# 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
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
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod btrfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0>
else
  search --no-floppy --fs-uuid --set=root 758f9e20-0f76-47ea-9028-5bd71064bfdc
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_output gfxterm
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/10_linux ###

### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware'>
                fwsetup
        }
fi
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1033

PostPosted: Sat Nov 02, 2024 11:02 am    Post subject: Reply with quote

l'applicazione nello script cerca il comando "btrfs" ,

sys-fs/btrfs-progs

è installato ?

ne hai bisogno ?
Code:
 equery h btrfs

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Sat Nov 02, 2024 12:31 pm    Post subject: Reply with quote

Ho installato nuovamente sys-fs/btrfs-progs, installato grub e ridato il comando per la creazione del file ma, all’avvio sempre lo stesso errore

Code:
(chroot) ubuntu / # equery h btrfs
 * Searching for USE flag btrfs ...
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 488

PostPosted: Sat Nov 02, 2024 1:42 pm    Post subject: Reply with quote

Hai installato un kernel? Non vedo nessun kernel nella grub.cfg.
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1033

PostPosted: Sat Nov 02, 2024 4:52 pm    Post subject: Reply with quote

sMueggli wrote:
Hai installato un kernel? Non vedo nessun kernel nella grub.cfg.

effettivamente non ha nulla di installato.

Stai utilizzando un dual-boot con ubuntu ?

Se stai condividendo una eventuale partizione di /boot con ubuntu , c'è da rivedere qualcosa sulla gestione del boot.
Chi deve gestire cosa e come.

A questo punto credo serva qualche informazione in più anche sul partizionamento applicato
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Sat Nov 02, 2024 5:28 pm    Post subject: Reply with quote

Ora non sono a casa, in serata vi posto tutte le informazioni, non sono in dual-boot, l’ssd è diviso in 3 (/boot fat32, swap circa 8gb e la terza /home btrfs).
Ho impostato fstab
Code:

         /dev/sda1   /boot        vfat    defaults,noatime     0 2
         /dev/sda2   none         swap    sw                       0 0
         /dev/sda3   /               btrfs    noatime                0 1


Il kernel l’ho installato con genkernel, nel file /etc/genkernel.conf ho decommentato la voce: MICROCODE="all"
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1033

PostPosted: Sat Nov 02, 2024 6:19 pm    Post subject: Reply with quote

Assicurati che quando viene installato il kernel , la /boot (di Gentoo) sia montata , anche quando sei in chroot.
Dovresti ricevere un warning comunque...

Prima di (re)installare :
Code:
# mount /boot

Code:
# genkernel blah blah

Code:
# grub-mkconfig -o /boot/grub/grub.cfg


Inoltre ti suggerisco di utilizzare gli UUID per le relative paritizioni nell'fstab

Li trovi con
Code:
# blkid


/etc/fstab
Code:
UUID=XXXXX-XXXXXX  /boot vfat ....
UUID=XXXXX-XXXXX   none swap sw 0 0.....
UUID=XXXXX-XXXXX   / btrfs  ....


PS :
Quote:
e la terza /home btrfs
???? /home ???
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Sat Nov 02, 2024 6:28 pm    Post subject: Reply with quote

PS :
Quote:
e la terza /home btrfs
???? /home ???[/quote]

Code:
 /dev/sda3   /               btrfs    noatime                0 1
sarebbe questa.

Seguendo l'Handbook, subito dopo aver effettuato il chroot monto la partizione di boot con:
Code:
mount /dev/sda1 /boot
(e lo faccio ben prima di compilare il kernel), comunque appena posso ripeterò i passaggi per la compilazione del kernel e vediamo un pò...
era mia intenzione impostare UUID una volta completata l'installazione
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1033

PostPosted: Sat Nov 02, 2024 8:04 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Genkernel#Starting_off

Probabilmente la mancanza di kernel nella /boot potrebbe essere dovuta a questa mancanza :
Quote:
Replacing --no-install with the --install option allows genkernel to automatically install the new kernel in the /boot directory, and will create symlinks if --symlink is specified. Using the --mountboot option allows genkernel to mount the /boot partition automatically, if necessary.


un bel contenuto di
Code:
# ls -lh /boot


potrebbe aiutare a capire cosa c'è dentro quella directory
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
GianGian2387
Apprentice
Apprentice


Joined: 03 Jun 2021
Posts: 168

PostPosted: Sat Nov 02, 2024 8:23 pm    Post subject: Reply with quote

ho dato il comando:

Code:
genkernel --install all --microcode initramfs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum