reinstall grub
By Martin on Regards: Infrastructure;Problem: Windows overwrite grub. Grub missing.
Solution:
- Use a live linux to get access to your hdd.
- Use for example unetbootin with ubuntu live
- Open a terminal
- Use fdisk -l to find out where your linux
- system is installed
- For example our linux system is located on sda1
- mkdir /mnt/debian
- mount /dev/sda1 /mnt/debian
- ls /mnt/debian/home/yourusername # check if
- the mounted partition is the correct system
- For using chroot we need some preparation
- cp -L /etc/resolv.conf /mnt/debian/tc/
- mount -t proc none /mnt/debian/proc
- mount –rbind /sys /mnt/debian/sys
- mount –rbind /dev /mnt/debian/dev
- chroot /mnt/debian /bin/bash
- grub-install /dev/sda1
- update-grub
- exit 20 shutdown now -r