grub

MBR/DOS:

# Mount root partition:
#your root partition, e.g. /dev/sda1
sudo mount /dev/sdX# /mnt

# If you have a separate boot partition you'll need to mount it also:
sudo mount /dev/sdX# /mnt/boot

# Mount your virtual filesystems:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

# Chroot
sudo chroot /mnt
#sudo arch-chroot /mnt

# Install grub
sudo grub-install /dev/sdX
grub-mkconfig -o /boot/grub/grub.cfg

Leave a Reply

Your email address will not be published. Required fields are marked *