Ads

Check out Abanoub's website for more up-to-date content.

How to repair boot failure in Linux

Debian-based: use *boot-repair*

Non debian-based: use of of those

1. Login w/ root pass - nano /etc/fstab - edit this file

2. Start up - press shift - Choose advanced options - add init=/bin/bash after boot/vmlinuz.. thus will show up bash shell for the first boot up ONLY. Make sure to plug a wired keyboard. Nano /etc/fstab and edit it. Hard reboot by unplug electricity.

3. If see black screen w/o anything, ctrl+shift+f1 Then update or install pkgs or restore timeshift backup.

Sudo timeshift --list
Sudo timeshift --restore
Then choose one backup.. etc.

You can make a bootable live usb by
dd if=.iso of=/dev/sdc
Then boot from it
Fdisk -l
Mount sdb2 to mnt if it is the linux drive
Mount sdb2 /mnt
Mount sdb1 /mnt/boot
Chroot /mnt

Edit as you like, remove pkg, edit files, .. etc.

If you want to get new posts, check out the new blog here.