Linux システムの起動障害と GRUB 修復: コマンドライン回復ガイド¶
Linux システムの起動障害が発生すると、ワークステーション、運用サーバー、デュアルブート ラップトップが警告なしに停止し、窮地に陥る可能性があります。 grub rescue> プロンプト、最小限の grub> シェル、 (initramfs) または dracut:/# 緊急コンソール、systemd "You are in emergency mode" メンテナンス プロンプト、またはカーソルが点滅する黒い画面が表示されます。
不透明なグラフィカルなエラー コードの背後に起動メカニズムを隠すオペレーティング システムとは異なり、Linux はブート パイプラインのすべての段階を管理者に直接公開します。ほとんどすべての Linux ブート障害は、修正可能な 5 つの根本原因のいずれかが原因で発生します。GRUB 2 ブートローダーの上書きまたは構成ミス (通常、デュアルブート PC での Windows アップデート後にトリガーされます)、ダーティ ext4/xfs/btrfs 突然の停電後のルートファイルシステム、壊れた /etc/fstab ディスク UUID エントリ、100% 完全なルート (/) 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.
今すぐこれを実行してください¶
When your Linux computer or server refuses to boot, follow these six immediate diagnostic and safety steps before running any destructive disk commands:
- Read the exact prompt on your screen to identify which boot stage failed:
grub rescue>またはgrub>: The motherboard UEFI/BIOS loaded the first stage of GRUB, but GRUB cannot locate/boot/grubor its configuration file (grub.cfg)。(initramfs)またはdracut:/#: GRUB loaded the Linux kernel and initial RAM disk fine, but the kernel could not mount your main root (/) filesystem (usually becausefsckneeds to repair a dirty disk).You are in emergency mode / Give root password for maintenance: The root filesystem mounted, butsystemdfailed 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.
- 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
initramfsor GPU module, the previous kernel will boot straight into your desktop in 10 seconds. - 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(orCtrl + Alt + F2throughF6). If alogin: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. - Never run
fsckon a partition that is currently mounted read-write: Runningfsckon a live, read-write mounted filesystem corrupts open inode tables and destroys files. Only runfsckfrom the(initramfs)shell (where root is unmounted), on a read-only mount, or from a Live USB stick. - Unplug all non-important external USB hard drives and SD cards: A failing external USB drive listed in
/etc/fstabor taking over boot priority in BIOS will halt the boot sequence. Unplug external drives and reboot to test. - 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
chrootbootloader repair.
重要: してはいけないこと
Never run grub-install、 dd、 fdisk、または mkfs until you have verified your exact disk and partition layout using lsblk -f または 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 または /lib 完全なルートドライブ上のスペースをクリアしようとします。
デシジョン ツリー: Linux ブート障害の 5 段階の診断¶
この診断フローチャートを使用して、一致するコマンドライン修正までの正確な画面出力を追跡します。
flowchart TD
A["Linux システムがデスクトップ/ログインの起動に失敗する"] --> B{"画面には何が表示されますか?"}
B -->|"grubrescue> または grub> プロンプト"| C["ステージ 1 の失敗: ls を使用して /boot/grub を見つけ、ルートとプレフィックスを設定し、OS を起動して、grub-install を実行します。"]
B -->|"BusyBox (initramfs) または dracut:/# シェル"| D["ステージ 2 の失敗: blkid でルート パーティションを特定し、fsck -y /dev/partition を実行します。"]
B -->|"緊急モード: メンテナンスのために root パスワードを入力します"| E["ステージ 3 の失敗: mount -o remount,rw / を実行し、/etc/fstab 内の壊れた UUID を修正またはコメントアウトします。"]
B -->|"GRUB 後に黒い画面またはカーソルが点滅する"| F["ステージ 4 の失敗: Ctrl+Alt+F3 を押して (または緊急.target を起動して)、ディスク全体または GPU ドライバーを 100% クリアします。"]
B -->|"Windows を直接起動するか、「起動可能なデバイスがありません」"| G["UEFI/EFI ブート順序が消去されました: Live USB をブートし、Root + EFI をマウントし、chroot し、GRUB を再インストールします"]
Linux 起動失敗のプロンプト、原因、コマンドの比較¶
| 画面上のエラー/プロンプト | ブートステージに到達しました | 主な根本原因 | 最速の修復コマンド シーケンス |
|---|---|---|---|
error: no such partition / grub rescue> |
ステージ 1 (GRUB コア) | ディスク パーティションのサイズ変更、クローン作成、または UUID の変更。 GRUB が見つかりません /boot/grub/normal.mod。 |
ls -> set root=(hdX,gptY) -> set prefix=(hdX,gptY)/boot/grub -> insmod normal -> normal |
grub> (標準 GRUB CLI) |
ステージ 1.5 (GRUB ノーマル) | /boot/grub/grub.cfg GRUB モジュールは正常にロードされましたが、見つからないか削除されました。 |
set root=(hdX,gptY) -> linux /boot/vmlinuz-... root=/dev/nvme0n1p2 -> initrd /boot/initrd.img-... -> boot |
BusyBox (initramfs) または dracut:/# |
ステージ 2 (カーネル + Initramfs) | 汚れた電源オフのまま ext4/xfs ルートジャーナルが汚れているため、手動が必要です fsck 承認。 |
blkid -> fsck -y /dev/nvme0n1p2 (または xfs_repair -L XFS の場合) -> reboot -f |
You are in emergency mode (sulogin プロンプト) |
ステージ 3 (systemd マウント) |
セカンダリ ドライブまたはスワップ パーティション /etc/fstab プラグが抜かれているか、再フォーマットされているか、破損しています。 |
rootパスワードを入力 -> mount -o remount,rw / -> nano /etc/fstab (追加 nofail または #) -> systemctl daemon-reload -> reboot |
[FAILED] Failed to start GNOME Display Manager / 点滅カーソル |
ステージ 4 (ディスプレイマネージャー/GUI) | ルートパーティション / 100% フル (0 バイトの空きがあります) /tmp または Xorg ソケット) または壊れた Nvidia カーネル モジュール (dkms)。 |
プレス Ctrl+Alt+F3 -> df -h -> journalctl --vacuum-size=100M & apt clean または ubuntu-drivers autoinstall |
シナリオ 1: からの脱出 grub rescue> または grub> USB スティックなしでプロンプトが表示される¶
画面が表示された場合 error: unknown filesystem、 error: no such partition、または Minimal BASH-like line editing is supported に続く grub rescue> または grub>、Linux インストールと個人ファイルは通常、SSD またはハードドライブ上にそのまま残っています。GRUB は単にどのパーティションが保持されているかを見失っただけです。 /boot/grub。このプロンプトから 2 分以内に、インストールされている OS を直接起動できます。
ケース A: あなたは grub rescue> プロンプト¶
で grub rescue>、4 つの基本的なコマンドのみが機能します (ls、 set、 unset、 そして insmod)。次の手順に注意深く従ってください。
- マザーボード ファームウェアによって認識されるすべてのディスクとパーティションをリストします:
GRUB は次のような行を出力します。
(hd0) (hd0,gpt1) (hd0,gpt2) (hd0,gpt3)(または(hd0,msdos1)古い MBR ディスクでは)。 - Linux ルート (または
/boot) ディレクトリ: (末尾のスラッシュを忘れずに含めてください/それぞれの終わりにlsGRUB がそのパーティション内のファイル名をリストすることを確認してください): - もし
(hd0,gpt1)/ショーefi/、それが小さな FAT32 EFI システム パーティションです。 - パーティション出力時
boot/ etc/ home/ usr/ var/ vmlinuz initrd.img、メインの Linux ルート パーティション (たとえば、(hd0,gpt2))。 (注: Btrfs を使用する場合@Ubuntu/Fedora のサブボリューム、ls (hd0,gpt2)/見せます@/ @home/、ブートフォルダーが次の場所にあることを意味します(hd0,gpt2)/@/boot/grub.) - ** GRUB をパーティションにポイントし、
normalモジュール**: Linux ルートがオンであると仮定します(hd0,gpt2):※(別途専用の機器をお持ちの場合grub rescue> set root=(hd0,gpt2) grub rescue> set prefix=(hd0,gpt2)/boot/grub grub rescue> insmod normal grub rescue> normal/bootパーティションオン(hd0,gpt2)、 使用set prefix=(hd0,gpt2)/grubそれなし/boot.)* - デスクトップが起動したら修正を永続的にします:
出来るだけ早く
normalを実行すると、通常の GRUB メニューが表示され、Linux システムが起動します。 重要:setコマンドは RAM 内に一時的に存在しました。 Linux デスクトップにログインした瞬間にターミナルを開き、正しい GRUB の場所をドライブに永続的に書き込みます。
ケース B: 標準に達しています grub> プロンプト¶
見たら grub> (言葉なしで rescue)、 normal モジュールはすでにロードされていますが、 grub.cfg メニュー ファイルが見つからないか壊れています。 タブ自動補完を使用して、4 行で Linux カーネルを手動で起動できます。
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
linux /boot/vmlinuz Tab キーを押すと、GRUB がディスクにインストールされているカーネルの正確なバージョン番号を自動補完します。) OS を起動したら、次のコマンドを実行します。 sudo update-grub (Debian/Ubuntu) または sudo grub2-mkconfig -o /boot/grub2/grub.cfg (Fedora/RHEL) 欠落しているメニュー ファイルを再生成します。
シナリオ 2: 修正 (initramfs) または dracut 貝殻付き fsck¶
PC が GRUB メニューを通過すると、Linux ブート スプラッシュが数秒間表示され、その後、次のような黒いテキスト プロンプトが表示されます。
BusyBox v1.36.1 (Ubuntu) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) _
(initramfs) プロンプト。 10 回中 9 回は次のように表示されます。
The root filesystem on /dev/nvme0n1p2 requires a manual fsck
からの段階的なファイルシステム修復 (initramfs)¶
- 修復が必要なパーティションを確認してください: プロンプトのすぐ上にパーティション名が表示されない場合は、次のように入力します。
blkidEnter キーを押してリストを表示しますext4、xfs、またはbtrfsパーティション。 - 一致するファイルシステム修復ツールを実行します:
- のために
ext4/ext3ファイルシステム (Ubuntu、Debian、Mint のデフォルト): の-yこのフラグは、破損した i ノード、孤立したブロック、およびジャーナル再生プロンプトに対して、ボタンを押す代わりに自動的に「はい」と応答します。y500回。 - のために
XFSファイルシステム (RHEL、AlmaLinux、Rocky Linux、CentOS のデフォルト): 標準fsckXFS では何もしません。でdracut:/#XFS システム上のシェルで、次を実行します。 (-L次の場合に XFS メタデータ ログをゼロにするフラグxfs_repairはマウントできないダーティ ログのため実行を拒否し、他に選択肢はありません)。 - のために
Btrfsファイルシステム (Fedora、openSUSE のデフォルト): まず、Btrfs ログ ツリーを安全にクリアしてみてください。btrfs rescue zero-log /dev/nvme0n1p2。決して走らないでくださいbtrfs check --repairBtrfs 開発者の指示がない限り、またはライブ USB からデータをバックアップした後は、--repairBtrfs では危険とみなされます。
- のために
- 終了して再起動: 1 回
fsckプリント***** FILE SYSTEM WAS MODIFIED *****、 タイプexit(またはreboot -f) を入力して Enter を押します。システムはクリーンなパーティションをマウントし、通常どおり起動します。
シナリオ 3: 修正 /etc/fstab のエラー systemd 緊急モード¶
起動中に画面が停止した場合:
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):
/etc/fstab、スワップ パーティションをフォーマットした (UUID が変更された)、またはリストされているセカンダリの内部/外付けハード ドライブを取り外した /etc/fstab なしで nofail オプション。デフォルトでは、 systemd いずれかのディスクがリストされている場合、オペレーティング システム全体の起動を停止します。 /etc/fstab 90秒以内に応答がありません。
修正方法 /etc/fstab 90秒以内に¶
- root パスワードを入力します (または、root アカウントがロックされている Ubuntu では Enter キーを押して直接アクセスします。Ubuntu で次のメッセージが表示された場合は、Enter キーを押します)
Cannot open access to console, the root account is lockedを参照してください。init=/bin/bash以下に注意してください)。 - ルート ファイルシステムを読み取り/書き込みとして再マウントします: 緊急モードでは、
/多くの場合、読み取り専用でマウントされているため、保存しようとすると/etc/fstab、nanowill sayError writing /etc/fstab: Read-only file system。最初にこれを実行します。 - どの行にあるか調べてください
/etc/fstab壊れています: 走るmount -a。どのドライブが壊れていても、すぐにエラーが出力されます (たとえば、mount: /mnt/backup: can't find UUID=4a8b...)。実ドライブの UUID を比較することもできます。/etc/fstab実行することで: - 編集
/etc/fstaband addnofailor comment out the bad line: Put a#壊れたセカンダリ ドライブの先頭で、またはラインを交換して無効にする (または追加する),nofailなどのマウントオプション列にdefaults,nofailそのため、外部ドライブが抜かれても Linux は起動を拒否しません)。 ** で保存Ctrl+O**、Enterを押し、で終了しますCtrl+X。 - リロード
systemd再起動する前に確認してください: もしmount -aエラーがゼロを返す、タイプrebootコンピュータは正常に起動します。
Warning
Ubuntu/Debian が次のように言ったらどうなるでしょうか "Cannot open access to console, the root account is locked" 緊急モード プロンプトで? Ubuntu が root デフォルトではパスワードが優先されます sudo、 sulogin ディスクが入っていると緊急モードからロックされることがあります。 /etc/fstab 失敗します。 30 秒以内にロックをバイパスするには: 再起動し、Shift を押し続けるか、Esc をタップして GRUB メニューを開き、Ubuntu を強調表示して ** を押します。e** ブート コマンドを編集するには、で始まる行を見つけます。 linux /boot/vmlinuz...、 交換する ro quiet splash その行の最後に ** を付けますrw init=/bin/bash**を選択し、を押しますCtrl+X または F10。これはバイパスします systemd 完全にロック解除された状態に直接落ちます # 読み取り/書き込みアクセス権を持つ root シェルを実行できるようにする nano /etc/fstab。
シナリオ 4: 100% 完全なルートからの回復 (/) ディスクまたは壊れた GPU ドライバー¶
PC が GRUB をスムーズに通過し、ファイル システム エラーが表示されず、左上隅にカーソルが点滅する黒い画面で永久にハングアップする場合 (または、パスワードを入力して Enter キーを押すたびにログイン画面にループバックする場合)、ルート パーティション (/) はほぼ確実に 100% いっぱいです。いつ / 空き領域が 0 メガバイトであるため、Xorg、Wayland、および GNOME/KDE は 4 キロバイトのセッション ロック ファイルを作成できません /tmp または /var/lib、デスクトップが静かにクラッシュします。
TTY コンソールからギガバイトのスペースを解放する方法¶
- 黒く点滅するカーソル画面(またはループするログイン画面)でを押します。
Ctrl + Alt + F3(ラップトップでは、必要な場合があります)Ctrl + Alt + Fn + F3) を使用して、フリーズされたグラフィカル画面 (TTY1/TTY2) から純粋なテキスト端末 (TTY3) に切り替えます。 - 通常のユーザー名とパスワードを使用してログインし、ディスク使用量を確認します。
- もし
Use%ショー100%(またはAvailショー0)、次の 4 つの安全なクリーンアップ コマンドを実行して、2 GB ~ 25 GB の領域をすぐに解放します。(次のようなログファイルが暴走した場合、# 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/var/log/syslogまたは/var/log/ufw.log50 GB に膨れ上がった場合は、すぐに空にしてくださいsudo truncate -s 0 /var/log/syslog.) - なぜそうなるのか
df -h時々見せるAvail: 0(100% フル) ディスクの 95% のみが使用されている場合? デフォルトでは、ext4パーティション全体の 5% を専用に予約します。rootこれにより、通常のユーザーがディスクをいっぱいにしてもルート サービスを引き続き実行できます。 1 テラバイトの SSD では、5% は 50 GB という膨大な量の人質になります。次のコマンドを実行すると、通常のユーザー アカウント用に予約された 40 GB 以上のバッファをすぐに再利用できます。 - 一度
df -h /shows several gigabytes available, runsudo rebootand 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:
- From the
Ctrl + Alt + F3TTY console, check if the driver module is loaded by runningnvidia-smi。 - もし
nvidia-smisaysNVIDIA-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:
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、 そして 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:
Look at theFSTYPE 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またはxfspartition (e.g., Root is/dev/nvme0n1p2and EFI is/dev/nvme0n1p1): - 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 specifyingsubvol=@、/mntwill only show@and@homefolders instead of/binand/etc、 そしてchroot /mntwill fail withfailed to run command '/bin/bash': No such file or directory. Mount the@サブボリュームを明示的に指定する:
Step 2: Bind virtual kernel filesystems (including UEFI efivars) and enter chroot¶
のために grub-install and apt (DNS インターネット アクセス) 内部で作業するため chroot、Live USB の仮想カーネル ディレクトリと UEFI NVRAM 変数をバインドマウントします。 /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
ステップ 3: パッケージを修復し、再構築する 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)
ステップ 4: 正常に終了して再起動する¶
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.
- 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.
よくある質問¶
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.
ソースを確認しました¶
- GNU Project / Free Software Foundation (International): Official GNU GRUB Manual 2.12 , Booting from
grub>andgrub rescue>Command Shells (gnu.org/software/grub/manual)。 - The Linux Kernel Archives & Kernel.org (International): Kernel Parameters (
admin-guide/kernel-parameters.txt),initramfsEarly 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)。 - Red Hat Enterprise Linux (RHEL) & Fedora Project Documentation (United States): Troubleshooting Boot Issues with
dracut、xfs_repair、 そしてgrub2-mkconfig(docs.redhat.com、docs.fedoraproject.org)。 - Arch Linux Wiki (International): GRUB, Chroot,
fstab、 そしてmkinitcpioTechnical Reference (wiki.archlinux.org)。 - Freedesktop.org / systemd Documentation (International):
systemd.unitEmergency and Rescue Targets,journalctlVacuuming, andsystemd.mountOptions (freedesktop.org/software/systemd/man)。