I got a new laptop about 6 months ago and settled on endevouros as I enjoyed its minimalist take. I have no issues to speak of except when the doing updates. For some reason, my laptop has frozen twice during system updates, specifically the part where it is installing the new kernel. Rebooting the system tells me something of the effect of kernel not found. While not ideal, it should be possible to chroot into the system and fix it. After mounting my drives, chrooting gives the following error:
chroot: failed to run command '/bin/bash': Input/output error
I spent about an hour trying to figure out how to fix this error, but couldn’t get it to work. I decided to instead reinstall the entire system. Given that this has happened before, it was much faster to do this process the second time because /home was mapped to a separate partition and I also have a script that installs and configures the system back to its original state. However, this is not an ideal solution. I would rather not have the system crash during updates. I looked at journal logs to try to understand what might be causing the issue, but found nothing unusual. If I am to take a rough guess, it may be GPU related since my laptop has intel and nvidia gpus. I am currently on a fresh install, but will be holding my breath any time I need to do a system update. What can I do to avoid such problems in the future?
I have considered BTRFS but (1) I need to understand how to use it, which takes some time, and (2) my /home is ext4, and has a lot of files that will take ages to backup.
I recently reformatted, switching from EXT4 to BTRFS. What prompted me to do this, was a system failing to start after changing how a secondary encrypted volume was auto-mounted on startup. Painful to fix, because I wasn’t using BTRFS.
It’s made pretty simple if setup via an EOS installation. It handles all the subvolumes, filesystem compression, etc.
No you don’t actually. I went to BTRFS cause after reviewing both EXT4 and BTRFS I found BTRFS to be the better file system. There really is no need to understand the underpinnings of it unless one wants to.
It’s made pretty simple use ANY Linux Distro that either has BTRFS as the default file system for install or gives you the option to use BTRFS as the file system during install.
it will take many more ages to rewrite all the lost documents, take the vanished photos again and rebuild all the other stuff on your drive if a (hardware) failure knocks your device out.
Maybe the crash during the update broke bash on your system. But you can still fix broken packages on your system, from the live USB by running pacman from there with the flag --root /mnt so that the effect will be on the mounted system. You can find more info on how to find the broken packages and fix them on the guide in my post here
Late to the topic, I just recently set up grub-btrfs but can only boot into the snapshots in read-only mode. So no changes are permanent.
I found two solutions provided by the devs (make a writable copy of the snapshot or use overlayfs) but I don’t know how to get them to work since I don’t know the equivalent solution for dracut.
Could you tell me the workaround that you used for this? How do you make your snapshots from grub menu writable? And how do you roll back?
Hmm… interesting. When I boot from a Grub snapshot, I always get IO errors when I try to restore with Snapper. That’s why I assumed it had something to do with it being read-only.
It looks like there’s an unrelated issue going on on my side. It’s probably Snapper-related, not grub-btrfs.
I’ll be looking into it.