View Full Version : repair partition table

October 16th, 2018, 07:00 AM
i've accidetally deleted not only the mbr but also partition table with

# dd if=/dev/zero of=/dev/sdc bs=512 count=1
how to restore the partition table? I've tried gparted but it went on for hours.
on one disk i have Windows and ubuntu partitions and on the other also a hfs+ partition.
many thanks

October 16th, 2018, 08:26 AM
Testdisk is possibly the best option. It is available in the repo's. Or with full examples from here. https://www.cgsecurity.org/wiki/Main_Page