Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checkdisk-0.1.0.tar.gz (242.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checkdisk-0.1.0-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

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

Hashes for checkdisk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6213cfb227d6be2211983ee488b7113f5bc6ed6e4f23c97101d7693169296616
MD5 17b703c9963c3590f4a286b9ec84e668
BLAKE2b-256 f68caba10e23dd59c9a167405eec1e2c4b543ac046b13b8c435f66835e91647d

See more details on using hashes here.

Provenance

The following attestation bundles were made for checkdisk-0.1.0.tar.gz:

Publisher: release.yml on h5rdly/checkdisk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for checkdisk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df4ab630a8f80de59886b17fe6ed485fa3bc0d55bb253c1492b91d5b616459cc
MD5 6f09e2ef372ce472f7792776cd6ca455
BLAKE2b-256 1b59c2e2f79dae626a1780eb4194ec2fa2c59472c22375c9fc261e515b743d7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for checkdisk-0.1.0-py3-none-any.whl:

Publisher: release.yml on h5rdly/checkdisk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page