You are not logged in.
hello, i tried changing from the linux kernal to linux-lts and i've been trying to make a new config for grub but i keep getting this error, i use btrfs so i have to arch-chroot into /mnt/@ instead of just /mnt, i've tried multiple methods but i can't get it to work:
Error 1:
sudo cryptsetup luksOpen /dev/sda2 encrypted
mount /dev/mapper/encrypted /mnt
mount /dev/sda1 /mnt/@/boot
arch-chroot /mnt/@
grub-install --target=x86_64-efi --efi-directory=/boot/EFI/ --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
/usr/bin/grub-probe: error: cannot find a device for / (is /dev mountedafter this, i tried to mount /dev /proc and /sys to see if that would fix the issue, i then got
Error 2:
sudo cryptsetup luksOpen /dev/sda2 encrypted
mount /dev/mapper/encrypted /mnt
mount /dev/sda1 /mnt/@/boot
mount --rbind /dev /mnt/@/dev
mount --rbind /proc mnt/@/proc
mount --rbind /sys /mnt/@/sys
arch-chroot /mnt/@
mount: /mnt/@/sys: sys already mounted on sys
==>ERROR: failed to set up chroot /mnt/@after arch-chroot i tried just chroot but got the same erorr as error 1
Error 3:
sudo cryptsetup luksOpen /dev/sda2 encrypted
mount /dev/mapper/encrypted /mnt
mount /dev/sda1 /mnt/@/boot
mount --rbind /dev /mnt/@/dev
mount --rbind /proc mnt/@/proc
mount --rbind /sys /mnt/@/sys
chroot /mnt/@
grub-install --target=x86_64-efi --efi-directory=/boot/EFI/ --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
/usr/bin/grub-probe: error: cannot find a device for / (is /dev mountedLast edited by worbgge (2024-05-18 09:59:07)
Offline
What i usually do is open luks partition, mount the main subvolume with
$ mount -o subvol=@ /dev/mapper/encrypted /mntthen mount the other ones by adding the name of the subvolume after @ and the name of the directory after /mnt, and run
$ arch-chroot /mnti don't know if mounting all the subvolumes is necessary but i always do it just in case.
Offline
thank you this solved it, closing topic
Offline