get current status e.g. Copying, please wait... 1234 ok, 0 failed

Using TestDisk to repair the filesystem
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
Locked
Message
Author
rosch
Posts: 3
Joined: 06 Oct 2020, 10:23

get current status e.g. Copying, please wait... 1234 ok, 0 failed

#1 Post by rosch »

Hi all,

I was wondering if there is a way to get the current status of the file recovery.
I'm using Advanced / Filesystem Utils to list and copy files from the dying HD.

Is the log file testdisk.log an option to compute the status?

By current status I mean the text

Code: Select all

Copying, please wait... 1234 ok, 0 failed
The idea is to read this status regularly using some terminal command, and set up a cron job to get updates on the recovery on a regular basis..

Many thanks in advance.
recuperation
Posts: 3036
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: get current status e.g. Copying, please wait... 1234 ok, 0 failed

#2 Post by recuperation »

I don't know.

Please run Testdisk and select any healthy volume and try copying a directory tree from there to another location.
Check the log file for any lines relating to the copy process.

Please report your findings here.

Thanks.
rosch
Posts: 3
Joined: 06 Oct 2020, 10:23

Re: get current status e.g. Copying, please wait... 1234 ok, 0 failed

#3 Post by rosch »

It looks like this is not trivial / not doable using testdisk or its log file.

You can use the usual file commands like the following to give you the number of files:

Code: Select all

find /path/to/recovery -type f | wc -l
find: lists the files, -type f is to limit the search to only files (no folders), one file name per line
| wc -l: the output of the find command is fed to wc -l which prints the newline counts
Last edited by rosch on 06 Oct 2020, 22:37, edited 1 time in total.
recuperation
Posts: 3036
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: get current status e.g. Copying, please wait... 1234 ok, 0 failed

#4 Post by recuperation »

Thank you. As I am a casual linux command line user I will have to read documentation to understand what it does. :)
rosch
Posts: 3
Joined: 06 Oct 2020, 10:23

Re: get current status e.g. Copying, please wait... 1234 ok, 0 failed

#5 Post by rosch »

recuperation wrote: 06 Oct 2020, 21:53 Thank you. As I am a casual linux command line user I will have to read documentation to understand what it does. :)
Edited my post, added some explaining about the used commands.
Locked