Ale dirèk nan kontni an

Echèk bòt sistèm Linux ak reparasyon GRUB: gid rekiperasyon liy lòd

Yon echèk demaraj sistèm Linux ka sispann estasyon travay, sèvè pwodiksyon, ak laptops doub bòt san avètisman, jete ou nan yon gwo. grub rescue> rapid, yon minim grub> koki, an (initramfs) oswa dracut:/# konsole ijans, yon systemd "You are in emergency mode" èd memwa antretyen, oswa yon ekran nwa ak yon kurseur k ap flache.

Kontrèman ak sistèm opere ki kache mekanik demaraj dèyè kòd erè opak grafik, Linux ekspoze chak etap nan tiyo a bòt dirèkteman bay administratè a. Prèske chak echèk bòt Linux soti nan youn nan senk kòz rasin ki ka ranje: yon chajè demaraj GRUB 2 ki ranplase oswa mal konfiguré (souvan deklanche apre yon aktyalizasyon Windows sou yon PC ki gen doub bòt), yon sal. ext4/xfs/btrfs root filesystem after a sudden power outage, a broken /etc/fstab disk UUID antre, yon rasin konplè 100 pousan (/) 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.

Fè sa kounye a

Lè òdinatè w lan oswa sèvè Linux refize demare, swiv sis etap sa yo imedya dyagnostik ak sekirite anvan ou kouri nenpòt kòmandman disk destriktif:

  1. Li egzak èd memwa a sou ekran ou a pou idantifye ki etap bòt echwe:
    • grub rescue> oswa grub>: Carte mère UEFI/BIOS chaje premye etap GRUB, men GRUB pa ka jwenn /boot/grub oswa dosye konfigirasyon li yo (grub.cfg).
    • (initramfs) oswa dracut:/#: GRUB chaje nwayo Linux ak premye disk RAM a byen, men nwayo a pa t 'kapab monte rasin prensipal ou a (/) 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.

Kritik: Kisa pou PA fè

Never run grub-install, dd, fdisk, oswa mkfs until you have verified your exact disk and partition layout using lsblk -f oswa 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 oswa /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> or 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["Stage 2 Failure: Identify root partition with blkid and run fsck -y /dev/partition"]
    B -->|"Emergency Mode: Give root password for maintenance"| E["Stage 3 Failure: Run mount -o remount,rw / and fix or comment out broken UUID in /etc/fstab"]
    B -->|"Black screen or blinking cursor after GRUB"| F["Stage 4 Failure: Press Ctrl+Alt+F3 (or boot emergency.target) to clear 100% full disk or GPU driver"]
    B -->|"Boots straight into Windows or 'No Bootable Device'"| G["UEFI/EFI Boot Order Wiped: Boot Live USB, mount Root + EFI, chroot, and reinstall GRUB"]

Comparison of Linux boot failure prompts, causes, and commands

On-Screen Error / Prompt Boot Stage Reached 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 (or xfs_repair -L for XFS) -> reboot -f
You are in emergency mode (sulogin prompt) Stage 3 (systemd Mounts) Secondary drive or swap partition in /etc/fstab te deploge, reformate, oswa pèvèti. Enter root password -> mount -o remount,rw / -> nano /etc/fstab (add nofail oswa #) -> 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> oswa grub> prompt without a USB stick

If your screen displays error: unknown filesystem, error: no such partition, oswa Minimal BASH-like line editing is supported followed by grub rescue> oswa 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> prompt

At grub rescue>, only four basic commands work (ls, set, unset, and insmod). Follow these steps carefully:

  1. List all disks and partitions seen by the motherboard firmware:
    grub rescue> ls
    
    GRUB will print a line like: (hd0) (hd0,gpt1) (hd0,gpt2) (hd0,gpt3) (or (hd0,msdos1) on older MBR disks).
  2. Inspect each partition until you find your Linux root (or /boot) directory: (Remember to include the trailing slash / at the end of each ls check so GRUB lists the filenames inside that partition):
    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. Point GRUB to your partition and load the normal module: Assuming your Linux root is on (hd0,gpt2):
    grub rescue> set root=(hd0,gpt2)
    grub rescue> set prefix=(hd0,gpt2)/boot/grub
    grub rescue> insmod normal
    grub rescue> normal
    
    (If you have a separate dedicated /boot partition on (hd0,gpt2), use set prefix=(hd0,gpt2)/grub without /boot.)
  6. Make the fix permanent once your desktop boots: As soon as normal runs, your regular GRUB menu will appear and boot your Linux system. Important: Those set commands were temporary in RAM. The moment you log into your Linux desktop, open a terminal and permanently write the correct GRUB location to your drive:
    sudo update-grub
    sudo grub-install /dev/nvme0n1   # (Or /dev/sda ,  use your whole disk name, NOT a partition number)
    

Case B: You are at the standard grub> prompt

If you see grub> (without the word rescue), the 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
(Tip: Just type linux /boot/vmlinuz and press the Tab key, GRUB will auto-complete the exact kernel version numbers installed on your disk.) Once booted into your OS, run 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) oswa 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, oswa 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:/# shell sou yon sistèm XFS, kouri:
      dracut:/# xfs_repair /dev/mapper/rhel-root
      
      (Sèlman pase a -L drapo a zewo XFS metadata boutèy la si xfs_repair refize kouri akòz yon boutèy demi lit sal ki pa ka monte epi ou pa gen okenn lòt opsyon).
    • For Btrfs filesystems (default on Fedora, openSUSE): First try clearing the Btrfs log tree safely with btrfs rescue zero-log /dev/nvme0n1p2. Pa janm kouri btrfs check --repair unless instructed by a Btrfs developer or after backing up data from a Live USB, as --repair is considered dangerous on Btrfs.
  3. Exit and reboot: Once fsck prints ***** FILE SYSTEM WAS MODIFIED *****, type exit (or reboot -f) and press Enter. Your system will mount the clean partition and boot normally.

