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: 162

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: 162

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: 1029

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: 162

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: 486

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: 162

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: 1029

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-probe , 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
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