PDA

View Full Version : repair partition table



mike442
October 16th, 2018, 07:00 AM
Hi
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

westie457
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