View previous topic :: View next topic |
Author |
Message |
GianGian2387 Apprentice
Joined: 03 Jun 2021 Posts: 163
|
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: 163
|
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: 163
|
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: 163
|
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-prober , magari sistema questa avaria .... _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
GianGian2387 Apprentice
Joined: 03 Jun 2021 Posts: 163
|
Posted: Sat Nov 02, 2024 8:29 am Post subject: |
|
|
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 |
|
|
|