Restore Windows MBR Bootloader using Linux
So i had someone that brought me their little laptop that they had experimented with linuxmint and decided to just use windows. They were dual booting and they had someone remove the linux partitions. Well that messed up grub and the laptop would no longer boot. I really don't know why they decided not to use Linux, however i said i would fix it so they could boot into windows. I have only fixed grub boot issues and not any for just windows. So i spent some time searching the internet trying to figure out how to fix this. Well after a few hours i found a simple command. I am posting my finding here because as i have said before it's easier for me to search my own site than the internet.
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
And that's it. You will now have your machine booting again. There was a second solution
sudo apt-get install mbr
if the package got installed use following to write the MBR.
sudo install-mbr -i n -p D -t 0 /dev/sda
I did not need to use this however so your mileage may vary.