Recover 128 bytes file from UFS

Using PhotoRec to recover lost data
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
Posts: 1
Joined: 03 Mar 2014, 11:03

Recover 128 bytes file from UFS

#1 Post by luislupe »

I erased the file system of a 2 GB UFS partition by mistake and with it a 128 byte file with random data as the geli password for an encrypted partition in the same disk. I tried photorec, but couldn't find a way to search for such kind of files. Is it possible to find a 128 byte file of random data using photorec or another tool?

User avatar
Site Admin
Posts: 5422
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: Recover 128 bytes file from UFS

#2 Post by cgrenier »

PhotoRec uses file signature to identify the files to recover. If your file content is random, no signature can be written.
Data carver utilities (tools like PhotoRec) won't help. Maybe the commercial utility UFSExplorer can undelete the file.