================
== betoissues ==
================

Archlinux randomly booting to GRUB (surprise)

I’ve been very excited because I’m back to using my Linux machine as I mentioned last weekend.

Imagine how I felt this evening when I pressed the power button, went for some water and found myself in a GRUB console.

First issue was to boot to Archlinux, which in the past been simply solved by booting into a live ISO and fixing everything from there.

This time I couldn’t find a single USB stick to do this. Luckily it wasn’t that hard to boot directly from the GRUB console.

It was a bit different because of btrfs subvolumes, but not really that complicated once you have the correct options.

set root=(hd0,gpt2)
linux (hd0,gpt2)/@/boot/vmlinuz-linux root=/dev/nvme0n1p2 rootflags=subvol=@
initrd (hd0,gpt2)/@/boot/initramfs-linux.img
boot

As you can see, having the subvolumes obfuscates a bit the commands by adding the @ but in general rules, it’s the same just different paths. When setting up the kernel passing rootflags=subvol=@subvolume-name was necessary.

The other issue I had was setting up the root partition (root=). After using cat (hd0,gpt2)/@/etc/fstab and finding myself in the limited kernel shell because of the device “not being found”, when I clearly took it from the fstab, running blkid in the kernel shell solved my problem.

Turns out I was reading a comment above the fstab entry, and the comment had the wrong device number 👍.

Of course it wasn’t finding the root partition (well, it could’ve found a different device). Next time (hopefully there’s not) I’ll try using the UUID.

So I’ve managed to boot but, what happened?

From what I can tell, there was an issue with timeshift generating the btrfs snapshots via the pacman hook, forcing me to regenerate the grub configuration manually.

At least now I know how to boot from GRUB.

articles from blogs i follow

In POSIX, you can theoretically use inode zero

When I wrote about the length of file names in early Unix, I noted that inode numbers were unsigned …

via Chris's Wiki :: blog May 31, 2025
How to trigger a command on Linux when disconnected from power

# Introduction After thinking about BusKill product that triggers a command once the USB cord di…

via Solene'% May 31, 2025
📝 30 May 2025 at 21:25 - Going down a website rabbit hole is just the best...

Going down a website rabbit hole is just the best. It starts with a blog po…

via Kev Quirk May 30, 2025

Generated by openring