View previous topic :: View next topic |
Author |
Message |
GianGian2387 Apprentice
Joined: 03 Jun 2021 Posts: 162
|
Posted: Tue Oct 15, 2024 9:51 am Post subject: Problema Grub |
|
|
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 |
|
|
GianGian2387 Apprentice
Joined: 03 Jun 2021 Posts: 162
|
Posted: Thu Oct 31, 2024 5:32 pm Post subject: |
|
|
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 |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1029
|
Posted: Thu Oct 31, 2024 8:04 pm Post subject: |
|
|
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 |
|
|
GianGian2387 Apprentice
Joined: 03 Jun 2021 Posts: 162
|
Posted: Thu Oct 31, 2024 10:25 pm Post subject: |
|
|
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 |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 486
|
Posted: Fri Nov 01, 2024 9:30 am Post subject: |
|
|
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 |
|
|
GianGian2387 Apprentice
Joined: 03 Jun 2021 Posts: 162
|
Posted: Fri Nov 01, 2024 8:06 pm Post subject: |
|
|
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 |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1029
|
Posted: Fri Nov 01, 2024 10:30 pm Post subject: |
|
|
c'è qualcosa che non va....
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-probe , magari sistema questa avaria .... _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
|