Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rescue

Entering the Rescue

Add below kernel parameters in edit mode of GRUB:

init=/bin/bash
or
systemd.unit=rescue.target

Basic Commands

Module management

insmod part_gpt     # for GPT disks
insmod efi_gop      # UEFI graphics
insmod chain        # Windows boot

File system repair

fsck -y /dev/sda1
mount -o remount,rw /

Grub reinstall

chroot /mnt # use Live CD
grub-install /dev/sda
update-grub

or

mount /dev/nvme0n1p1 /mnt
mount /dev/nvme0n1p2 /mnt/boot
grub-install --target=x86_64-efi --efi-directory=/mnt/boot --bootloader-id=GRUB
grub-mkconfig -o /mnt/boot/grub/grub.cfg

Network configuration

ip link set eth0 up
ip addr add 192.168.1.100/24 dev eth0
ip route add default via 192.168.1.1