Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause and resume scan for big drives #34

Open
vto80 opened this issue Apr 17, 2018 · 3 comments
Open

Pause and resume scan for big drives #34

vto80 opened this issue Apr 17, 2018 · 3 comments

Comments

@vto80
Copy link

vto80 commented Apr 17, 2018

A way to pause and resume scanning of big drives would be a cool feature.
I've started RecuperaBit on a USB3 8TB drive (that i've overwritten the first 1-2GB) and it's taking a while. So far it's about 2/3 done but it's still going to be another day or two until it finishes. Would not be a problem usually but i've stupidly forgot to put it in a screen and now i'm stuck waiting for it to finish :/

@NicolasCARPi
Copy link
Contributor

I don't think this should be part of the software, as you can already pause and resume processes (use Ctrl-z). In my use case, it's 4 Tb drives and yes it takes a long time, and what I think would be better to have is a progress bar of some sort, I believe this should be doable because we know from the start the size of the drive and we could update the progress bar after each sector scan.

I've stupidly forgot to put it in a screen and now i'm stuck

Note that you can attach a process started outside screen in screen (or tmux for modern people :p). See reptyr ;)

@beaster99
Copy link

I'm not sure that is the full ask from vto80.
The Save file does not seem to be written out to disk until the scan is completed.
I've had numerous cases of the scan handing indefinitely after ~1.2TB of a 2 TB disk recovery. Each time that happens, there is no method to resume from a break-point that is manually invoked because of some need. There needs to be some value in the save file being able to reduce the rescanning work as is the case with TestDisk and some of the commercial tools.

@Lazza
Copy link
Owner

Lazza commented Jan 14, 2020

Both the suggestion of a progress bar and better handling of progress are good features. I agree that they should be included in some form.

Please note that currently the textual interface is the least polished part of the software. A lot of work was put into the file system reconstruction inner workings and not so much on the initial scanning / TUI.

However, improvements can surely be made!

The Save file does not seem to be written out to disk until the scan is completed

It should be written if you interrupt with Ctrl+C. But in any case, I agree that it's not ideal.

What I am thinking about is that the scan file should be abandoned in favor of a more complete status/project file in SQLite form.

The first step (except finding the time 😛) would be to draft the structure of such a file.

This would be also related to #63 since all the UI parts can be simply discarded and rewritten. Only the file system module (which is large) should be migrated to Python 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants