Skip to content

Linux-stelselselflaaifout en GRUB-herstel: opdragreëlherstelgids

'n Linux-stelselselflaaifout kan werkstasies, produksiebedieners en skootrekenaars met dubbele selflaai sonder waarskuwing stop, wat jou in 'n skerp grub rescue> vinnige, 'n minimum grub> dop, an (initramfs) of dracut:/# noodkonsole, 'n stelseld "You are in emergency mode" onderhoudsaanwysing, of 'n swart skerm met 'n flikkerende wyser.

Anders as bedryfstelsels wat opstartmeganika agter ondeursigtige grafiese foutkodes versteek, stel Linux elke stadium van die selflaaipyplyn direk aan die administrateur bloot. Byna elke Linux-selflaaifout spruit uit een van vyf regmaakbare hoofoorsake: 'n oorgeskrewe of verkeerd gekonfigureerde GRUB 2 selflaaiprogram (wat gewoonlik geaktiveer word na 'n Windows-opdatering op 'n dubbellaai-rekenaar), 'n vuil ext4/xfs/btrfs wortel lêerstelsel na 'n skielike kragonderbreking, 'n gebreekte /etc/fstab skyf UUID-inskrywing, 'n 100 persent volle wortel (/) berging partisie, of 'n onderbreek kern en grafiese bestuurder opgradering. Deur jou presiese boodskap op die skerm by die ooreenstemmende opstartfase te pas, kan jy die stelsel skoon herstel sonder om jou skyf te formateer of jou data te verloor.

Doen dit nou

Wanneer jou Linux-rekenaar of -bediener weier om te begin, volg hierdie ses onmiddellike diagnostiese en veiligheidsstappe voordat jy enige vernietigende skyfopdragte uitvoer:

  1. Lees die presiese boodskap op jou skerm om te identifiseer watter opstartfase misluk het:
    • grub rescue> of grub>: Die moederbord UEFI/BIOS het die eerste fase van GRUB gelaai, maar GRUB kan nie opspoor nie /boot/grub of sy konfigurasielêer (grub.cfg).
    • (initramfs) of dracut:/#: GRUB loaded the Linux kernel and initial RAM disk fine, but the kernel could not mount your main root (/) filesystem (usually because fsck needs to repair a dirty disk).
    • You are in emergency mode / Give root password for maintenance: The root filesystem mounted, but systemd failed to mount a secondary drive listed in /etc/fstab.
    • Black screen with a blinking cursor after the GRUB menu: The operating system booted, but the graphical Display Manager (GDM, SDDM, LightDM) failed due to a 100% full root disk or a broken Nvidia/AMD GPU driver.
  2. Try booting the previous Linux kernel from the GRUB menu first: Reboot the machine and hold Shift (BIOS) or tap Esc repeatedly (UEFI) right after the manufacturer logo to reveal the GRUB menu. Select "Advanced options for Ubuntu / Debian / Fedora" and pick the second-oldest kernel on the list. If a recent kernel update broke your initramfs or GPU module, the previous kernel will boot straight into your desktop in 10 seconds.
  3. Switch to a virtual TTY text console if stuck on a black screen: If the boot sequence freezes on a black screen with a blinking underscore or stuck splash logo, press Ctrl + Alt + F3 (or Ctrl + Alt + F2 through F6). If a login: text prompt appears, your Linux system is actually running, log in with your username and password to clean full disk space or fix graphics drivers.
  4. Never run fsck on a partition that is currently mounted read-write: Running fsck on a live, read-write mounted filesystem corrupts open inode tables and destroys files. Only run fsck from the (initramfs) shell (where root is unmounted), on a read-only mount, or from a Live USB stick.
  5. Unplug all non-important external USB hard drives and SD cards: A failing external USB drive listed in /etc/fstab or taking over boot priority in BIOS will halt the boot sequence. Unplug external drives and reboot to test.
  6. Prepare a Live Linux USB stick if GRUB or the kernel is completely missing: Keep a bootable Live USB flash drive (Ubuntu, Linux Mint, Fedora, or SystemRescue) handy so you can mount your encrypted or standard partitions and run a chroot bootloader repair.

Kritiek: Wat om NIE te doen nie

