Advertisement
gaitapi

chroot grub repair

Dec 25th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. grub2-mkconfig -o /boot/grub/grub.cfg
  2.  
  3.  
  4. This must be run first:
  5.  
  6. mount /dev/sda1 /mnt
  7. mount --bind /dev /mnt/dev
  8. mount --bind /dev/pts /mnt/dev/pts
  9. mount --bind /proc /mnt/proc
  10. mount --bind /sys /mnt/sys
  11. Plus, if booted off a flash recovery drive,
  12.  
  13. chroot /mnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement