Skip to content

Linux system boot failure and GRUB repair: command-line recovery guide

A Linux system boot failure can halt workstations, production servers, and dual-boot laptops without warning, dropping you into a stark grub rescue> prompt, a minimal grub> shell, an (initramfs) se dracut:/# emergency console, a systemd "You are in emergency mode" maintenance prompt, or a black screen with a blinking cursor.

Unlike operating systems that hide startup mechanics behind opaque graphical error codes, Linux exposes every stage of the boot pipeline directly to the administrator. Almost every Linux boot failure stems from one of five fixable root causes: an overwritten or misconfigured GRUB 2 bootloader (commonly triggered after a Windows update on a dual-boot PC), a dirty ext4/xfs/btrfs root filesystem after a sudden power outage, a broken /etc/fstab disk UUID entry, a 100-percent full root (/) storage partition, or an interrupted kernel and graphics driver upgrade. Matching your exact on-screen prompt to the corresponding boot stage lets you repair the system cleanly without formatting your drive or losing your data.

Cakava oqo ena gauna oqo

When your Linux computer or server refuses to boot, follow these six immediate diagnostic and safety steps before running any destructive disk commands:

  1. Read the exact prompt on your screen to identify which boot stage failed:
    • grub rescue> se grub>: The motherboard UEFI/BIOS loaded the first stage of GRUB, but GRUB cannot locate /boot/grub or its configuration file (grub.cfg).
    • (initramfs) se 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.

Bibi: Na cava me SEGA ni caka

Never run grub-install, dd, fdisk, se mkfs until you have verified your exact disk and partition layout using lsblk -f se blkid. Device node names like /dev/sda kei /dev/sdb era lesi vakaidina mai na kernel ni Linux ena buto ka rawa ni veisautaka na ota ni sa vakacurumi e dua na ititoko ni USB Bula. /dev/sdX draiva ena vakarusa na nomu itukutuku. Me kena ikuri, sega vakadua ni cicivaka na veiqaravi ni vakavinakataki ni faile me vaka na . fsck ena veiwasei vakavodoki wili-vola, sega vakadua ni vakasaurarataki-kaukauwa mai na dua na ivakarau ena gauna ni dua na kernel gugumatua se bootloader pakete ni vakatorocaketaki, ka sega vakadua ni bokoca na valenivolavola ni ivakarau ena . /usr/lib se /lib ena kena sagai me vakagalalataki na vanua ena dua na draiva ni root taucoko.

Vunikau ni vakatulewa: vakadikeva na 5 Linux boot sega ni rawata na ivakatagedegede

Vakayagataka na flowchart ni veisele oqo me vakasaqara na nomu output ni sikirini dodonu ki na veiganiti ni ivakaro-laini vakavinakataki:

flowchart TD
    A["Linux ivakarau sega ni rawa ni vakacuruma ki na katubaleka / curu"] --> B{"Na cava e vakaraitaki ena sikirini?"}
    B -->|"grub veivueti> se grub> totolo"| C["iKalawa 1 Vakacaca: Vakayagataka na ls me kunei kina / vakacuruma / grub, vakarautaka na vu & ivakamacala taumada, vakacuruma na OS, qai cici grub-vakacuruma ."]
    B -->|"Kato osooso (initramfs) se dracut:/# shell"| D["ikalawa 2 sega ni rawata: Vakaraitaka na veiwasei ni vu kei na blkid ka cici fsck -y / dev / veiwasei ."]
    B -->|"Mode ni leqa tubukoso: Solia na vosanicuru ni root me baleta na kena maroroi"| E["iKalawa 3 Vakaleqai: Ciciva na ulunivanua -o vakavoutaka tale,rw / ka vakavinakataka se vakamacalataka mai na UUID ramusu ena / etc / fstab"]
    B -->|"Sikirini karakarawa se na ivakatakilakila ni oti na GRUB"| F["Stage 4 Failure: Press Ctrl+Alt+F3 (or boot emergency.target) to clear 100% full disk or GPU driver"]
    B -->|"Boots vakadodonu ki na katubaleka se 'Sega na misini Bootable'."| G["UEFI/EFI Boot Order Wiped: Boot Live USB, mount Root + EFI, chroot, and reinstall GRUB"]

Veivakatauvatani ni Linux boot sega ni rawata na veivakauqeti, vu, kei na ivakaro .

