# Linux Emergency Recovery With init=/bin/bash

DevFeed: [Linux Emergency Recovery With init=/bin/bash](<https://devfeed.tech/articles/linux-emergency-recovery-with-init-bin-bash-4518.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/920030138/0/baeldung/linux~Linux-Emergency-Recovery-With-initbinbash>)

Author: Francesco Galgani

Published: 2025-06-10T19:40:59Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [Disaster Recovery](<https://devfeed.tech/topics/disaster-recovery.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [boot](<https://devfeed.tech/topics/boot.md>), [GRUB](<https://devfeed.tech/topics/grub.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [mount](<https://devfeed.tech/topics/mount.md>), [Ext4](<https://devfeed.tech/topics/ext4.md>)

Tags: [1-1-1-1](<https://devfeed.tech/tags/1-1-1-1.md>), [apt](<https://devfeed.tech/tags/apt.md>), [backup](<https://devfeed.tech/tags/backup.md>), [bash](<https://devfeed.tech/tags/bash.md>), [bash-shell](<https://devfeed.tech/tags/bash-shell.md>), [boot](<https://devfeed.tech/tags/boot.md>), [boot-process](<https://devfeed.tech/tags/boot-process.md>), [boot-process-passwd-popular-systemd](<https://devfeed.tech/tags/boot-process-passwd-popular-systemd.md>), [boot-process-passwd-systemd](<https://devfeed.tech/tags/boot-process-passwd-systemd.md>), [bootloader](<https://devfeed.tech/tags/bootloader.md>), [c](<https://devfeed.tech/tags/c.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [emergency](<https://devfeed.tech/tags/emergency.md>), [init](<https://devfeed.tech/tags/init.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [passwd](<https://devfeed.tech/tags/passwd.md>), [popular](<https://devfeed.tech/tags/popular.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [restore](<https://devfeed.tech/tags/restore.md>), [root](<https://devfeed.tech/tags/root.md>), [shell](<https://devfeed.tech/tags/shell.md>), [systemd](<https://devfeed.tech/tags/systemd.md>)

## AI overview

When the bootloader and kernel still work, adding `init=/bin/bash` in GRUB can start Bash as PID 1 with root privileges, bypassing normal services and boot scripts. The root filesystem starts read-only, so remount it read-write before changing passwords or repairing files. For root filesystem corruption, use `break=premount` to reach BusyBox in the initramfs before the damaged filesystem is mounted; there, unlock LUKS, activate LVM, and run `fsck`. To reinstall missing packages, the excerpt shows manually configuring networking and mounts, then using apt and dpkg. Normal reboot commands may fail without systemd; `reboot -f` is usually available, while `sync` followed by writing `b` to `/proc/sysrq-trigger` forces an immediate reboot and risks data loss or corruption. The examples were tested with Linux Mint 22 and are described as applicable to Debian/Ubuntu-based systems; commands need adapting to the installation.

## Source excerpt

Learn to use the init=/bin/bash kernel parameter to access a minimalist root shell on systems that wouldn't otherwise boot. The post Linux Emergency Recovery With init=/bin/bash first appeared on Baeldung on Linux. Click the icon below to watch. Related Stories Linux Emergency Recovery With init=/bin/bash - Enclosure How to Restore Systemd After Deleting It Accidentally How to Dual Boot Windows and Linux