LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sorting photorec output (https://www.linuxquestions.org/questions/linux-software-2/sorting-photorec-output-946803/)

Mark_667 05-25-2012 05:56 AM

Sorting photorec output
 
I have an old Solaris disk that I tried to clone but which is now unbootable (it's listed as having a MS-DOS filesystem), though the data itself shouldn't have been overwritten. Photorec seems to have recovered a lot (to a different disk) but all the filenames now consist of inode numbers and I don't know where they came from in the disk structure. Is there any way to find out what the original file names were or where they came from?

TobiSGD 05-25-2012 06:01 AM

Short answer: No.
Long answer: Depends on the type of files. For example, if it are mp3-files you can read out the ID3-tags for information, JPEGs can contain information about the file in EXIF data, ... . Other than that I think you are out of luck.

pan64 05-25-2012 06:33 AM

you can try also the command file, it may identify executables and text files. Also you can try strings to see what is inside in a binary and you may guess. Is there any specific you are searching for? You can also try to read the disk with linux, it may have driver (ufs).

Mark_667 05-25-2012 07:47 AM

I've found an interesting piece of code:

Code:

$> time find /export -inum 2590784  -xdev -fstype ufs -print 2>/dev/null
/export/<full_path>/abc.rdb
 
real    0m16.28s
user    0m1.56s
sys    0m13.36s

http://www.unix.com/shell-programmin...ch-faster.html

Could this be useful?


All times are GMT -5. The time now is 10:38 PM.