首页 > 其他分享 >grub修复

grub修复

时间:2022-11-26 22:01:27浏览次数:42  
标签:chrootdir 修复 grub mkdir mnt dev dir

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

相关文章