1

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?

damadam
  • 2,873
Yews
  • 21
  • 6

1 Answers1

0

Takkat – it took many hours, and one file didn’t copy at all – I mean, I’m sure it would but it was taking so long I thought it would be easier to download it again so I just aborted the operation myself – but I ended up with all boss’ data on my laptop, created a new partition table instead of the corrupted one, and installed the system. Maybe it was still possible to restore the file system as it was before I dd’d it, but it was just more efficient to extract necessary data and install the system anew than to figure out how to revert the dd. Thank you.

P. S. also, WinEunuuchs2Unix – no, it doesn’t. It literally just says ‘Can’t open filesystem. Filesystem seems damaged’. That’s it.

Yews
  • 21
  • 6