Poszukaj na internecie czegoś takiego "windows after linux" albo "windows after ubuntu" itd. odpowiednio dla twojego systemu. Ewentualnie znajdź coś pod hasłem "grub reinstall". Ogarnij, by materiały nie dotyczyły jakichś przestarzałych wersji. Upewnij się, czy tutoriale odnoszą się do twojego biosu w sensie legacy / uefii
Np. tu masz coś, co powinno zadziałać na ubuntu lub debianie https://help.ubuntu.com/community/Grub2/Installing
W sumie nie musi być cd live konkretnej dystrybucji, ale wystarczy jakikolwiek live linuksa. I wygodnie mieć taki live na usb.
Boot repair after a Windows Upgrade on Ubuntu 14.04 (non-RAID)
Boot repair may be required when updating Windows (e.g. Windows 8 to Windows 8.1). This will be required for example if the computer has been configured such that Windows/Ubuntu is selected by entering the bios and changing the boot mode between "secure boot"/UEFI and CMS respectively. To manually repair grub (http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd / http://askubuntu.com/questions/88384/how-can-i-repair-grub-how-to-get-ubuntu-back-after-installing-windows );
- Insert Ubuntu installation media (e.g. Ubuntu 14.04 LTS 64 bit DVD)
- Ensure the bios boot order is set to read the media first (consult your motherboard/computer manual) and restart the computer
- Select Ubuntu Live/Try mode (do not install)
- Click on the purple Ubuntu search button - enter "gparted" and click on its icon
- Determine the name of your linux partition (/dev/sdXY) - you should be able to identify it by recognising its format (most likely ext4) and size (number of GB)
- Click on purple Ubuntu search button - enter "gnome-terminal" and click on its icon
-
sudo mount /dev/sdXY /mnt [where sdXY has previously been identified using gparted]
-
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
-
sudo chroot /mnt
-
sudo grub-install /dev/sdX [note this is sdX not sdXY!]
-
update-grub
-
exit
- restart PC and remove Ubuntu installation media
(Kiedyś to robiłem na podstawie innego tutoriala, ale nie pamiętam jakiego. Tego nie testowałem)