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
?
dd
looks wrong to me? MBR is the first 512 bytes of the disk, not a partition on the disk, however I don't see an on-topic question. – guiverc Nov 20 '19 at 20:39/sda1
) instead of the drive's MBR (/sda
). If testdisk was unable to recover the partition table then see my answer using testdisk to recover files or folders from a corrupt drive – Takkat Nov 20 '19 at 21:01dd
command if you got it wrong? (as you did, eg. add
command to save that data before your specifieddd
so if wrong, it could be reversed?) – guiverc Nov 20 '19 at 21:50