Hi Amr,
You can also try using testdisk on your macOS to see if it can recover your partitions in your external drive. You may be able to install testdisk using homebrew: brew install testdisk
Once testdisk is installed, plug in the drive to your MacOS machine and if MacOS suggests formatting the drive, select ignore. On a terminal, run sudo diskutil list
to see the drive path. It would show as /dev/disk3 (external, physical)
if that is the only drive attached to your mac.
Now run testdisk using sudo testdisk
. You can select creating a new log file. Select your disk from the list. It should show up like Disk /dev/disk3
from the list. Make sure that you select your external drive (we don’t want any more accidents). Select the drive then select Proceed. Select the Intel/PC partition. Then select Analyze and select quick search. It should scan the whole drive for any partitons. This might take an hour depending on your drive size.
It would show the partitions that it has detected. Check if these are the partitions that you want to recover. Hit enter to continue if the partitions were successfully detected. You should be then given an option to write the partition table to the disk. Select Write then confirm. Reboot your Mac once done.
I have used testdisk before at a past job to recover partitions on a RAID disk array that failed during a power outage. I hope it works for your as well. Let us know how it goes.
Regards,
Carlo