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

Is there a way to manually set sector size? I think recuperabit is assuming my 4096 sector size disk has 512 sector size. #99

Open
left1000 opened this issue Jan 2, 2022 · 5 comments

Comments

@left1000
Copy link

left1000 commented Jan 2, 2022

Is there a way to manually set sector size? I've got an image of a harddrive where the sector size is 4096 (because on modern harddrives that is what it is) but a lot of linux cli functions default to 512 sector size (and usually include an option flag to select an alternate sector size.)

Maybe I'm just wrong about how many sectors I have, but Recuperabit did find file/index records once every 8 sectors, which would fit with my theory. This also means recuperabit is going 8 times slower than it needs to on most modern harddrives?

@Lazza
Copy link
Owner

Lazza commented Jan 2, 2022

Currently there is no option for this, but it's a useful request.

@left1000
Copy link
Author

left1000 commented Jan 2, 2022

I mean I might be wrong, if I'm wrong the feature is useless (recuperabit is already choosing the right sector size) but if I am right? reuperabit is almost always choosing the wrong sector size (at least on modern hdds). Of course the code for this idea is way over my head :)

@Lazza
Copy link
Owner

Lazza commented Jan 21, 2022

To clarify, currently RecuperaBit is not "chosing" any size, it is set as a constant equal to 512. 😅

@AlexDaniel
Copy link

Hm. I found this ticket and started wondering if it affects me. For the record, sector size can be easily seen by running fdisk. In my case, the output is:

Sector size (logical/physical): 512 bytes / 4096 bytes

I guess logical sector size is what we're looking for, right? And if that number was different, then simply editing constants.py should be enough, correct?

@Lazza
Copy link
Owner

Lazza commented Jul 10, 2022

What we are concerned with is the sector size used by the file system, not by the physical disk. If the logical size is 512, you should be OK.

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

3 participants