1 mkdir /mnt/chrootdir 2 mount /dev/sda1 /mnt/chrootdir 3 for dir in proc dev sys etc bin sbin var usr lib lib64 tmp; do 4 mkdir /mnt/chrootdir/$dir && mount --bind /$dir /mnt/chrootdir/$dir 5 done 6 chroot /mnt/chrootdir 7 grub-install /dev/sda # May not be required 8 update-grub2
标签:chrootdir,修复,grub,mkdir,mnt,dev,dir From: https://www.cnblogs.com/--lr/p/16928440.html