usually I kill the whole HDD and reinstall both OSs, but this time my Debian system was really well configured (I worked a lot on it in the last time) so I had to restore the GRUB bootloader.
there are different ways to do this, the ones I found were mostly unnecessarily complicated, so I will show how to do it with just a couple of commands:
you need is a Linux Live CD, I used Damn Small Linux for example, and you need to know on which HDD and partition Linux is installed.
in my case Debian is on the first HDD, 2nd partition, which equals hd0,1
ok, let's go:
boot the live CD, when done open a shell:
Code: Select all
##enter the GRUB shell###
grub
###tell GRUB where Linux is installed###
root (hd0,1)
###install GRUB in the MBR###
setup (hd0)