每当我尝试更新 grub 时,都会收到此错误:
# grub-install /dev/sda
Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
和
# grub-mkconfig -o /boot/grub/grub.cfg
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
另外,我正在使用 btrfs。
答案1
必须先运行此命令:
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
另外,如果从闪存恢复驱动器启动,
chroot /mnt
(来源)