Häufige Probleme
- GRUB wird nach der Installation von Windows überschrieben, startet direkt in Windows
- Der Windows-Booteintrag verschwindet nach der Installation von Ubuntu
- Das GRUB-Menü wird nicht angezeigt oder meldet „Fehler: Keine solche Partition“
- Änderungen der Startreihenfolge nach Updates
Reparieren von GRUB von einem Live-USB
Vorbereitung
- Booten Sie von einem Ubuntu 26.04 Live USB
- Wählen Sie „Ubuntu testen“, um die Live-Umgebung aufzurufen
Bestätigen Sie das Partitionslayout
# List all partitions
sudo fdisk -l
# Confirm Ubuntu root partition and EFI partition
# EFI partition is typically FAT32, around 100-512MB
# Ubuntu root partition is typically ext4
lsblk -fMounten und chrooten
# Mount Ubuntu root partition (replace sdXn with actual partition)
sudo mount /dev/sdX2 /mnt
# Mount EFI partition
sudo mount /dev/sdX1 /mnt/boot/efi
# Bind necessary virtual filesystems
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /run /mnt/run
# Enter chroot environment
sudo chroot /mntInstallieren Sie GRUB neu
# UEFI systems
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu
# Update GRUB configuration
update-grub
# Exit chroot
exit
sudo umount -R /mnt
sudo rebootVerwenden des Boot-Repair-Tools
Eine einfachere grafische Reparaturmethode:
# In the Live USB environment
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install boot-repair
# Launch boot-repair
boot-repairKlicken Sie für die automatische Reparatur auf „Empfohlene Reparatur“.
Manuelles Verwalten von EFI-Boot-Einträgen
Verwenden von efibootmgr
# View all boot entries
efibootmgr -v
# Adjust boot order (ubuntu first)
sudo efibootmgr -o 0001,0000,0002
# Delete a boot entry
sudo efibootmgr -b 0003 -B
# Add a new boot entry
sudo efibootmgr -c -d /dev/sda -p 1 -L "Ubuntu" -l "\EFI\ubuntu\shimx64.efi"Allgemeine Boot-Eintragspfade
| System | EFI-Pfad |
|---|---|
| Ubuntu | \EFI\ubuntu\shimx64.efi oder \EFI\ubuntu\grubx64.efi |
| Windows | \EFI\Microsoft\Boot\bootmgfw.efi |
GRUB-Konfiguration
Sorgen Sie dafür, dass GRUB Windows erkennt
# Ensure os-prober is installed
sudo apt install os-prober
# Enable os-prober (may be disabled by default in Ubuntu 26.04)
sudo nano /etc/default/grubStellen Sie sicher, dass die folgende Zeile enthalten ist:
GRUB_DISABLE_OS_PROBER=falseGRUB aktualisieren:
sudo update-grubDie Ausgabe sollte etwa „Windows-Boot-Manager gefunden“ anzeigen.
Passen Sie das GRUB-Timeout an
sudo nano /etc/default/grubGRUB_TIMEOUT=10 # Menu wait time in seconds
GRUB_TIMEOUT_STYLE=menu # Always show the menusudo update-grubLegen Sie den Standard-Boot-Eintrag fest
# View menu entry numbers
grep -E "menuentry|submenu" /boot/grub/grub.cfg | head -20
# Set default entry (0 is the first entry)
sudo nano /etc/default/grub
# GRUB_DEFAULT=0
# Or use a name:
# GRUB_DEFAULT="Windows Boot Manager (on /dev/sda1)"
# Remember last selection
# GRUB_DEFAULT=saved
# GRUB_SAVEDEFAULT=true
sudo update-grubWindows Update überschreibt GRUB
Bei größeren Windows-Updates wird möglicherweise die EFI-Startreihenfolge neu geschrieben. Fixmethoden:
- Geben Sie die BIOS/UEFI-Einstellungen ein und legen Sie Ubuntu/GRUB als ersten Starteintrag fest
- Oder verwenden Sie einen Live-USB, um GRUB wie oben beschrieben neu zu installieren
Probleme mit der Zeitsynchronisierung
In einem Dual-Boot-Setup zeigen Windows und Ubuntu möglicherweise unterschiedliche Zeiten an:
# Make Ubuntu use local time (consistent with Windows)
timedatectl set-local-rtc 1
# Or make Windows use UTC (recommended)
# In Windows, run:
# reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /t REG_DWORD /d 1Sicherer Start
Wenn Secure Boot aktiviert ist, stellen Sie sicher, dass GRUB einen signierten Bootloader verwendet:
# Check Secure Boot status
mokutil --sb-state
# Ubuntu uses shimx64.efi by default to handle Secure Boot
# Confirm shim is installed
dpkg -l | grep shim-signed