Dependency-free NTFS repair tool — the chkdsk /f flow on raw devices and images
Project description
checkdisk
A self-contained, pure-Python NTFS repair tool — the parts of chkdsk /f that matter for a crashed volume (dangling dirents, torn indexes,
lost files, torn truncates, $Bitmap, $Secure, the USN journal).
checkdisk uses a native read/write engine that parses and rewrites on-disk NTFS structures directly, with multi-sector fixups and plan-then-commit
atomicity.
Install
pip install checkdisk
Or skip installing — checkdisk.py is self contained
Quick start
checkdisk works on the raw (unmounted) device or an image file — never through
a mount:
checkdisk list # find NTFS partitions (mounts nothing)
sudo umount /mnt/point # get off the volume first
sudo setfacl -m u:$USER:rw /dev/sdXN # or run the tool with sudo
checkdisk /f /dev/sdXN # dry run: reports, writes nothing
checkdisk /f /dev/sdXN --really # repair (each fix re-verified)
checkdisk /f /dev/sdXN # confirm: expect 0 remaining
/r adds the full surface read. Running from the repo instead:
python checkdisk.py /f ... — identical.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file checkdisk-0.1.0.tar.gz.
File metadata
- Download URL: checkdisk-0.1.0.tar.gz
- Upload date:
- Size: 242.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6213cfb227d6be2211983ee488b7113f5bc6ed6e4f23c97101d7693169296616
|
|
| MD5 |
17b703c9963c3590f4a286b9ec84e668
|
|
| BLAKE2b-256 |
f68caba10e23dd59c9a167405eec1e2c4b543ac046b13b8c435f66835e91647d
|
Provenance
The following attestation bundles were made for checkdisk-0.1.0.tar.gz:
Publisher:
release.yml on h5rdly/checkdisk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
checkdisk-0.1.0.tar.gz -
Subject digest:
6213cfb227d6be2211983ee488b7113f5bc6ed6e4f23c97101d7693169296616 - Sigstore transparency entry: 2199763831
- Sigstore integration time:
-
Permalink:
h5rdly/checkdisk@5a5c4aa10d1568e707fb6332884ed662eeeb55ea -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/h5rdly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5a5c4aa10d1568e707fb6332884ed662eeeb55ea -
Trigger Event:
push
-
Statement type:
File details
Details for the file checkdisk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: checkdisk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 54.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df4ab630a8f80de59886b17fe6ed485fa3bc0d55bb253c1492b91d5b616459cc
|
|
| MD5 |
6f09e2ef372ce472f7792776cd6ca455
|
|
| BLAKE2b-256 |
1b59c2e2f79dae626a1780eb4194ec2fa2c59472c22375c9fc261e515b743d7a
|
Provenance
The following attestation bundles were made for checkdisk-0.1.0-py3-none-any.whl:
Publisher:
release.yml on h5rdly/checkdisk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
checkdisk-0.1.0-py3-none-any.whl -
Subject digest:
df4ab630a8f80de59886b17fe6ed485fa3bc0d55bb253c1492b91d5b616459cc - Sigstore transparency entry: 2199764151
- Sigstore integration time:
-
Permalink:
h5rdly/checkdisk@5a5c4aa10d1568e707fb6332884ed662eeeb55ea -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/h5rdly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5a5c4aa10d1568e707fb6332884ed662eeeb55ea -
Trigger Event:
push
-
Statement type: