I accidentally deleted my main partition, however i haven't restarted yet so I still have access to all my files. Is there any way to prevent it being deleted on restart?
follow the instructions here: http://ubuntuforums.org/showthread.php?t=1668247&page=4&p=10364557#post10364557
I used gdisk instead of fdist.
DON'T use testdisk