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

Test multiple blocks at once using badblocks when invoked by e2fsck #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garymacindoe
Copy link

When e2fsck is run with the -c option to use badblocks to find any bad blocks on the device, it does so without specifying the number of blocks to test at once. This can cause a lot of seeks on mechanical hard drives and makes testing large drives incredibly slow.

This pull request adds an option -K to the e2fsck command to allow the number of blocks tested at once by badblocks to be specified when it is called by e2fsck -c.

@hamishmb
Copy link

hamishmb commented Apr 19, 2022

Seems like a good feature. Can we get this added?

On my 8TB drive, it takes about a week to finish the non-destructive read-write test.

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

Successfully merging this pull request may close these issues.

2 participants