Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Risolto gentoo uefi 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
capitanokirk
n00b
n00b


Joined: 16 Dec 2022
Posts: 12

PostPosted: Thu Jan 05, 2023 10:09 am    Post subject: Risolto gentoo uefi grub Reply with quote

Bungiorno, ho installato sul mio pc gentoo plasma, funtoo e gentoo gnome. Il problema è che quando installo il grub su una gentoo,
esempio plasma sovrascrive l'altro "gnome" e non posso accedervi. Come posso risolvere il problema?
Mi basterebbe non venisse sovrascritto per poi accedervi usando il tasto f8 tramite bios come faccio con funtoo.
PS uso systemd per entrambi.
Grazie anticipatamente per le indicazioni, auguro buona giornata a tutti.
Code:

mexwolf /home/mexwolf # fdisk -l
Disk /dev/sdb: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: BF8E99AC-886D-4DFD-A9F6-72A4994D8B87

Dispositivo     Start      Fine   Settori  Size Tipo
/dev/sdb1        2048    616447    614400  300M EFI System
/dev/sdb2      616448 461989887 461373440  220G Linux filesystem
/dev/sdb3   461989888 468862094   6872207  3.3G Linux swap


Disk /dev/sdc: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6FAA5B72-AB67-43BE-B810-36717ACFC53B

Dispositivo   Start      Fine   Settori   Size Tipo
/dev/sdc1      2048    264191    262144   128M EFI System
/dev/sdc2    264192   8652799   8388608     4G Linux swap
/dev/sdc3   8652800 468860927 460208128 219.4G Linux filesystem


Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 sectors
Disk model: Corsair Force 3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2D479A42-1A68-44B1-9B05-11F28B36F86B

Dispositivo     Start      Fine   Settori  Size Tipo
/dev/sda1        2048   1026047   1024000  500M Microsoft basic data
/dev/sda2     1026048 111618047 110592000 52.7G Linux filesystem
/dev/sda3   111618048 117229567   5611520  2.7G Linux swap


Disk /dev/sdd: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10EZEX-08W
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x4127e6bd

Dispositivo Avvio Start       Fine    Settori   Size Id Tipo
/dev/sdd1          2048 1953523711 1953521664 931.5G  7 HPFS/NTFS/exFAT
GPT PMBR size mismatch (883351 != 242155520) will be corrected by write.
The backup GPT table is not on the end of the device.


Disk /dev/sde: 115.47 GiB, 123983626752 bytes, 242155521 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 42953636-BDFD-4BDF-B5EC-30BA729EC924

Dispositivo  Start   Fine Settori   Size Tipo
/dev/sde1       64    531     468   234K Microsoft basic data
/dev/sde2      532   6291    5760   2.8M EFI System
/dev/sde3     6292 882703  876412 427.9M Apple HFS/HFS+
/dev/sde4   882704 883303     600   300K Microsoft basic data
mexwolf /home/mexwolf #


/dev/sdb gentoo gnome systemd
/dev/sdc funtoo plasma openrc
/dev/sda gentoo plasma systemd


Last edited by capitanokirk on Thu Jan 05, 2023 7:36 pm; edited 2 times in total
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 377

PostPosted: Thu Jan 05, 2023 10:26 am    Post subject: Reply with quote

Usi l'opzione "--bootloader-id" con il comando "grub-install"?
Back to top
View user's profile Send private message
capitanokirk
n00b
n00b


Joined: 16 Dec 2022
Posts: 12

PostPosted: Thu Jan 05, 2023 10:43 am    Post subject: risp. Reply with quote

Come da manuale..
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 377

PostPosted: Thu Jan 05, 2023 1:30 pm    Post subject: Reply with quote

Un "grub-install" installa il bootloader nella cartella EFI\gentoo sulla ESP. Non conosco Funtoo, ma penso che Funtoo usi la cartella EFI\funtoo per il bootloader. Puoi controllarlo con
Code:
ls -lR /boot/EFI # se /boot è il punto di mount dell'ESP


Per poter distinguere il bootloader della stessa distribuzione potresti usare (per esempio)
Code:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=gentooplasma
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=gentoognome

che installa il bootloader di Gentoo Plasma nella cartella EFI\gentooplasma e il bootloader di Gentoo Gnome nella cartella EFI\gentoognome.

Se usi l'ESP come /boot per tutti i sistemi, devi far attenzione che i nomi dei files sono diversi. Altrimenti sovrascrivi il kernel di Gentoo Plasma, se il kernel di Gentoo Gnome ha lo stesso nome. E naturalmente un "grub-mkconfig -o /boot/grub/grub.cfg" sovrascrive sempre /boot/grub/grub.cfg. Quindi hai solo una grub.cfg invece di tre.

In somma ti raccomando di usare l'ESP solo per i bootloader con il punto di mount /boot/efi e lasciare /boot nella partizione del sistema. Così hai tre sistemi operativi completamente indipendenti.
Back to top
View user's profile Send private message
capitanokirk
n00b
n00b


Joined: 16 Dec 2022
Posts: 12

PostPosted: Thu Jan 05, 2023 7:35 pm    Post subject: Risolto Reply with quote

Purtroppo continuavo ad aggiungere voci che non aprivano gentoo
GNOME.
Con efibootmgr ho fatto pulizia e poi ho compilato un diverso kernel
per gentoo gnome (gentoo-sources-5.15.86).
Grazie mille per le utili indicazioni.
Buona serata.
https://ibb.co/HC9WF2L
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