Greetings,
I was trying to do chroot to install grub on the partition. I could mount the disk partition but when I do arch-chroot /mnt it returned “failed to setup chroot /mnt.”

Greetings,
I was trying to do chroot to install grub on the partition. I could mount the disk partition but when I do arch-chroot /mnt it returned “failed to setup chroot /mnt.”

It looks like you aren’t mounting the partitions correctly.
You probably need to mount /dev/nvme0n1p2 on /mnt and then mount /dev/nvme0n1p1 on /mnt/boot/efi
After both those are mounted sudo arch-chroot /mnt should work
Thank you it worked!