Never run grub-install, dd, fdisk, of mkfs until you have verified your exact disk and partition layout using lsblk -f of blkid. Device node names like /dev/sda and /dev/sdb are assigned dynamically by the Linux kernel at boot and can swap order when a Live USB stick is plugged in. Accidentally formatting or overwriting the partition table of the wrong /dev/sdX drive will destroy your data. In addition, never run filesystem repair utilities like fsck on partitions mounted read-write, never force-power off a system during an active kernel or bootloader package upgrade, and never delete system libraries in /usr/lib of /lib in an attempt to clear space on a full root drive.

Decision tree: diagnosing the 5 Linux boot failure stages

Use this diagnostic flowchart to trace your exact screen output to the matching command-line fix:

flowchart TD
    A["Linux System Fails to Boot to Desktop / Login"] --> B{"What is displayed on the screen?"}
    B -->|"grub rescue> of grub> prompt"| C["Stage 1 Failure: Use ls to locate /boot/grub, set root & prefix, boot OS, then run grub-install"]
    B -->|"BusyBox (initramfs) or dracut:/# shell"| D["Fase 2-mislukking: Identifiseer wortelpartisie met blkid en hardloop fsck -y /dev/partition"]
    B -->|"Noodmodus: Gee wortelwagwoord vir onderhoud"| E["Fase 3-mislukking: Begin mount -o remount,rw / en maak gebroke UUID reg of maak kommentaar in /etc/fstab"]
    B -->|"Swart skerm of flikkerende wyser na GRUB"| F["Fase 4-mislukking: Druk Ctrl+Alt+F3 (of boot emergency.target) om 100% volle skyf of GPU-bestuurder skoon te maak"]
    B -->|"Begin reguit in Windows of 'Geen selflaaibare toestel'"| G["UEFI/EFI-selflaaivolgorde is uitgevee: Boot Live USB, monteer Root + EFI, chroot en installeer GRUB weer"]

Vergelyking van aansporings, oorsake en opdragte van Linux selflaaifout

