Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
if you can't figure it out, you can run tar -c backup.tar /path/to/files /path/to/more/files to backup whatever's in /path/to/files and /path/to/more/files (you can specify another number of paths besides 2). the path / will back up your whole partition. then copy archive.tar to somewhere not on your main partition. good luck, though. i hope you don't have to do this. – strugee May 9 '13 at 4:41
I'm already running a backup. The solution appears to be here:… – d.bech May 9 '13 at 4:58
See if this will help. – Mitch May 9 '13 at 6:41
Question is how you deleted your partition. It is not possible to access any files on a "deleted" partition. – Takkat May 9 '13 at 7:14

follow the instructions here:

I used gdisk instead of fdist.

DON'T use testdisk

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.