I recently recovered an accidentally formatted ext4 partition by following these steps: Recover ext4 file system after quick format
The recovered drive now shows up in testdisk after running "quick search" and I can browse my lost files. However, if I select the recovered drive in testdisk and use the "write" option, the drive still can't be mounted after restarting my computer as the program suggests.
I believe the problem is that although I successfully recovered my lost ext4 partition from a backup superblock, I never updated the GPT partition table to reflect this. Hence, Ubuntu cannot detect/mount the drive. How do I fix this?