Op-skermfout/porboodskap Selflaai stadium bereik Primêre Oorsaak Fastest Repair Command Sequence
error: no such partition / grub rescue> Fase 1 (GRUB Core) Skyfpartisies verander, gekloon of UUID verander; GRUB kan nie vind nie /boot/grub/normal.mod. ls -> set root=(hdX,gptY) -> set prefix=(hdX,gptY)/boot/grub -> insmod normal -> normal
grub> (Standaard GRUB CLI) Fase 1.5 (GRUB Normaal) /boot/grub/grub.cfg ontbreek of uitgevee, alhoewel GRUB-modules goed gelaai is. set root=(hdX,gptY) -> linux /boot/vmlinuz-... root=/dev/nvme0n1p2 -> initrd /boot/initrd.img-... -> boot
BusyBox (initramfs) or dracut:/# Fase 2 (Kernel + Initramfs) Unclean power-off left ext4/xfs root journal dirty, requiring manual fsck approval. blkid -> fsck -y /dev/nvme0n1p2 (or xfs_repair -L for XFS) -> reboot -f
You are in emergency mode (sulogin prompt) Stage 3 (systemd Mounts) Sekondêre aandrywing of ruil partisie in /etc/fstab is ontkoppel, herformateer of korrup. Enter root password -> mount -o remount,rw / -> nano /etc/fstab (add nofail of #) -> systemctl daemon-reload -> reboot
[FAILED] Failed to start GNOME Display Manager / Blinking Cursor Stage 4 (Display Manager / GUI) Root partition / is 100% full (0 bytes free for /tmp or Xorg sockets) OR broken Nvidia kernel module (dkms). Press Ctrl+Alt+F3 -> df -h -> journalctl --vacuum-size=100M & apt clean OR ubuntu-drivers autoinstall

Scenario 1: Escaping the grub rescue> of grub> prompt without a USB stick

If your screen displays error: unknown filesystem, error: no such partition, of Minimal BASH-like line editing is supported followed by grub rescue> of grub>, your Linux installation and personal files are usually still sitting intact on your SSD or hard drive, GRUB has simply lost track of which partition holds /boot/grub. You can boot directly into your installed OS from this prompt in 2 minutes:

Case A: You are at the grub rescue> spoed

By grub rescue>, net vier basiese opdragte werk (ls, set, unset, en insmod). Volg hierdie stappe noukeurig:

  1. ** Lys alle skywe en partisies wat deur die moederbord-firmware gesien word**:
    grub rescue> ls
    
    GRUB sal 'n reël druk soos: (hd0) (hd0,gpt1) (hd0,gpt2) (hd0,gpt3) (or (hd0,msdos1) op ouer MBR-skywe).
  2. Inspekteer elke partisie totdat jy jou Linux-wortel (of /boot) gids: (Onthou om die agterste skuinsstreep in te sluit / aan die einde van elkeen ls maak seker dat GRUB die lêername binne daardie partisie lys):
    grub rescue> ls (hd0,gpt1)/
    grub rescue> ls (hd0,gpt2)/
    grub rescue> ls (hd0,gpt3)/
    
  3. As (hd0,gpt1)/ wys efi/, dit is jou klein FAT32 EFI-stelselpartisie.
  4. Wanneer 'n partisie uitvoer boot/ etc/ home/ usr/ var/ vmlinuz initrd.img, het jy jou hoof Linux-wortelpartisie gevind (byvoorbeeld, (hd0,gpt2)). (Let wel: As jy Btrfs gebruik met @ subvolumes op Ubuntu/Fedora, ls (hd0,gpt2)/ sal wys @/ @home/, wat beteken dat jou opstartgids by is (hd0,gpt2)/@/boot/grub.)
  5. ** Wys GRUB na jou partisie en laai die normal module**: Gestel jou Linux-wortel is aan (hd0,gpt2):
    grub rescue> set root=(hd0,gpt2)
    grub rescue> set prefix=(hd0,gpt2)/boot/grub
    grub rescue> insmod normal
    grub rescue> normal
    
    (As jy 'n aparte toegewyde /boot partisie aan (hd0,gpt2), gebruik set prefix=(hd0,gpt2)/grub sonder /boot.)
  6. Maak die regstelling permanent sodra jou lessenaar stewel: Sodra normal loop, sal jou gewone GRUB-kieslys verskyn en jou Linux-stelsel selflaai. Belangrik: Diegene set opdragte was tydelik in RAM. Die oomblik wat jy by jou Linux-lessenaar aanmeld, maak 'n terminaal oop en skryf permanent die korrekte GRUB-ligging op jou skyf:
    sudo update-grub
    sudo grub-install /dev/nvme0n1   # (Or /dev/sda ,  use your whole disk name, NOT a partition number)
    

Geval B: Jy is op die standaard grub> spoed

As jy sien grub> (sonder die woord rescue), die normal module is reeds gelaai, maar jou grub.cfg spyskaartlêer ontbreek of breek. U kan die Linux-kern met die hand in vier reëls selflaai deur Oortjie-outo-voltooiing te gebruik:

grub> set root=(hd0,gpt2)
grub> linux /boot/vmlinuz-6.8.0-45-generic root=/dev/nvme0n1p2 ro
grub> initrd /boot/initrd.img-6.8.0-45-generic
grub> boot
(Wenk: Tik net linux /boot/vmlinuz en druk die Tab-sleutel, GRUB sal die presiese kernweergawenommers wat op jou skyf geïnstalleer is outomaties voltooi.) Sodra dit in jou bedryfstelsel gelaai is, hardloop sudo update-grub (Debian/Ubuntu) or sudo grub2-mkconfig -o /boot/grub2/grub.cfg (Fedora/RHEL) to regenerate the missing menu file.

Scenario 2: Fixing (initramfs) of dracut shells with fsck

If your PC passes the GRUB menu, shows the Linux boot splash for a few seconds, and then drops into a black text prompt reading:

BusyBox v1.36.1 (Ubuntu) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) _
Look 3 to 5 lines above the (initramfs) prompt. Nine times out of ten, you will see: The root filesystem on /dev/nvme0n1p2 requires a manual fsck

Step-by-step filesystem repair from (initramfs)

  1. Confirm which partition needs repair: If the partition name is not printed right above the prompt, type blkid and press Enter to list your ext4, xfs, of btrfs partitions.
  2. Run the matching filesystem repair tool:
    • For ext4 / ext3 filesystems (default on Ubuntu, Debian, Mint):
      (initramfs) fsck -y /dev/nvme0n1p2
      
      The -y flag automatically answers "yes" to every corrupted inode, orphaned block, and journal replay prompt instead of making you press y 500 times.
    • For XFS filesystems (default on RHEL, AlmaLinux, Rocky Linux, CentOS): Standard fsck does nothing on XFS. In a dracut:/# dop op 'n XFS-stelsel, hardloop:
      dracut:/# xfs_repair /dev/mapper/rhel-root
      
      (Slaag net die -L vlag om die XFS-metadatalog te nul as xfs_repair weier om te hardloop as gevolg van 'n onmonteerbare vuil log en jy het geen ander opsie nie).
    • For Btrfs lêerstelsels (verstek op Fedora, openSUSE): Probeer eers om die Btrfs-logboom veilig skoon te maak btrfs rescue zero-log /dev/nvme0n1p2. Moet nooit hardloop nie btrfs check --repair tensy 'n Btrfs-ontwikkelaar opdrag gegee het of na die rugsteun van data vanaf 'n Live USB, as --repair word as gevaarlik op Btrfs beskou.
  3. Verlaat en herlaai: Een keer fsck afdrukke ***** FILE SYSTEM WAS MODIFIED *****, tik exit (or reboot -f) en druk Enter. Jou stelsel sal die skoon partisie monteer en normaalweg begin.

Scenario 3: Regmaak /etc/fstab foute in systemd Noodmodus

As jou skerm tydens selflaai stop met:

You are in emergency mode. After logging in, type "journalctl -xb" to view system logs,
"systemctl reboot" to reboot, or "exit" to continue bootup.
Give root password for maintenance (or press Control-D to continue):
Dit gebeur amper altyd omdat jy geredigeer het /etc/fstab, het 'n ruilpartisie geformateer (wat sy UUID verander het), of het 'n sekondêre interne/eksterne hardeskyf ontkoppel wat in gelys is /etc/fstab sonder die nofail opsie. By verstek, systemd stop die hele bedryfstelsel selflaai indien enige skyf in gelys is /etc/fstab versuim om binne 90 sekondes te reageer.

Hoe om reg te maak /etc/fstab binne 90 sekondes

  1. Tik jou root-wagwoord in (of druk Enter as op Ubuntu waar die root-rekening gesluit is en dit jou direk inlaai; as Ubuntu sê Cannot open access to console, the root account is locked, sien die init=/bin/bash nota hieronder).
  2. ** Hermonteer die wortellêerstelsel as Lees-Skryf**: In noodmodus, / is dikwels Read-Only gemonteer, so as jy probeer stoor /etc/fstab, nano sal sê Error writing /etc/fstab: Read-only file system. Begin hierdie eerste:
    mount -o remount,rw /
    
  3. Vind uit watter lyn in /etc/fstab is stukkend: Hardloop mount -a. Watter skyf ook al stukkend is, sal onmiddellik 'n fout druk (bv. mount: /mnt/backup: can't find UUID=4a8b...). U kan ook u regte dryf-UUID's vergelyk /etc/fstab deur te hardloop:
    blkid
    cat /etc/fstab
    
  4. Redigeer /etc/fstab en voeg by nofail or comment out the bad line:
    nano /etc/fstab
    
    Put a # at the start of the broken secondary drive or swap line to disable it (or add ,nofail to the mount options column such as defaults,nofail so Linux never refuses to boot when that external drive is unplugged). Save with Ctrl+O, press Enter, and exit with Ctrl+X.
  5. Reload systemd and verify before rebooting:
    systemctl daemon-reload
    mount -a
    
    As mount -a returns zero errors, type reboot and your computer will boot cleanly.

Warning

What if Ubuntu/Debian says "Cannot open access to console, the root account is locked" at the Emergency Mode prompt? Because Ubuntu disables the root password by default in favor of sudo, sulogin sometimes locks you out of Emergency Mode if a disk in /etc/fstab fails. To bypass that lock in 30 seconds: reboot, hold Shift or tap Esc to open the GRUB menu, highlight Ubuntu, press e to edit the boot command, find the line starting with linux /boot/vmlinuz..., replace ro quiet splash at the end of that line with rw init=/bin/bash, and press Ctrl+X or F10. This bypasses systemd completely and drops you straight into an unlocked # root shell met lees-skryf toegang sodat jy kan hardloop nano /etc/fstab.

Scenario 4: Recovering from a 100% full root (/) disk or broken GPU driver

If your PC passes GRUB smoothly, shows no filesystem errors, and then hangs forever on a black screen with a blinking cursor in the top-left corner (or loops back to the login screen every time you type your password and press Enter), your root partition (/) is almost certainly 100% full. When / has 0 megabytes of free space, Xorg, Wayland, and GNOME/KDE cannot create a 4-kilobyte session lock file in /tmp of /var/lib, causing the desktop to silently crash.

How to free gigabytes of space from the TTY console

  1. At the black blinking cursor screen (or looping login screen), press Ctrl + Alt + F3 (on laptops, you may need Ctrl + Alt + Fn + F3) to switch from the frozen graphical screen (TTY1/TTY2) to a pure text terminal (TTY3).
  2. Log in with your normal username and password, then check disk usage:
    df -h /
    
  3. As Use% wys 100% (or Avail wys 0), run these four safe cleanup commands to free 2 GB to 25 GB of space immediately:
    # 1. Clear downloaded package cache (.deb / .rpm archives sitting in /var/cache):
    sudo apt-get clean                       # (Ubuntu/Debian/Mint)
    # sudo dnf clean all                     # (Fedora/RHEL)
    
    # 2. Shrink bloated systemd system logs down to 100 MB:
    sudo journalctl --vacuum-size=100M
    
    # 3. Remove old unused Linux kernel versions and orphaned packages:
    sudo apt-get autoremove --purge -y
    
    # 4. Find the top 10 largest folders inside /var (e.g., Docker, Snap, or runaway /var/log/syslog):
    sudo du -xh /var | sort -rh | head -n 15
    
    (If a runaway log file like /var/log/syslog of /var/log/ufw.log has ballooned to 50 GB, empty it instantly with sudo truncate -s 0 /var/log/syslog.)
  4. Why does df -h sometimes show Avail: 0 (100% full) when only 95% of the disk is used? By default, ext4 reserves 5 percent of the entire partition exclusively for the root user so root services can still run when a normal user fills the disk. On a 1-terabyte SSD, 5% is a massive 50 GB held hostage. You can immediately reclaim 40+ GB of that reserved buffer for your normal user account by running:
    sudo tune2fs -m 1 /dev/nvme0n1p2   # Reduces reserved root blocks from 5% to 1% immediately
    
  5. Een keer df -h / wys verskeie gigagrepe beskikbaar, hardloop sudo reboot en jou grafiese lessenaar sal normaalweg aanmeld.

Wat as df -h has plenty of free space, and the black screen started after an Nvidia driver or kernel update?

As jou skyf nie vol is nie en die swart skerm het begin direk na 'n opdatering op 'n rekenaar met 'n Nvidia grafiese kaart, die Nvidia eie kernmodule (nvidia.ko) kon nie saamstel via dkms for your new kernel, or Secure Boot blocked the unsigned module:

  1. Van die Ctrl + Alt + F3 TTY console, check if the driver module is loaded by running nvidia-smi.
  2. As nvidia-smi sê NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver, óf deaktiveer Secure Boot binne jou moederbord UEFI/BIOS-instellings (as Secure Boot die ongetekende DKMS-module blokkeer), óf herbou die kernopskrifte en drywer:
    # Install missing kernel headers for your currently running kernel and rebuild DKMS:
    sudo apt update
    sudo apt install --reinstall linux-headers-$(uname -r) build-important dkms
    sudo dpkg-reconfigure nvidia-dkms-*   # Or run: sudo ubuntu-drivers autoinstall
    sudo update-initramfs -u
    sudo reboot
    

Scenario 5: Voltooi Live USB chroot rescue (for wiped EFI/GRUB, LVM, LUKS, and Btrfs)

Wanneer 'n Windows 11-opdatering jou UEFI-selflaaiinskrywings oorskryf, stort 'n kernopdatering in die middel van die vlug neer terwyl krag afgaan, of grub rescue> kan nie jou partisie lees nie, selflaai jou rekenaar vanaf 'n Live Linux USB drive (kies "Probeer Ubuntu" of lewendige lessenaarmodus) en voer 'n chroot (Verander wortel) herstel. A chroot lets your Live USB terminal step inside your broken SSD installation and run apt, dnf, update-initramfs, en grub-install asof die stelsel normaal gelaai het.

Step 1: Identify and unlock your storage layout (lsblk -f)

Maak 'n terminaal binne die Live USB-lessenaar oop en hardloop:

sudo lsblk -f
Kyk na die FSTYPE column to see which of the four common storage architectures your Linux installation uses, and mount it to /mnt gebruik die ooreenstemmende blok hieronder:

  • Geval 1: Standaard ext4 of xfs partisie (bv. Wortel is /dev/nvme0n1p2 en EFI is /dev/nvme0n1p1):
    sudo mount /dev/nvme0n1p2 /mnt
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
    
  • Geval 2: Geënkripteerde LUKS-wortelpartisie (crypto_LUKS) (default when "Encrypt my disk" was checked during install): Jy moet eers die LUKS-houer dekripteer voordat jy monteer:
    sudo cryptsetup luksOpen /dev/nvme0n1p3 cryptroot
    sudo vgchange -ay                        # Activates LVM volumes inside LUKS if used
    sudo mount /dev/mapper/cryptroot /mnt    # (Or /dev/mapper/ubuntu--vg-ubuntu--lv)
    sudo mount /dev/nvme0n1p2 /mnt/boot      # Mount separate unencrypted /boot partition
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi  # Mount FAT32 EFI partition
    
  • Geval 3: Btrfs-lêerstelsel met @ subvolumes (default on Fedora, openSUSE, and Ubuntu Btrfs installs): As jy 'n Btrfs-partisie monteer sonder om te spesifiseer subvol=@, /mnt sal net wys @ and @home dopgehou in plaas van /bin and /etc, en chroot /mnt sal misluk met failed to run command '/bin/bash': No such file or directory. Monteer die @ subvolume uitdruklik:
    sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt          # (Use subvol=root on Fedora)
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
    

Stap 2: Bind virtuele kernlêerstelsels (insluitend UEFI efivars) en voer in chroot

Vir grub-install and apt (DNS-internettoegang) om binne te werk chroot, bind-monteer die Live USB se virtuele kerngidse en UEFI NVRAM veranderlikes in /mnt:

# Bind-mount virtual device, process, sysfs, run (for DNS resolv.conf), and UEFI variables:
for dir in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do
    sudo mount --bind $dir /mnt$dir
done

# Step inside your installed Linux system:
sudo chroot /mnt /bin/bash

Stap 3: Herstel pakkette, herbou initramfs, and reinstall GRUB inside chroot

Noudat jou prompt wys root@ubuntu:/#, voer die herstelopdragte vir jou verspreiding uit:

# 1. Fix any half-installed kernel upgrades (Ubuntu/Debian):
dpkg --configure -a
apt-get install -f -y

# 2. Rebuild the initial ramdisk for all installed kernels:
update-initramfs -c -k all                  # (Debian / Ubuntu / Mint)
# dracut --regenerate-all --force           # (Fedora / RHEL / Rocky)
# mkinitcpio -P                             # (Arch / Manjaro)

# 3. Reinstall GRUB to the EFI System Partition and regenerate grub.cfg:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --recheck
update-grub                                 # (Or: grub2-mkconfig -o /boot/grub2/grub.cfg on Fedora)

Stap 4: Verlaat skoon en herlaai

exit
sudo umount -R /mnt
sudo reboot
Ontkoppel die Live USB-stasie wanneer dit versoek word. Jou stelsel sal reguit in jou herstelde GRUB-kieslys en Linux-lessenaar begin.

Streeksondernemingstandaarde, datasentrumvoldoening en hardeware-sertifisering

Onderneming Linux selflaailaaierbestuur en firmware-sekuriteit is onderhewig aan streng nasionale standaarde en kuberveiligheidsraamwerke:

  • Verenigde State: Regering- en ondernemingsinfrastruktuur voldoen aan die Nasionale Instituut vir Standaarde en Tegnologie (NIST) Spesiale Publikasie 800-147B (BIOS-beskermingsriglyne vir bedieners) en SP 800-193 (Platform-firmware-veerkragtigheidsriglyne). Federale installasies wat Red Hat Enterprise Linux (RHEL) of Rocky Linux bedryf, moet voldoen aan Defence Information Systems Agency (DISA) Sekuriteit Tegniese Implementeringsgidse (STIGs). Hierdie standaarde vereis wagwoordbeskerming op GRUB 2-selflaaikieslyste, deaktiveer interaktiewe kernparameter-redigering, aktiveer UEFI Secure Boot met Shim-eerste-fase-laaiers, en enkripteer wortelberging met FIPS 140-⅔-gevalideerde LUKS-kriptografiese modules.
  • Verenigde Koninkryk: Die Nasionale Kubersekuriteitsentrum (NCSC) publiseer toestelsekuriteitsriglyne vir ondernemings Linux-platforms, wat hardeware-gewortelde platformintegriteit vereis. Stelsels wat oor die regering of kritieke nasionale infrastruktuur ontplooi word, moet Trusted Platform Module (TPM 2.0)-metings gebruik om LUKS-skyf-enkripsiesleutels teen Platform Configuration Registers (PCR's) te verseël, om te verseker dat die aandrywer outomaties ontsluit word slegs wanneer die UEFI-firmware, Secure Boot-sleutels en GRUB-binêr heeltemal onbenut bly.
  • Europese Unie: In die Europese Unie stel die Federale Kantoor vir Inligtingsekerheid in Duitsland (BSI) basislynsekuriteit deur IT-Grundschutz-boublok SYS.1.3 (Server Linux en Unix). BSI-riglyne vereis streng skeiding van selflaaipartisies, onveranderlike selflaailaaierkonfigurasies en geouditeerde onderhoudsprosedures. Kragtens die EU-netwerk- en inligtingsekuriteitsrichtlijn (NIS 2) moet entiteite wat noodsaaklike digitale dienste bedryf, gevalideerde kaalmetaal-rampherstelprosedures handhaaf om hersteltyddoelwitte (RTO) tydens bedryfstelselfoute te bevredig.
  • Canada: The Canadian Centre for Cyber Security (CCCS) provides guidance under ITSG-33 (IT Security Risk Management), specifying controls for enterprise Linux operating environments. In compliance with the Personal Information Protection and Electronic Documents Act (PIPEDA), physical server hard drives undergoing bootloader recovery or controller replacement must utilize hardware or volume-level encryption to prevent data exposure during servicing.
  • Australia: The Australian Signals Directorate (ASD) publishes the Information Security Manual (ISM), which sets forth requirements for enterprise Linux systems. The ISM mandates that organizations enforce UEFI Secure Boot, protect bootloader configurations against unauthenticated changes, and log emergency maintenance shell access into centralized audit repositories to maintain compliance with the Essential Eight mitigation strategies.

Gereelde vrae

Why did my dual-boot Linux GRUB menu disappear after a Windows 10 or Windows 11 update?

Major Windows feature updates frequently reset the motherboard's UEFI NVRAM boot priority order, placing "Windows Boot Manager" back at #1 above "ubuntu" or "fedora" without actually deleting your Linux files. Before booting a Live USB, first enter your motherboard BIOS/UEFI settings at startup (press `F2`, `F12`, or `Del`) and check the **Boot Order / UEFI Boot Priority** list, often you can simply move `ubuntu` or `GRUB` back above `Windows Boot Manager`, save with `F10`, and your GRUB menu returns immediately. You can also run `bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi` inside an Administrator Command Prompt in Windows to restore GRUB without a USB stick.

Why does `chroot /mnt` say `failed to run command '/bin/bash': No such file or directory` when I try to rescue my system?

This error happens for one of three reasons: (1) You accidentally mounted your small `/boot` or `EFI` partition to `/mnt` instead of your main Linux root partition (verify with `ls /mnt`, you should see `bin`, `etc`, `usr`, and `var`); (2) your system uses the **Btrfs** filesystem with subvolumes, so `ls /mnt` only shows `@` and `@home`, unmount `/mnt` and remount with `sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt` (or `subvol=root` on Fedora); or (3) you accidentally booted a 32-bit Live USB stick while trying to `chroot` into a 64-bit (`x86_64`) Linux installation.

What does the kernel panic message `VFS: Unable to mount root fs on unknown-block(0,0)` mean at boot?

This kernel panic means the Linux kernel started without a valid `initramfs` (initial RAM disk) image, usually because a system update was interrupted while generating `/boot/initrd.img-...` or because your `/boot` partition ran out of space during a kernel upgrade. Reboot, hold `Shift` or tap `Esc` to open the GRUB menu, select **"Advanced options"**, and boot into the previous older kernel listed right below the newest one. Once logged into your desktop on the older kernel, free up space in `/boot` with `sudo apt autoremove --purge` and rebuild the broken ramdisk with `sudo update-initramfs -c -k all && sudo update-grub`.

How can I temporarily bypass broken graphics drivers from the GRUB menu using `nomodeset`?

If your monitor turns completely black or loses signal right after the GRUB menu due to a GPU driver problem, reboot and tap `Esc` or hold `Shift` to open the GRUB menu. Highlight your Linux entry and press **`e`** on your keyboard. Use the arrow keys to find the line starting with `linux /boot/vmlinuz...`, move to the end of that line where it says `quiet splash`, and replace `quiet splash` with **`nomodeset`**. Press **`Ctrl + X`** or **`F10`** to boot. The `nomodeset` parameter tells the Linux kernel not to load hardware video drivers until after Xorg starts, using basic BIOS framebuffer graphics so you can see your screen and fix your GPU drivers.

Why did `grub-install` inside `chroot` warn that `EFI variables are not supported on this system`?

That error occurs for one of two reasons: either you accidentally booted your Live USB flash drive in **Legacy BIOS / CSM mode** instead of **UEFI mode** when selecting it in your motherboard's F12 boot menu (check by running `ls /sys/firmware/efi`, if that folder does not exist on the Live USB, reboot and select the `"UEFI: [USB Drive Name]"` entry in your BIOS boot menu), OR you forgot to bind-mount `/sys/firmware/efi/efivars` into `/mnt/sys/firmware/efi/efivars` before running `chroot /mnt`.

How do I prevent a secondary external or internal hard drive in `/etc/fstab` from ever crashing my Linux boot again?

Whenever you add any non-root storage drive (such as a second SSD, a RAID array, an external USB backup drive, or a network Samba/NFS share) to `/etc/fstab`, always include **`nofail,x-systemd.device-timeout=10`** in the fourth column (mount options), and set the sixth column (`pass` / `fsck` order) to **`0`** or **`2`**. With `nofail` enabled, if that drive is ever unplugged or fails, `systemd` waits only 10 seconds, logs a non-fatal warning, and boots normally into your desktop instead of dropping you into Emergency Mode.

First aid certification and technical workplace safety

Hardware-level boot diagnostics often require opening desktop cases, replacing power supplies, or inspecting server rack equipment. Technicians face acute electrical hazards from damaged capacitors, lacerations from sharp sheet-metal chassis, and crushing injuries from heavy rack-mounted hardware. If an electric shock occurs, immediately disconnect the circuit breaker before touching the victim and call emergency services. Knowing how to deliver CPR and manage severe bleeding or shock is as critical in a server room as technical troubleshooting. We recommend completing an accredited first aid, CPR/AED, and workplace health and safety course through the Red Cross, St John Ambulance, or a national safety authority.

Bronne nagegaan

  • GNU Project / Free Software Foundation (International): Official GNU GRUB Manual 2.12 , Booting from grub> and grub rescue> Command Shells (gnu.org/software/grub/manual).
  • Die Linux Kernel Archives & Kernel.org (Internasionaal): Kernel Parameters (admin-guide/kernel-parameters.txt), initramfs Vroeë gebruikersruimte en lêerstelseladministrasie (docs.kernel.org).
  • Canonical / Ubuntu Server & Desktop Documentation (United Kingdom / International): GRUB2 Bootloader Recovery, LiveCD Chroot Procedures, and Disk Space Management (help.ubuntu.com, ubuntu.com/server/docs).
  • Red Hat Enterprise Linux (RHEL) en Fedora-projekdokumentasie (Verenigde State): oplos van selflaaiprobleme met dracut, xfs_repair, en grub2-mkconfig (docs.redhat.com, docs.fedoraproject.org).
  • Arch Linux Wiki (Internasionaal): GRUB, Chroot, fstab, en mkinitcpio Technical Reference (wiki.archlinux.org).
  • Freedesktop.org / systemd Documentation (International): systemd.unit Emergency and Rescue Targets, journalctl Vacuuming, and systemd.mount Options (freedesktop.org/software/systemd/man).

Verwante gidse