Skip to content

Instantly share code, notes, and snippets.

@nohajc
Created July 20, 2025 11:56
Show Gist options
  • Select an option

  • Save nohajc/51fdecb2dda75dd8c600173ea42b3700 to your computer and use it in GitHub Desktop.

Select an option

Save nohajc/51fdecb2dda75dd8c600173ea42b3700 to your computer and use it in GitHub Desktop.
Download chkntfs and other NTFS utils for macOS (by Paragon)
#!/bin/sh
set -e
DMG_NAME=ntfsmac17_trial.dmg
curl -LO "https://dl.paragon-software.com/demo/$DMG_NAME"
DMG_PATH=$(hdiutil attach -nobrowse -readonly "$DMG_NAME" | grep /Volumes | awk '{print $3}')
TMP_PATH=/tmp/paragon-ntfs-pkg
mkdir "$TMP_PATH"
xar -C "$TMP_PATH" -xf "$DMG_PATH/FSInstaller.app/Contents/Resources/product.pkg"
hdiutil detach "$DMG_PATH"
WORKDIR="$PWD"
cd "$TMP_PATH"
tar --strip-components=5 -C "$WORKDIR" -xf Payload ./Library/Filesystems/ufsd_NTFS.fs/Contents/Resources
cd "$WORKDIR"
rm -r "$TMP_PATH"
rm "$DMG_NAME"
mv Resources paragon-ntfs-utils
#!/bin/sh
set -e
cp -R paragon-ntfs-utils/ /usr/local/bin
@nohajc
Copy link
Author

nohajc commented Jul 20, 2025

NTFS utilities by Paragon Software for checking and repairing filesystem errors and also formatting drives. The script only extracts relevant executables from the trial installer. You should own a valid licence to continue using these tools after your trial period expires.

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