PXE Boot installed blank OS over existing

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Posts: 2
Joined: 28 Nov 2015, 17:04

PXE Boot installed blank OS over existing

#1 Post by sysadm4now »

Looking for some advice. One of my servers was rebooted. Turns out it was configured to boot from the network first. The PXE Boot installer was completely automated and did its job. Do I have any hope for recovery of the files on this machine?

User avatar
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: PXE Boot installed blank OS over existing

#2 Post by Fiona »

Can you use the latest version of Ubuntu?
It contains a newer version of TestDisk too.
Do you use a Live-CD.
That depends on, how much data you've already written over your underlying previous OS.
When you've written a new OS over an existing one, you'd need datarecovery software.
In most cases it's possible to recover important underlying data.
Please don't write anything to your disk anymore.
When you were writing only a small amount of data to your disk, I'd consider to run a TestDisk diagnose.
When you were overriding a lot of data, you can try to recover underlying data.
You can use PhotoRec.
You can run FileOpt and pressing "s" will deselct all file types.Please select only these file types which you'd like to recover.
You should only scan empty space.
It avoids to recover existing files.
Target is the PhotoRec folder.
If you'd like to choose another target/destination you can check these two dots in the upper area of the display and press enter.
Eacht time you'll get 1 directory up, until you get to your disk selection.

PhotoRec doesn't recover directories, and original file names.
If you'dlike to keep file names you should have a look for commercial datarecovery software.

Fion a

Posts: 2
Joined: 28 Nov 2015, 17:04

Re: PXE Boot installed blank OS over existing

#3 Post by sysadm4now »

Thank you for your reply. I am currently running a deep analysis with test disk. Should I stop running that? I was going to initiate a photorec scan but it asked me where to save the files and I could not figure out how to choose a different filesystem than the one I am trying to recover.