Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

17.03.2019, 17:56

Grub Installation UEFI

Hallo,

ein neues System. Nur Gentoo ist auf dem Rechner. Warum will GRUB nicht?

Quellcode

1
2
3
4
5
6
localhost /boot/efi # grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
Installation finished. No error reported.
localhost /boot/efi # 

----------------
grub-install neu

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * For information on how to configure GRUB2 please refer to the guide:
 *     https://wiki.gentoo.org/wiki/GRUB2_Quick_Start
>>> sys-boot/grub-2.02-r1 merged.

>>> Recording sys-boot/grub in "world" favorites file...

 * Messages for package sys-boot/grub-2.02-r1:

 * For information on how to configure GRUB2 please refer to the guide:
 *     https://wiki.gentoo.org/wiki/GRUB2_Quick_Start
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * Regenerating GNU info directory index...
 * Processed 97 info files.

 * IMPORTANT: 19 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

---------------------------------

Quellcode

1
2
3
4
5
6
7
localhost /boot/efi # grub-install /dev/sda
Installing for i386-pc platform.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.
localhost /boot/efi #  ich habe Probs mit Grub. Ich bekomme es nicht korrekt installiert. Das System selbst funzt. Ich habe kein anderes OS auf dem System. 
[code]
[/code]

Quellcode

1
2
localhost /home/michi # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id=gentoo_grub --recheck --debug
grub-install: error: /usr/lib/grub/i386-efi/modinfo.sh doesn't exist. Please specify --target or --directory.




Quellcode

1
2
3
4
5
6
7
8
#less /etc/fstab
#LABEL=boot             /boot           ext4            noauto,noatime  1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494              /               ext4            noatime         0 1
#LABEL=swap             none            swap            sw              0 0
#/dev/cdrom             /mnt/cdrom      auto            noauto,ro       0 0
/dev/sda2              /                ext4
/dev/sda1               /boot/       vfat
/etc/fstab lines 1-31/31 (END)

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#less /etc/portage/make.conf

[# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C
L10N="de"
USE="X, alsa, tk, tkinter, gtk, png, jpg, jpeg, gif"
GRUB_PLATFORMS="efi-64 pc" 
/etc/portage/make.conf lines 1-21/21

2

12.04.2019, 20:10

Du hast nicht im EFI-Modus gestartet, daher gibt es keinen Zugriff auf das EFI. Starte mal das Medium über EFI, dann sollte es gehen.

Btw. brauchst Du Grub überhaupt wenn nur Gentoo auf dem System ist? Man kann auch einfach den Linux-Kernel direkt als EFI Eintrag machen. Voraussetzung ist dass /boot mit fvat vormattiert ist, wo der Kernel liegt :-(

Bei mir sieht es so aus:

Quellcode

1
2
3
4
5
# Zugriff auf die EFI-Variablen
mount -o remount,rw /sys/firmware/efi/efivars

# Schreiben des Eintrages
efibootmgr --create --disk /dev/sda --part 4 --label "Gentoo Linux" --loader /bzImage --unicode 'quiet root=/dev/sda3'

/dev/sda4 ist meine /boot Partition, der Kernel ist als "bzImage" installiert. Ggf. muss noch die --bootorder mit dem efibootmgr gesetzt werden dass der Eintrag verwendet wird.
Auch wenn Open-Source kostenlos ist, ist sie nicht umsonst. Dein Preis ist Dein Engagement und Mitarbeit an OS-Projekten.
Wenn Du keinen Preis bezahlen willst, bist Du die Ware. Und das ist nicht Open Source, geschweigedenn frei.