Advertisement
mouhsineelachbi

Fix Grub in Linux

Oct 31st, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #### www.facebook.com/Mouhsineelachbi
  2.  
  3. mount /dev/sda3 /mnt
  4. mount --bind /dev /mnt/dev
  5. mount --bind /dev/pts /mnt/dev/pts
  6. mount --bind /proc /mnt/proc
  7. mount --bind /sys /mnt/sys
  8. chroot /mnt
  9. grub-install /dev/sda
  10. update-grub
  11. exit
  12. umount /mnt/dev/pts
  13. umount /mnt/dev
  14. umount /mnt/proc
  15. umount /mnt/sys
  16. umount /mnt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement