You are not logged in.
Hi guys !
So i used to virtualize windows until recently where i decided it would be great to have a dual-boot too.
Prior to this i only had arch so my install is suppose to be clean.
I removed the disk containing windows and put it into another computer but now my grub is broken.
I tried mounting all my partitions, recreating fstab and reinstalling uefi grub but when i run :
grub-install --target=x86_64-efi --efi-directory=/mnt/boot/efi --bootloader-id=grub
I got the error :
grub-install: error: failed to get canonical path of `airootfs' .
I checked this error on google and the forum and people are suggesting to do a grub-mkconfig -o /mnt/boot/grub/grub.cfg but that gives me the same error.
If i try those commands in the chroot environnement i got the following error :
/usr/bin/grub-probe: error: cannot find a device for / (is /dev mounted?)
Which is weird considering /dev is indeed mounted.
For the record i use lvm for / , /home and /swap
My efi partition is in a separate partition (/dev/sda1 for efi, /dev/sda2 for lvm)
Any help would be appreciated i have to admit it's been a while since i put my hands into my arch and i am a bit lost
ps : to mount my partitions and generate fstab i used :
mount /dev/mapper/lvm-root /mnt/
mount /dev/mapper/lvm-home /mnt/home
swapon /dev/mapper/lvm-swap
mount -t vfat /dev/sda1 /mnt/boot/efi
genfstab -U -p /mnt >> /mnt/etc/fstab
Last edited by zipeldiablo (2016-09-21 08:43:13)
Offline
Not a Sysadmin issue, moving to NC...
Offline