Update2: managed to boot by reinstalling grub, reinstalling the kernel (latest) with Artix' own basestrap script and then updating grub from a live USB. System saved. ~~Now it won't accept a new IP from my dhcp server but that's tomorrow's problem.~~ Thank you all for your quick respones! 🥰
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Booting a live USB and reinstalling GRUB as follows has saved my butt in the past. Obviously replace the /dev/sdXY paths with your own. Further adjustments might be needed depending on your system.
# mount root partition:
sudo mount /dev/sdXY2 /mnt
# mount boot partition (if there is any)
sudo mount /dev/sdXY3 /mnt/boot
# mount efi partition (if there is any)
sudo mount /dev/sdXY1 /mnt/boot/efi
# mount other partitions:
for dir in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do sudo mount --bind $dir /mnt$dir; done
# chroot into mounted system:
sudo chroot /mnt /bin/bash -i
# reinstall grub:
grub-install
# rebuild grub.cfg:
update-grub
# rebuild initramfs and exit chroot (not sure if necessary):
update-initramfs -u
# sync and exit:
sync
exit
reboot
This is also the basic starting point for fixing many boot problems; boot from live USB, mount system partitions, chroot into temporary environment. Most problems are fairly easy to fix if you can just get to a command line.
Update1: catted fstab from a live USB and the UUID has not changed, which dazzles me. What is going on...
And you can mount the partition in your live USB boot?
It sounds like your bootloader doesn't recognize the file system at that device path.
Mounted no problem. Deleted everything under /boot when chrooted and reinstalled grub. Now, grub doesn't even load at boot, it just takes me to the UEFI. There, I see the "grub" entry, but it's inaccessible.
At least on Ubuntu, /boot also has the initrd and kernel (vmlinuz). Maybe your distribution has them in /, but if not, you probably need to reinstall the kernel package in the chroot.
Revert back to the previous kernel / initramfs to get yourself booting. There's no devices listed, so you probably need to add the disk driver and make a new initramfs.
Seems like some corruption has occurred as it’s reporting a bad block, have you ran fsck on the partition? If you’re lucky perhaps the filesystem can repaired.
If the filesystems seem ok it might be your grub configuration (or whatever bootloader you use)
