Hi all,
Just after I moved my backup data to an encrypted GELI partition, I did a
The /root directory is in the / slice of 2GB of size.
I've already built a
The GELI key previously stored in /root was created as
Tried to use cgsecurity's photorec and testdisk, but I think there's no way I can use them to recover the file, since it's not possible to define a signature to the searched file that is built from random data.
I'm writing here in the hope that someone could give me some light on whether it's feasible to recover the file.
I was thinking of building a C program to read all sectors of the slice image searching for files of size 128 bytes.
I have no knowledge of how the UFS filesystem is built.
What practical pointers are there that could be useful for me?
Just after I moved my backup data to an encrypted GELI partition, I did a
newfs
on the /root directory of the backup disk by mistake. There are no files created in the new filesystem, though.The /root directory is in the / slice of 2GB of size.
I've already built a
dd
image of the slice.The GELI key previously stored in /root was created as
Code:
dd if=/dev/random of=/root/ada0.key bs=128 count=1
Tried to use cgsecurity's photorec and testdisk, but I think there's no way I can use them to recover the file, since it's not possible to define a signature to the searched file that is built from random data.
I'm writing here in the hope that someone could give me some light on whether it's feasible to recover the file.
I was thinking of building a C program to read all sectors of the slice image searching for files of size 128 bytes.
I have no knowledge of how the UFS filesystem is built.
What practical pointers are there that could be useful for me?