Scenario 3: Fixing /etc/fstab errors in systemd Emergency Mode

If your screen stops mid-boot with:

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):
This almost always happens because you edited /etc/fstab, formatted a swap partition (which changed its UUID), or unplugged a secondary internal/external hard drive that is listed in /etc/fstab without the nofail option. By default, systemd halts the entire operating system boot if any disk listed in /etc/fstab fails to respond within 90 seconds.

How to fix /etc/fstab in 90 seconds

  1. Type your root password (or press Enter if on Ubuntu where the root account is locked and it drops you in directly; if Ubuntu says Cannot open access to console, the root account is locked, see the init=/bin/bash note below).
  2. Remount the root filesystem as Read-Write: In emergency mode, / is often mounted Read-Only, so if you try to save /etc/fstab, nano will say Error writing /etc/fstab: Read-only file system. Run this first:
    mount -o remount,rw /
    
  3. Find out which line in /etc/fstab is broken: Run mount -a. Whatever drive is broken will immediately print an error (for example, mount: /mnt/backup: can't find UUID=4a8b...). You can also compare your real drive UUIDs against /etc/fstab by running:
    blkid
    cat /etc/fstab
    
  4. Edit /etc/fstab and add nofail oswa kòmante move liy lan:
    nano /etc/fstab
    
    Mete yon # nan kòmansman kondwi segondè kase a oswa liy swap pou enfim li (oswa ajoute ,nofail nan kolòn nan opsyon mòn tankou defaults,nofail kidonk Linux pa janm refize bòt lè kondwi ekstèn sa a dekonekte). Sove ak Ctrl+O, peze Entre, epi sòti ak Ctrl+X.
  5. Rechaje systemd epi verifye anvan rdemare:
    systemctl daemon-reload
    mount -a
    
    If mount -a retounen zewo erè, tape reboot epi òdinatè w lan pral demare pwòp.

Warning

E si Ubuntu/Debian di "Cannot open access to console, the root account is locked" nan èd memwa Ijans Mode? Paske Ubuntu enfim root modpas pa default an favè sudo, sulogin pafwa fèmen ou soti nan Mode Ijans si yon disk nan /etc/fstab echwe. Pou kontoune kadna sa a nan 30 segonn: rdemare, kenbe Shift oswa tape Esc pou ouvri meni GRUB la, mete aksan sou Ubuntu, peze e pou edite komand bòt la, jwenn liy ki kòmanse avèk linux /boot/vmlinuz..., ranplase ro quiet splash nan fen liy sa a ak rw init=/bin/bash, epi peze Ctrl+X or F10. Sa a kontourne systemd konplètman epi gout ou tou dwat nan yon klete # koki rasin ak aksè lekti-ekri pou ou ka kouri nano /etc/fstab.

Senaryo 4: Rekipere de yon rasin 100% plen (/) Disk oswa chofè GPU kase

Si PC ou a pase GRUB san pwoblèm, li pa montre okenn erè sistèm fichye, epi li pandye pou tout tan sou yon ekran nwa ak yon kurseur k ap flache nan kwen anlè goch (oswa bouk tounen nan ekran koneksyon an chak fwa ou tape modpas ou epi peze Enter), patisyon rasin ou a (/) se prèske sètènman 100% plen. Lè / gen 0 megabyte espas gratis, Xorg, Wayland, ak GNOME/KDE pa ka kreye yon fichye fèmen sesyon 4 kilobyte nan. /tmp oswa /var/lib, sa ki lakòz Desktop la fè aksidan an silans.

Ki jan yo libere gigaokte espas nan konsole TTY la

  1. Nan ekran kurseur nwa k ap flache (oswa ekran koneksyon an bouk), peze Ctrl + Alt + F3 (sou laptops, ou ka bezwen Ctrl + Alt + Fn + F3) pou chanje soti nan ekran grafik jele (TTY1/TTY2) nan yon tèminal tèks pi (TTY3).
  2. Konekte avèk non itilizatè nòmal ou ak modpas, apresa tcheke itilizasyon disk la:
    df -h /
    
  3. If Use% shows 100% (or Avail shows 0), kouri kat kòmandman netwayaj san danje sa yo pou libere 2 GB a 25 GB espas imedyatman:
    # 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
    
    (Si yon dosye log ki sove tankou /var/log/syslog oswa /var/log/ufw.log te monte a 50 GB, vid li imedyatman ak sudo truncate -s 0 /var/log/syslog.)
  4. Poukisa df -h pafwa montre Avail: 0 (100% plen) lè sèlman 95% nan disk la itilize? Pa default, ext4 rezève 5 pousan nan patisyon an antye sèlman pou la root itilizatè konsa sèvis rasin ka toujou kouri lè yon itilizatè nòmal ranpli disk la. Sou yon SSD 1-terabyte, 5% se yon masiv 50 GB kenbe an otaj. Ou ka imedyatman reklame plis pase 40 GB nan tanpon rezève sa a pou kont itilizatè nòmal ou lè w ap kouri:
    sudo tune2fs -m 1 /dev/nvme0n1p2   # Reduces reserved root blocks from 5% to 1% immediately
    
  5. Yon fwa df -h / montre plizyè gigaocte disponib, kouri sudo reboot epi Desktop grafik ou a pral konekte nòmalman.

E si df -h gen anpil espas gratis, ak ekran nwa a te kòmanse apre yon chofè Nvidia oswa aktyalizasyon nwayo?

Si disk ou a pa plen epi ekran nwa a te kòmanse imedyatman apre yon aktyalizasyon sou yon PC ak yon kat grafik Nvidia, modil du Nvidia propriétaires (nvidia.ko) echwe pou pou konpile via dkms pou nouvo nwayo ou a, oswa Secure Boot bloke modil ki pa siyen an:

  1. Soti nan Ctrl + Alt + F3 TTY konsole, tcheke si modil chofè a chaje pa kouri nvidia-smi.
  2. If nvidia-smi di NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver, swa enfim Secure Boot andedan paramèt UEFI/BIOS kat mèr ou a (si Secure Boot bloke modil DKMS ki pa siyen an), oswa rekonstwi tèt nwayo ak chofè a:
    # 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
    

Senaryo 5: Ranpli Live USB chroot sekou (pou siye EFI/GRUB, LVM, LUKS, ak Btrfs)

When a Windows 11 update overwrites your UEFI boot entries, a kernel update crashes mid-flight while power goes out, or grub rescue> pa ka li patisyon ou a, demare òdinatè w lan nan yon Live Linux USB Drive (chwazi "Eseye Ubuntu" oswa mòd Live Desktop) epi fè yon chroot (Chanje Rasin) reparasyon. A chroot pèmèt tèminal Live USB ou a etap * anndan * enstalasyon SSD kase ou a epi kouri apt, dnf, update-initramfs, and grub-install kòmsi sistèm lan te demare nòmalman.

Etap 1: Idantifye ak debloke layout depo ou a (lsblk -f)

Louvri yon tèminal andedan Desktop Live USB a epi kouri:

sudo lsblk -f
Gade nan FSTYPE kolòn pou wè kilès nan kat achitekti depo komen enstalasyon Linux ou a itilize, epi monte li sou li /mnt lè l sèvi avèk blòk matche ki anba a:

  • Ka 1: Estanda ext4 oswa xfs patisyon (egzanp, Rasin se /dev/nvme0n1p2 ak EFI se /dev/nvme0n1p1):
    sudo mount /dev/nvme0n1p2 /mnt
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
    
  • Ka 2: Chide patisyon rasin LUKS (crypto_LUKS) (default lè yo te tcheke "Ankripte disk mwen an" pandan enstalasyon an): Ou dwe dechifre veso LUKS la anvan ou monte:
    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
    
  • Ka 3: Btrfs filesystem ak @ subvolumes (default sou enstalasyon Fedora, openSUSE, ak Ubuntu Btrfs): Si ou monte yon patisyon Btrfs san yo pa espesifye subvol=@, /mnt pral sèlman montre @ and @home dosye olye pou yo /bin and /etc, and chroot /mnt pral echwe ak failed to run command '/bin/bash': No such file or directory. Monte la @ subvolume explicitly:
    sudo mount -o subvol=@ /dev/nvme0n1p2 /mnt          # (Use subvol=root on Fedora)
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
    

Etap 2: Mare sistèm dosye nwayo vityèl (ki gen ladan UEFI efivars) epi antre chroot

For grub-install and apt (DNS internet access) to work inside 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, and reinstall GRUB inside chroot

Now that your prompt shows 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)

Step 4: Exit cleanly and reboot

exit
sudo umount -R /mnt
sudo reboot
Unplug the Live USB drive when requested. Your system will boot straight into your repaired GRUB menu and Linux desktop.

Regional enterprise standards, data center compliance, and hardware certification

Enterprise Linux bootloader management and firmware security are subject to rigorous national standards and cybersecurity frameworks:

  • 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.
  • Kanada: Sant Kanadyen pou Cyber ​​Security (CCCS) bay konsèy dapre ITSG-33 (IT Security Risk Management), ki espesifye kontwòl pou anviwònman opere Linux antrepriz. An konfòmite ak Lwa sou Pwoteksyon Enfòmasyon Pèsonèl ak Dokiman Elektwonik (PIPEDA), disk sèvè fizik ki sibi rekiperasyon bootloader oswa ranplasman kontwolè dwe itilize pyès ki nan konpitè oswa chifreman nan nivo volim pou anpeche done ekspoze pandan sèvis yo.
  • Ostrali: Direksyon Siyal Ostralyen an (ASD) pibliye Manyèl Sekirite Enfòmasyon (ISM), ki tabli kondisyon pou sistèm Linux antrepriz. ISM mande ke òganizasyon yo aplike UEFI Secure Boot, pwoteje konfigirasyon bootloader kont chanjman ki pa otantifye, epi konekte aksè nan shell antretyen ijans nan repozitwa odit santralize pou kenbe konfòmite ak estrateji mitigasyon Essential Eight yo.

Kesyon yo poze souvan

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.

Sètifikasyon premye swen ak sekirite teknik nan espas travay

Dyagnostik bòt nan nivo pyès ki nan konpitè souvan mande pou louvri ka Desktop, ranplase pwovizyon kouran, oswa enspekte ekipman etajè sèvè. Teknisyen yo fè fas ak gwo danje elektrik ki soti nan kondansateur domaje, lacerasyon soti nan chasi tòl byen file, ak blesi kraze soti nan pyès ki nan konpitè lou ki monte sou etajè. Si yon chòk elektrik rive, imedyatman dekonekte disjoncteurs a anvan ou manyen viktim nan epi rele sèvis ijans. Konnen kijan pou bay CPR ak jere gwo senyen oswa chòk se osi kritik nan yon chanm sèvè kòm depanaj teknik. Nou rekòmande pou konplete yon kou akredite premye swen, CPR/AED, ak kou sante ak sekirite nan travay atravè Lakwa Wouj, Anbilans St John, oswa yon otorite nasyonal sekirite.

Sous yo tcheke

  • GNU Pwojè / Free Software Foundation (Entènasyonal): Ofisyèl GNU GRUB Manyèl 2.12, demaraj soti nan grub> and grub rescue> Kokiy kòmand (gnu.org/software/grub/manual).
  • Linux Kernel Archives & Kernel.org (Entènasyonal): Paramèt Kernel (admin-guide/kernel-parameters.txt), initramfs Espas itilizatè bonè, ak Administrasyon Filesystem (docs.kernel.org).
  • Sèvè Kanonik / Ubuntu ak Dokimantasyon Desktop (Wayòm Ini / Entènasyonal): Rekiperasyon GRUB2 Bootloader, Pwosedi LiveCD Chroot, ak Jesyon Espas Disk (help.ubuntu.com, ubuntu.com/server/docs).
  • Red Hat Enterprise Linux (RHEL) ak Dokimantasyon Pwojè Fedora (Etazini): Depanaj Pwoblèm Bòt ak dracut, xfs_repair, and grub2-mkconfig (docs.redhat.com, docs.fedoraproject.org).
  • Arch Linux Wiki (Entènasyonal): GRUB, Chroot, fstab, and mkinitcpio Referans teknik (wiki.archlinux.org).
  • Dokimantasyon Freedesktop.org / systemd (entènasyonal): systemd.unit Objektif ijans ak sekou, journalctl Pase aspiratè, ak systemd.mount Opsyon (freedesktop.org/software/systemd/man).

Gid ki gen rapò