Scenario: Booten Lin System nicht mgl., PC hängt ======== (s.u. Beispiele) *** a. Mit "SystemGrub2BootManager versuchen zu booten Auf letzte ! Kernel-Version achten beim Start des Kernels ! Testen ob im EFI - Mode gebootet wurde ! : [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD" should return "EFI boot on HDD". *** b. evtl. EFI Mode beim Booten herstellen: s. "debian_uefi_bootfaehig_machen-reinstall.txt" ( https://wiki.debian.org/GrubEFIReinstall ) Nach Anschluss einer HD unformatiert war plötzlich die UEFI-Option für DVD-Laufwerk erschienen. Mit SystemGrub2BootManager dann als UEFI gebootet: ok (s.u. NVRAM) Sonst s. /media/sdb2/DATA/Html/g-h-o-de/Help/Linux/Booten/GRUB_2/UEFI-mode/installing_restoring_GRUB_in_EFI_mode.txt (ASUS: UEFI-shell starten von USB mittels Stick, Datei shellx64.efi (= grubx64.efi ) *** c. GRUB2 installieren BIOS (Legacy) see Help/Booten-GPT-BIOS-UEFI/GRUB/Linux_Booten_GRUB_2/grub_2.txt für BIOS z.B. Commandline of GRUB 2 ===================== installs grub in /dev/sda3, actuel loaded system = /dev/sda3 Source for /boot/grub/grub.cfg is /dev/sda3 (mounted) grub-install /dev/sda3 installs grub in /dev/sda3, Source for /boot/grub/grub.cfg is /dev/sda1 (mounted) grub-install --root-directory=/media/sda1 /dev/sda3 # grub v. 1.98 grub-install --root-device=/media/sda1 /dev/sda3 # grub v. 1.99~rc1-13ubuntu3 grub-install --boot-directory=/media/sda1 /dev/sda3 # grub v. 2.02 grub-install --boot-directory=/boot/grub /dev/sda # grub v. 2.02 You can always reinstall Linux/Unix loader to PBR (a single command like "grub-install /dev/sda3" in Ubuntu/Fedora installs GRUB2 boot sector to partition 3) evtl. Partition als BOOT kennzeichnen *** d. GRUB2 installieren EFI s. Help/Booten-GPT-BIOS-UEFI/debian_uefi_bootfaehig_machen-reinstall.txt ( https://wiki.debian.org/GrubEFIReinstall ) EFI Mode ok? [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD" should return "EFI boot on HDD". After starting a root shell ( if you boot from a live media, you should start a chroot shell instead, as explained in https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot ) check that your EFI system partition (most probably /dev/sda1) is mounted on /boot/efi mount /dev/sda1 /boot/efi Reinstall the grub-efi package (in /dev/sda1 z.B. wird debian bootloader unter /boot/grub/x86_64-efi/grub.efi apt-get install --reinstall grub-efi Put the debian bootloader in /boot/efi and create an appropriate entry in the computer NVRAM ( /boot/grub/x86_64-efi/grub.efi -> /boot/efi/grubx64.efi ) (! bei Änderung:) grub-install /dev/sda Recreate a grub config file based on your disk partitioning schema (! bei Änderung:) update-grub You should check afterwards that: 1. the bootloader is existing in /boot/efi/EFI/debian/grubx64.efi and file /boot/efi/EFI/debian/grubx64.efi ( here: /boot/efi/EFI/linuxmint/grubx64.efi ) /boot/efi/EFI/debian/grubx64.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows 2. the nvram entry was properly created. efibootmgr --verbose | grep debian ( here: efibootmgr --verbose | grep linuxmint ) You can now reboot, and Grub should greet you. ------ Probiere mal diesen Befehl, der sagt, was supportet wird: sudo dmidecode -t0 | grep -Ei "(BIOS boot|UEFI)" ------ Zuviele Einträge werden mit efibootmgr angezeigt oder system will nicht mehr booten, findet keinen efi-Eintrag, zeigt keinen Eintrag mehr an mit F8: alle HDs abklemmen, booten: loescht alte Eintraege im NVRAM Dann wieder anklemmen, wird neu eingelesen ------------------------------------------------------------------- In WIN Fastboot unter Energie / erweitert / Ausschalttaste deaktivieren ! *** Windows Schnellstart https://wiki.ubuntuusers.de/Dualboot/ Seit Windows 8 ist standardmäßig das Feature "Schnellstart" aktiviert. In einem Multiboot-System ist es allerdings kontraproduktiv, es funktioniert zum einen nicht - das Hochfahren kann unter diesen Umständen sogar länger dauern - zum anderen kann die EFI Systempartition beschädigt werden. Außerdem kann auf die Windows-Partition in Ubuntu nur lesend zugegriffen werden. Aus diesen Gründen sollte der Schnellstart-Modus im Dual-Boot Betrieb unbedingt deaktiviert werden. Diese Funktion findet man in den Energieoptionen von Windows. Siehe auch Links am Seitenende. Auch der Ruhezustand sollte deaktiviert werden, sonst gibt es unter Ubuntu Probleme beim Einbinden von Windows-Partitionen. Dazu den folgenden Windows-Befehl mit Administratorrechten ausführen: powercfg.exe -h off ----------- Beispiele -------------------------------------------------------- 1.) z.B. /dev/sda8 # fdisk -l /dev/sda Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors 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: 1F249E7D-C453-413D-9D92-BEB200996065 Device Start End Sectors Size Type /dev/sda1 2048 1085439 1083392 529M Windows recovery environment /dev/sda2 1085440 1290239 204800 100M EFI System /dev/sda3 1290240 1323007 32768 16M Microsoft reserved /dev/sda4 1323008 312616959 311293952 148,4G Microsoft basic data /dev/sda5 312619008 419115007 106496000 50,8G Linux filesystem /dev/sda6 419115008 541995007 122880000 58,6G Linux filesystem /dev/sda7 541995008 562475007 20480000 9,8G Linux filesystem /dev/sda8 562475008 686379007 123904000 59,1G Linux filesystem /dev/sda9 686379008 743723007 57344000 27,4G Linux filesystem EFI auf /dev/sda2 system /dev/sda8 starten mount -v /dev/sda2 /boot/efi grub-install update-grub (liest /etc/grb.d/* ein) wenn 2. Linux-System erscheinen soll: extra Datei anlegen /etc/grub.d/41_custom-sda05-LMDE_3 dann wiederholen: update-grub (liest erneut /etc/grb.d/* ein)