At first, Windows 7 was the only OS in the drive.
Then I installed Linux Mint. I accidentally formatted the
sda1 partition (where the Windows 7 bootloader was stored) as ext4, being the mount point of
/boot. As a result, I couldn't boot Win7 any more.
(By the way, Mint was installed in the sda5 partition)
Afterwards, I repaired the Win7 bootloader successfully, which deleted the GRUB(2?) loader, resulting in me being unable to boot Mint.
I tried running:
sudo mount /dev/sda5 /mnt sudo grub-install --root-directory=/mnt/ /dev/sda
Resulting message is:
grub-probe: error: cannot find a device for /boot (is /dev mounted?). Installation finished. No error reported.
And after reboot, I get the
grub> prompt, but no OS options whatsoever.
(Keep in mind, there's no partition assigned for