Linux
init 1 / Single-User Mode
What is init 1?In traditional Linux systems using SysV init, runlevel 1 is known as
single-user mode. It provides a minimal environment mainly intended for system administration and troubleshooting, usually with root-level access.
On modern Linux systems using
systemd, similar environments are provided through targets such as:
rescue.target — a basic maintenance environment
emergency.target — an even more minimal environment for serious boot problems
How to Enter It
Using GRUB:During boot, edit the Linux boot entry and, on systems that support it, add a parameter such as
single to enter single-user mode.
Using SysV init:sudo init 1
or:
sudo telinit 1
Using systemd:sudo systemctl isolate rescue.target
To return to normal operation:
sudo systemctl isolate multi-user.target
or, on systems with a graphical desktop:
sudo systemctl isolate graphical.target
Rescue vs Emergency Mode
Rescue mode: provides a relatively usable environment for common repairs.
Emergency mode: provides a much more minimal environment and is mainly useful when the normal boot process cannot continue.
What Can You Do There?
Before changing anything, check the system:
mount
findmnt
lsblk
journalctl
These can help you understand mounted filesystems, disks, partitions, and boot/system errors.
If the root filesystem is read-only,
don't immediately remount it as read-write. First determine why it became read-only.
For filesystem repair,
fsck can be useful, but you should first identify the correct filesystem/device and make sure it is safe to repair.
If Single-User/Rescue Mode Doesn't Work
The problem may involve:
Filesystem corruption
Disk or hardware problems
Kernel issues
Boot configuration
Initramfs problems
Mount failures
A
Live Linux environment can be useful because you can inspect the installed system without booting it normally.
Important Safety Notes
Rescue and single-user modes provide powerful administrative access. Always:
1. Check the system before making changes.
2. Identify the correct disk and filesystem.
3. Avoid destructive commands unless you're completely sure.
4. Keep backups of important data.
5. Remember that commands involving
rm,
mkfs,
dd, partitioning, or direct disk changes can cause permanent data loss.
Is
init 1 Still Relevant?
Yes, the
concept of single-user mode is still important, but modern Linux systems often use systemd instead of traditional SysV runlevels.
You can check the default systemd target with:
systemctl get-default
In short: init 1 is an older way of entering a minimal maintenance environment. On modern Linux,
rescue.target and
emergency.target are usually more relevant. The golden rule is simple:
With great root access comes great responsibility.@JustMyLogss