Cara Mengembalikan Grub di Linux

12
156

Cara Mengembalikan Grub di Linux 1

sudo mount /dev/sdXY /mnt
sudo mount –bind /dev /mnt/dev
sudo mount –bind /proc /mnt/proc
sudo mount –bind /sys /mnt/sys

sudo chroot /mnt

grub-install /dev/sdX
grub-install –recheck /dev/sdX

update-grub

exit
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt

reboot :)

12 COMMENTS

  1. sedikit koreksi bagi yang tidak sukses dengan cara di atas… 😀

    sudo mount /dev/sdXY /mnt
    sudo mount –bind /dev /mnt/dev
    sudo mount –bind /proc /mnt/proc
    sudo mount –bind /sys /mnt/sys

    sudo chroot /mnt

    grub-install /dev/sdX
    grub-install –recheck /dev/sdX

    update-grub

    exit
    sudo umount /mnt/dev
    sudo umount /mnt/proc
    sudo umount /mnt

    reboot 🙂

    semoga bermanfaat

LEAVE A REPLY