Ena-sikirini cala / vakauqeti Sa yaco mai na itutu ni boot Primary Root Cause Fastest Repair Command Sequence
error: no such partition / grub rescue> Stage 1 (GRUB Core) Disk partitions resized, cloned, or UUID changed; GRUB cannot find /boot/grub/normal.mod. ls -> set root=(hdX,gptY) -> set prefix=(hdX,gptY)/boot/grub -> insmod normal -> normal
grub> (Standard GRUB CLI) Stage 1.5 (GRUB Normal) /boot/grub/grub.cfg is missing or deleted, though GRUB modules loaded fine. set root=(hdX,gptY) -> linux /boot/vmlinuz-... root=/dev/nvme0n1p2 -> initrd /boot/initrd.img-... -> boot
BusyBox (initramfs) or dracut:/# Stage 2 (Kernel + Initramfs) Unclean power-off left ext4/xfs root journal dirty, requiring manual fsck approval. blkid -> fsck -y /dev/nvme0n1p2 (se xfs_repair -L para XFS) -> reboot -f
You are in emergency mode (sulogin vakatutu) Stage 3 (systemd Ulunivanua) Draiva ni ikarua se veisautaki ni veiwasei ena . /etc/fstab e a vakasukai, vakavoutaki, se vakacacani. Vakacuruma na vosanicuru ni root -> mount -o remount,rw / -> nano /etc/fstab (vakuria nofail se #) -> systemctl daemon-reload -> reboot
[FAILED] Failed to start GNOME Display Manager / Na ivakatakilakila ni cila iKa 4 ni ikalawa (Vakaraitaka na Manidia / GUI) Veiwasei ni waka / ni ** 100% taucoko ** (0 baiti galala me baleta na /tmp o sokete Xorg) SE ramusu na module ni uto ni Nvidia (dkms). Tabaka Ctrl+Alt+F3 -> df -h -> journalctl --vacuum-size=100M & apt clean SE ubuntu-drivers autoinstall

iKa 1: Na dro tani mai na . grub rescue> se grub> vakatotolo ka sega na USB

Kevaka e vakaraitaka na nomu sikirini . error: unknown filesystem, error: no such partition, se Minimal BASH-like line editing is supported muria mai grub rescue> se grub>, na nomu Linux vakacurumi kei na faile vakatamata e dau dabe tikoga ena nomu SSD se draiva dredre, GRUB sa vakayalia walega na sala ni veiwasewase cava e taura . /boot/grub. E rawa ni o boot vakadodonu ki na nomu OS vakacurumi mai na veivakauqeti oqo ena 2 na miniti:

Kisi A: O sa tiko ena . grub rescue> vakatutu

Ena grub rescue>, e va ga na yavu ni ivakaro e cakacaka (ls, set, unset, kei insmod). Muria vinaka na veisala oqo:

  1. Lisitaka na disiki kece kei na veiwasei e raica na misini ni tina:
    grub rescue> ls
    
    GRUB ena tabaka e dua na laini me vaka: (hd0) (hd0,gpt1) (hd0,gpt2) (hd0,gpt3) (se (hd0,msdos1) ena disiki makawa ni MBR).
  2. Raica na veitiki yadua me yacova ni o sa kunea na nomu Linux root (se /boot) directory: *(Remember to include the trailing slash / at the end of each ls raica me GRUB lisitaka na yaca ni faile ena loma ni iwasewase oya) *:
    grub rescue> ls (hd0,gpt1)/
    grub rescue> ls (hd0,gpt2)/
    grub rescue> ls (hd0,gpt3)/
    
  3. If (hd0,gpt1)/ shows efi/, that is your small FAT32 EFI System Partition.
  4. When a partition outputs boot/ etc/ home/ usr/ var/ vmlinuz initrd.img, you have found your main Linux root partition (for example, (hd0,gpt2)). (Note: If you use Btrfs with @ subvolumes on Ubuntu/Fedora, ls (hd0,gpt2)/ will show @/ @home/, meaning your boot folder is at (hd0,gpt2)/@/boot/grub.)
  5. Vakaraitaka na GRUB ki na nomu iwasewase ka vakavodoki na . normal module: Vakasamataka ni sa tiko na nomu Linux . (hd0,gpt2):
    grub rescue> set root=(hd0,gpt2)
    grub rescue> set prefix=(hd0,gpt2)/boot/grub
    grub rescue> insmod normal
    grub rescue> normal
    
    (Kevaka e tiko e dua na nomu vakatabui /boot veiwasei ena (hd0,gpt2), vakayagataki set prefix=(hd0,gpt2)/grub sega /boot.)
  6. Cakava na vakavinakataki tudei ena dua na gauna na nomu katubaleka buto: Ena gauna ga e . normal cici, na nomu menu ni GRUB tudei ena basika ka vakacuruma na nomu ivakarau ni Linux. Bibi: O ira set ivakaro e vakalekalekataki ena RAM. Na gauna o curu kina ki na nomu katubaleka ni Linux, dolava e dua na terminal ka vola tudei na vanua dodonu ni GRUB ki na nomu draiva:
    sudo update-grub
    sudo grub-install /dev/nvme0n1   # (Or /dev/sda ,  use your whole disk name, NOT a partition number)
    

Kisi B: O sa tiko ena ivakatagedegede . grub> vakatutu

Kevaka o raica . grub> (sega na vosa . rescue), na normal module is already loaded, but your grub.cfg menu file is missing or broken. You can manually boot the Linux kernel in four lines using Tab auto-completion:

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
(Ivakasala: Taipa ga linux /boot/vmlinuz ka tabaka na Ki ni Tab, GRUB ena vakacavara vakataki koya na naba ni vakadewa ni kernel dodonu e vakacurumi ena nomu disiki.) Ni sa vakacurumi ki na nomu OS, cici . sudo update-grub (Debian/Ubuntu) se sudo grub2-mkconfig -o /boot/grub2/grub.cfg (Fedora/RHEL) me vakavoutaki kina na faile ni menu e yali.

Scenario 2: Fixing (initramfs) se 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

Kalawa-ena-kalawa ni faile ni vakavinakataki mai na . (initramfs)

  1. Vakadeitaka na iwasewase cava e gadrevi me vakavinakataki: Kevaka e sega ni tabaki na yaca ni iwasewase ena dela ni veivakauqeti, tabaka . blkid and press Enter to list your ext4, xfs, se btrfs partitions.
  2. Run the matching filesystem repair tool:
    • For ext4 / ext3 filesystems (default on Ubuntu, Debian, Mint):
      (initramfs) fsck -y /dev/nvme0n1p2
      
      Na -y kuila e sauma vakataki koya "io" ki na inode kece sara e vakacacani, buloko luveniyali, kei na ivolaniveisiga replay totolo ka sega ni cakava mo tabaka . y 500 times.
    • For XFS filesystems (default on RHEL, AlmaLinux, Rocky Linux, CentOS): Standard fsck does nothing on XFS. In a dracut:/# shell ena dua na ivakarau ni XFS, cici:
      dracut:/# xfs_repair /dev/mapper/rhel-root
      
      (Pasa ga na -L kuila ki na zero na itukutuku ni itukutuku ni XFS kevaka xfs_repair sega ni via cici ena vuku ni dua na kau duka sega ni vakavodoki rawa ka sega tale ni dua na nomu digidigi).
    • **For Btrfs ivakarau ni faile (vakadeitaki ena Fedora, dolavi) **: Taumada tovolea mo vakasavasavataka na vunikau ni kau ni Btrfs vakavinaka ena . btrfs rescue zero-log /dev/nvme0n1p2. Kakua vakadua ni cici btrfs check --repair vakavo ga ke vakaroti mai vua e dua na dauvakatorocaketaki ni Btrfs se ni oti na kena vakasukai na itukutuku mai na dua na USB Bula, me vaka . --repair e vakasamataki me rerevaki ena Btrfs.
  3. Lako tani ka tekivutaka tale: Vakadua fsck tabaki ***** FILE SYSTEM WAS MODIFIED *****, mataqali exit (se reboot -f) ka tabaka na Enter. Na nomu ivakarau ena vakaduria na veiwasei savasava ka boot vakawasoma.

iKatolu ni ituvaki: Vakavinakataki /etc/fstab cala ena systemd Na ivakarau ni leqa tubukoso

Kevaka e tu na nomu sikirini ena lomadonu ni boot kei na:

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):
Oqo e voleka ni dau yaco baleta ni o edita . /etc/fstab, vakarautaka e dua na iwasewase ni veisau (ka veisautaka na kena UUID), se unplugged e dua na ikarua ni draiva dredre ni loma/taudaku ka sa volai tu ena . /etc/fstab sega na nofail digidigi. Ena kena ivakarau, systemd halts na ivakarau ni cakacaka taucoko ni boot kevaka e dua na disiki e volai tu ena . /etc/fstab sega ni rawa ni sauma ena loma ni 90 na sekodi.

Na sala me vakavinakataki kina . /etc/fstab ena 90 na sekodi

  1. Taipataka na nomu vosanicuru ni root (se tabaka na Enter kevaka ena Ubuntu na vanua e lokataki kina na akaude ni root ka sa biuti iko vakadodonu; kevaka e kaya Ubuntu Cannot open access to console, the root account is locked, raica na . init=/bin/bash raica e ra).
  2. Remount na faile ni yavu me vaka na Wilika-Vola: Ena ivakarau ni leqa tubukoso, / e dau vakavodoki Wilika-Walega, o koya gona kevaka o tovolea mo maroroya . /etc/fstab, nano ena kaya Error writing /etc/fstab: Read-only file system. Cicivaka taumada oqo:
    mount -o remount,rw /
    
  3. Vakasaqara na laini cava ena . /etc/fstab sa ramusu: Cici mount -a. Na draiva cava ga e vakacacani ena tabaka sara ga e dua na cala (me kena ivakaraitaki, mount: /mnt/backup: can't find UUID=4a8b...). E rawa talega ni o vakatauvatana na nomu draiva dina UUIDs me baleta na . /etc/fstab ena cici:
    blkid
    cat /etc/fstab
    
  4. Veisautaka /etc/fstab ka kuria nofail se vakamacalataka na laini ca:
    nano /etc/fstab
    
    Biuta e dua na # ena itekivu ni draiva ni ikarua ni ramusu se laini ni veisautaki me vakacacani kina (se kuria ,nofail ki na duru ni digidigi ni ulunivanua me vaka na . defaults,nofail o koya gona e sega vakadua ni besetaka na Linux me vakacuruma ni sa vakasukai na draiva e tautuba oqori). Maroroya ena Ctrl+O, tabaka na Vakacuruma, ka biuta na Ctrl+X.
  5. **Vakavoutaka systemd ka vakadeitaka ni bera ni o tekivu tale **:
    systemctl daemon-reload
    mount -a
    
    If mount -a vakasuka na cala ni zero, mataqali reboot kei na nomu kompiuta ena boot savasava.

Warning

Vakacava kevaka e kaya o Ubuntu/Debian "Cannot open access to console, the root account is locked" ena ivakarau ni leqa tubukoso vakatotolo? Baleta ni Ubuntu e vakacacana na . root vosanicuru ena kena ivakarau ena veitokoni ni sudo, sulogin so na gauna e lokataki iko mai na Mode ni leqa tubukoso kevaka e dua na disiki ena . /etc/fstab sega ni rawa. Me sivia na loka oqori ena 30 na sekodi: tekivutaka tale, taura ** Veisau ** se tabaka na ** Esc ** me dolava na menu ni GRUB, vakaraitaka na Ubuntu, tabaka e to edit the boot command, find the line starting with linux /boot/vmlinuz..., sosomitaka ro quiet splash ena icavacava ni laini oya kei na ** .rw init=/bin/bash**, qai tabaka na Ctrl+X or F10. Oqo e vakawalena systemd taucoko ka biuti iko vakadodonu ki na dua na sega ni lokataki . # root shell with read-write access so you can run 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 se /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. If Use% shows 100% (se Avail shows 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 se /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. Once df -h / shows several gigabytes available, run sudo reboot and your graphical desktop will log in normally.

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

If your disk is not full and the black screen began right after an update on a PC with an Nvidia graphics card, the Nvidia proprietary kernel module (nvidia.ko) failed to compile via dkms for your new kernel, or Secure Boot blocked the unsigned module:

  1. From the Ctrl + Alt + F3 TTY console, check if the driver module is loaded by running nvidia-smi.
  2. If nvidia-smi says NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver, either disable Secure Boot inside your motherboard UEFI/BIOS settings (if Secure Boot is blocking the unsigned DKMS module), or rebuild the kernel headers and driver:
    # 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: Complete Live USB chroot rescue (for wiped EFI/GRUB, LVM, LUKS, and Btrfs)

When a Windows 11 update overwrites your UEFI boot entries, a kernel update crashes mid-flight while power goes out, or grub rescue> cannot read your partition, boot your computer from a Live Linux USB drive (selecting "Try Ubuntu" or live desktop mode) and perform a chroot (Change Root) repair. A chroot lets your Live USB terminal step inside your broken SSD installation and run apt, dnf, update-initramfs, kei grub-install as if the system had booted normally.

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

Open a terminal inside the Live USB desktop and run:

sudo lsblk -f
Look at the FSTYPE column to see which of the four common storage architectures your Linux installation uses, and mount it to /mnt using the matching block below:

  • Case 1: Standard ext4 se xfs partition (e.g., Root is /dev/nvme0n1p2 and EFI is /dev/nvme0n1p1):
    sudo mount /dev/nvme0n1p2 /mnt
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
    
  • Case 2: Encrypted LUKS root partition (crypto_LUKS) (default when "Encrypt my disk" was checked during install): You must decrypt the LUKS container first before mounting:
    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
    
  • Case 3: Btrfs filesystem with @ subvolumes (default on Fedora, openSUSE, and Ubuntu Btrfs installs): If you mount a Btrfs partition without specifying subvol=@, /mnt will only show @ kei @home folders instead of /bin kei /etc, kei chroot /mnt will fail with failed to run command '/bin/bash': No such file or directory. Mount the @ ivoli lailai vakamatata:
    sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt          # (Use subvol=root on Fedora)
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
    

Kalawa 2: Vesuka na faile ni kernel vakaidina (oka kina na UEFI efivars) qai curu . chroot

Ena grub-install kei apt (DNS initaneti) me cakacaka e loma . chroot, bind-mount the Live USB's virtual kernel directories and UEFI NVRAM variables into /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

Step 3: Repair packages, rebuild initramfs, ka vakacuruma tale na GRUB ena loma . chroot

Ia oqo ni sa vakaraitaka na nomu veivakauqeti . root@ubuntu:/#, run the repair commands for your distribution:

# 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)

Kalawa 4: Lako tani vakasavasava ka reboot .

exit
sudo umount -R /mnt
sudo reboot
Vakasuka na draiva ni USB Bula ni sa kerei. Na nomu ivakarau ena boot vakadodonu ki na nomu vakavinakataki GRUB menu kei na katubaleka ni Linux.

Na ivakatagedegede ni kabani ni yasana, na kena muri na vanua ni itukutuku, kei na veivakadeitaki ni iyaya

Na veiliutaki ni Linux ni kabani kei na veitaqomaki ni firmware e vakatau ki na ivakatagedegede kaukauwa ni matanitu kei na ituvatuva ni veitaqomaki ena initaneti:

  • United States: Government and enterprise infrastructure adheres to the National Institute of Standards and Technology (NIST) Special Publication 800-147B (BIOS Protection Guidelines for Servers) and SP 800-193 (Platform Firmware Resiliency Guidelines). Federal installations operating Red Hat Enterprise Linux (RHEL) or Rocky Linux must comply with Defense Information Systems Agency (DISA) Security Technical Implementation Guides (STIGs). These standards require password protection on GRUB 2 boot menus, disabling interactive kernel parameter editing, enabling UEFI Secure Boot with Shim first-stage loaders, and encrypting root storage with FIPS 140-⅔ validated LUKS cryptographic modules.
  • United Kingdom: The National Cyber Security Centre (NCSC) publishes device security guidance for enterprise Linux platforms, mandating hardware-rooted platform integrity. Systems deployed across government or critical national infrastructure must use Trusted Platform Module (TPM 2.0) measurements to seal LUKS disk encryption keys against Platform Configuration Registers (PCRs), ensuring the drive unlocks automatically only when the UEFI firmware, Secure Boot keys, and GRUB binary remain completely untampered.
  • European Union: In the European Union, the Federal Office for Information Security in Germany (BSI) establishes baseline security through IT-Grundschutz building block SYS.1.3 (Server Linux and Unix). BSI guidelines require strict separation of boot partitions, immutable bootloader configurations, and audited maintenance procedures. Under the EU Network and Information Security Directive (NIS 2), entities operating essential digital services must maintain validated bare-metal disaster recovery procedures to satisfy Recovery Time Objectives (RTO) during operating system failures.
  • 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.

Na taro e dau tarogi wasoma .

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.

Vakadikevi na ivurevure

  • GNU Project / Free Software Foundation (International): Official GNU GRUB Manual 2.12 , Booting from grub> kei grub rescue> Command Shells (gnu.org/software/grub/manual).
  • The Linux Kernel Archives & Kernel.org (International): Kernel Parameters (admin-guide/kernel-parameters.txt), initramfs Early Userspace, and Filesystem Administration (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).
  • ** Linux ni kabani ni isala damudamu (RHEL) & Fedora ivola ni cakacaka (Amerika) **: Vakadodonutaki ni leqa ni boot kei na dracut, xfs_repair, kei grub2-mkconfig (docs.redhat.com, docs.fedoraproject.org).
  • Arch Linux Wiki (International): GRUB, Chroot, fstab, kei 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).

Na idusidusi veiwekani