You are not logged in.
I formatted my boot partition by mistake, which deleted my grub as well. I have tried multiple solutions after that but still facing some issues in getting the system to start:
My partitions:
What i have tried:
Booted arch through live usb
Mounted my original arch system and installed grub and linux
mkdir /mnt/arch
mount -t auto /dev/sdb5 /mnt/arch
arch-chroot /mnt/arch
mount -t auto /dev/sdb3 /boot
pacman -S grub
pacman -S linux
pacman -Syu
grub-install --efi-directory=/boot --target=x86_64-efi /dev/sdb
grub-mkconfig > /boot/grub/grub.cfgI had also tried this solution https://bbs.archlinux.org/viewforum.php?id=269588. I got this: 
This and most of the other which I found were solving for mismatch of kernel and boot versions. Some useful outputs:
If you notice the output df -h, there i no boot partition. I think issue might be related to that. Let me know if any other outputs/logs are required.
Any help is appreciated and sorry for all the images and no text. Thanks.
Last edited by astanwar99 (2022-04-04 08:32:50)
Offline
I did lsblk -f and realized my boot partition's UUID was different from the entry in /etc/fstab, got the hint from here: https://bbs.archlinux.org/viewforum.php?id=233935,
I manually changed the entry and its working now. Although my problem is solved, I just want to know if could've solved this without a manual fix? Like regenerating fstab file or some sync command for actual partitions and fstab.
Thanks.
Offline
You could've reran genfstab from arch-install-scripts like during the installation with the new partition mounted.
Please mark as [SOLVED] by editing the title in the first post, might have to shorten it a little
Offline
Cool, thanks for confirming.
Offline