You are not logged in.
Hello,
today I removed grub to replace with systemd-boot by following this thread: https://bbs.archlinux.org/viewtopic.php?id=223909
After rebooting I wait for 1 and a half minutes then systemd-boot says
"Timed out waiting for device /dev/nvme0n1p1" (see image: https://pasteboard.co/RWhBnbPZTA2u.png)
Then I get a bunch of dependency failures.
After that I get put in emergency mode where systemd-boot tries to start initrd.target then asks me to press enter, tries to start it again and repeats.
I have pressed enter for a while and it seems that it doesn't end.
Using a usb with linux mint (and later with endevour OS) I can open any folder but the boot folder looks to be empty. Adding the files back doesn't fix it nor help.
I belive that on step 3 of the thread I put the wrong PARTUUID.
Is my system bricked or is there some way to recover?
Thanks!
Last edited by proJM (2023-11-23 07:52:34)
Offline
To recover, and restore grub:
Boot your system with an arch installation image, and then chroot and reinstall grub, kernel and initramfs image..
https://wiki.archlinux.org/title/Chroot
On Systemd-boot:
Don't follow any random thread here, but stick only to the wiki:
https://wiki.archlinux.org/title/Systemd-boot
Offline
Thanks for the info. I wasn't sure about the thread at first but no one said anything was wrong so I followed it. Next time I will not follow random threads for something as important as the bootloader.
I will try your advice soon, if it works I will mark as solved.
Thanks again for the help.
Offline
Grub does look to be installed now but I don't have a menu for it. All I get is the grub cli.
See the image:
https://pasteboard.co/4mW93BzYkh8V.jpg
Offline
When installing grub,
https://wiki.archlinux.org/title/GRUB
you must decide if your have an "UEFI systems" or "BIOS systems".
Which one did you use ? Did you also follow the chapter 4. Configuration ?
Inspect the /boot folder is there a kernel, initramfs, grub ?
In case of "UEFI systems": where is your EFI system partion, and whats it's content ?
Offline
I did UEFI systems and I have followed chaper 4.
The files listed in /boot are:
EFI amd-ucode.img grub initramfs-custom.img initramfs-linux-fallback.img initramfs-linux.img loader vmlinuz-linux
I have two partions. nvme0n1p1 which is 511M. I would think this is my boot partion because of the size and name.
nvme0n1p2 is 465.3G which would be my system.
Offline
please post
sudo blkid
efibootmgr --verbose and please post inside chroot (with everything mounete bofore):
lsblk --fs
ls -la /boot
ls -la /boot/EFI
cat /boot/grub/grub.cfgOffline
Post
mount
lsblk -f
efibootmgr -uv
cat /boot/grub/grub.cfg from a chroot with your partitions properly mounted.
https://wiki.archlinux.org/title/List_o … n_services
What's your end goal now, do xou want systemd-boot or to restore GRUB?
Offline
I think I would like to restore grub, I will do the commands tomorrow as it is too late for me to now. Thanks for all the help.
Offline
please post
sudo blkid efibootmgr --verboseand please post inside chroot (with everything mounete bofore):
lsblk --fs ls -la /boot ls -la /boot/EFI cat /boot/grub/grub.cfg
Please see the following images:
https://pasteboard.co/WzRPRSE3yD1W.jpg
https://pasteboard.co/cYLaY7lX7xVN.jpg
Sorry the last command doesn't show it all. I'm not sure how to make the text size smaller as it is different to kitty.
Hope it has the info you need.
It should be noted that for some reason all my files are under /@/
Offline
Post
mount lsblk -f efibootmgr -uv cat /boot/grub/grub.cfgfrom a chroot with your partitions properly mounted.
https://wiki.archlinux.org/title/List_o … n_servicesWhat's your end goal now, do xou want systemd-boot or to restore GRUB?
Please see the following images:
https://pasteboard.co/k1VaOk0XXeK4.jpg
https://pasteboard.co/cYLaY7lX7xVN.jpg
Sorry the last command doesn't show it all. I'm not sure how to make the text size smaller as it is different to kitty.
Hope it has the info you need.
It should be noted that for some reason all my files are under /@/
Offline
At this point would it be easier to reinstall arch? If we are close to fixing grub then I will still go ahead but if we are not close at all I can just reinstall.
Offline
It should be noted that for some reason all my files are under /@/
not all files but your boot partition ??? This looks strange. Mount your 1st partition to /boot, and then follow the steps from the wiki to install grub with all steps.
before chroot, like this:
mount /dev/nvme0n1p2 /mnt
mount /dev/nvme0n1p1 /mnt/bootthen proceed with chroot and grub, kernel, initramfs reinstallation.
Offline
Will do.
Offline
Sorry, I was unable to follow your recomendations yesterday as I was quite busy. I will today if I have time.
Last edited by proJM (2023-11-22 10:44:06)
Offline
proJM wrote:It should be noted that for some reason all my files are under /@/
not all files but your boot partition ??? This looks strange. Mount your 1st partition to /boot, and then follow the steps from the wiki to install grub with all steps.
before chroot, like this:
mount /dev/nvme0n1p2 /mnt mount /dev/nvme0n1p1 /mnt/bootthen proceed with chroot and grub, kernel, initramfs reinstallation.
When I said files I mean all the core linux files. Eg. /boot/ /bin/ /mnt/. They are all there with my files and packages
Offline
I can now bood into arch linux! I get to the login screen but there is no DE for some reason. If I try to login to my account it says my password is wrong though. I can't log into root either.
My guess is that the install it is booting into is root /
which has no users. All of my files and packages are inside of /@/
I'm not sure how to install linux 6.6.2 into /@/ instead of / beacuse I get and error if I arch-chroot into /mnt/@
This error tells me I don't have enough disk space. Any idea?
Last edited by proJM (2023-11-22 10:41:48)
Offline
Looks like you are using @ as BTRFS subvolume - any reason ... ?
you should investigate here, do you have a double install, one to / and one to @ ?
To consider the subvolume properly:
mount /dev/nvme0n1p2 /mnt -o subvol=/@
mount /dev/nvme0n1p1 /mnt/boot
arch-chroot /mntthen proceed with grub, kernel, initramfs re-installation.
Offline
I does look like I have a double install. I can see the linux directorys in both / and /@/. The thing is though is that /@/ has alll my packages while / doesn't. /@/ is from /dev/nvme0n1p2. Shouldn't all my boot config go into /@/boot/ not /boot/
Offline
IT WORKS! Thank you so much! I will mark as solved now.
Offline