Skip to content

Instantly share code, notes, and snippets.

@nanpuyue
Last active September 15, 2018 14:53
Show Gist options
  • Save nanpuyue/0d2fcc687d2025adcf91adddeede416a to your computer and use it in GitHub Desktop.
Save nanpuyue/0d2fcc687d2025adcf91adddeede416a to your computer and use it in GitHub Desktop.
mount ntfs partition by ufsd
#!/bin/sh
# file: /sbin/mount.ntfs
# date: 2018-05-26
# license: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
# author: nanpuyue <[email protected]> https://blog.nanpuyue.com
if modprobe -q ufsd; then
exec mount -t ufsd "$@"
else
exec mount -t ntfs-3g "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment