By mistake I formatted my Windows Vista while installing Ubuntu. Few people suggested me to use Photorec to get the data back. I just installed TestDisk on my machine. My question is: I want to recover the lost data onto an External Harddrive, but when I am trying to connect this drive, its giving me an icon on the desktop and when I try to open it, it shows few folders and executables to unlock the drive.. when I actually click on it. it throws some error.
If you've written any data to that disk then you've overwritten some files. The more you use the drive the more you'll overwrite. You must stop using it immediately if you want any chance of recovering data.