I had an old Ubuntu installation (version 13), which had a partitioned drive, with /home mounted on a partition, and /data on another partition which I used to store my files. I wanted to install Ubuntu 14.04, but I accidently clicked on the "Erase entire disk" option, and now the old partitions are gone. I didn't proceed with the installation, so I except it to be recoverable. How can I recover what I had on /data?
Note that unlike a previous question, I'm not sure what filesystem /data was. It could have been NTFS, but more probably it was ext4.
Thanks.