r/archlinux • u/Zealousideal_Ease191 • 2d ago
SUPPORT | SOLVED Suddenly cannot boot
I have arch already since about half a year with no problems, but today it had a lot of random 1 sec Freeze's. So I installed linux-lts. Then rebooted, but it didn't turn on. Every time i rebooted it put me in bios.
Then I chrooted with my arch-live-usb and tried to pacman -Syu and it worked ,but didn't help. I also tried grub-mkconfig, but I think it only made the config for the usb, although I was on in chroot.
I managed to deleted linux-lts, also didn't help.
Thank for helping me in advance.
3
u/East-Yogurtcloset272 2d ago
First mistake is taking some random action to fix a problem
Learn what journalctl does and troubleshoot your system next time
You now need to restore your kernel and have your boot loader point to it
2
u/archover 2d ago edited 2d ago
I believe that rebuilding the initramfs cures some problems. Random type problems like you describe are puzzling if true.
Understanding how to mount and chroot is an essential skill.
For other readers, note that failure to boot DOES NOT mean your user files are lost or at risk, at all.
Hope you resolve and good day.
2
u/akram_med 1d ago
if it puts you straight into bios it means that the bootloader is not detected, did you enable secure boot? because you need to disable it
1
u/FocusedWolf 2d ago edited 1d ago
Some of this might be different now but when i used LTS i installed these related packages:
linux-lts linux-lts-headers nvidia-lts nvidia-settings
EDIT: AI said "nvidia-lts was replaced by nvidia-open-lts for supported GPUs. Pascal and older GPUs require a legacy driver". Also had this warning in my notes to not install nvidia-lts if using nvidia-dkms.
The last step to add LTS to the grub menu is to do $ sudo grub-mkconfig -o /boot/grub/grub.cfg
-4
u/HipKat2000 2d ago
Amazing how ChatGPT has helped me out of shit like this
1
-1
u/marci-boni 2d ago
ChatGPT kicks ass in Linux knowledge! I have to admit she configured my entire Ubuntu server and it was great learning along the way . But I asked each command with descriptions of what that command do so was up to me if I wanted to run it or not . She’s very useful for this I mean r u telling me here people remember commands long like this text ? I don’t believe so , just to mount my 8 drives automatically in ntfs and being able to access them remotely too took a lot of command especially because before actually changing shit we were running lots of read only command to fully understand (for me ) what I was doing
-1
u/HipKat2000 1d ago
Exactly. And I don't just copy/paste into a terminal. I try to find what each command actually does and tbh, most of it, at my age (62) gets harder and harder to hold onto
6
u/xdominik112 2d ago
You have to mount both boot and root partition same as with manual install to update config since grub.cfg is in the boot partition(most likely efi) . As describled here https://wiki.archlinux.org/title/GRUB#Generate_the_main_configuration_file . READ NOTE and then click on BBS post in it
Reminder that after installing new kernel you need to run re-run grub-mkconfig everytime
Also for you case does it instantly reboot you into UEFI menu (need to reinstall grub/bootloader) or does it boot into GRUB and then to continues to UEFI setup after not finding any boot entries (need to remake grub configuration file)
There is also possiblity of your hardware - most likely storage (SSD/HDD) dying or becoming corrupted.