An HDD had 2 partitions, one with Windows 10 and other with Windows 7. I deleted the partition that had Windows 7 on it. Turns out it had the boot for Windows 10.
I looked up how to make the computer run again. The universal answer seemed to be, boot from an Ubuntu USB and run:
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
where sda is where your Windows partition is.
I did:
sudo dd if=/usr/lib/SYSLINUX/mbr.bin of=/dev/sda1.
The computer still wouldn’t boot. But, previously, I was able to see the Windows 10 partition. Now I see an unknown partition.
Testdisk says the file system is broken.
P.S : Sorry if I’m being unclear or unspecific. Essentially, my question is:
How do I retrieve a folder from an NTFS partition I’ve overwritten with sudo dd if=/usr/lib/SYSLINUX/mbr.bin of=/dev/sda1?