30. September 2020

Linux Bootfail Stuff

 In case of a non booting system, be it because whatever reasons, I hereby now have a list with some simple tools and shit to check. I intend to upgrade this when discovering new stuff.

Commands to mount and chroot into the system in case of non HDD failures (all as root):

mkdir -p /mnt/root
mount -t ext4 /dev/sda3 /mnt/root
mount -t fat /dev/sda1 /mnt/root/boot
mount -t proc none /mnt/root/proc
mount -o bind /dev /mnt/root/dev
mount -o bind /sys /mnt/root/sys
chroot /mnt/root /bin/bash
source /etc/profile

whdd [https://github.com/whdd/whdd]

Writing to HDD and waiting with sync? This command gives at least a little bit feedback while watching how the dirty bits slowly go down.

watch -d grep -e Dirty: -e Writeback: /proc/meminfo


watch -d grep -e Dirty: -e Writeback: /proc/meminfo