Skip to content

Instantly share code, notes, and snippets.

@walkoncross
Last active December 8, 2022 21:09
Show Gist options
  • Save walkoncross/363bf871d733f7a39f0d1dfe644f9e05 to your computer and use it in GitHub Desktop.
Save walkoncross/363bf871d733f7a39f0d1dfe644f9e05 to your computer and use it in GitHub Desktop.
mount writable NTFS drive on MacOS
# list all drive and find the one you want to mount with the following cmd
# diskutil list
export mount_dir=/Volumes/ntfs_drive
export disk_dir=/dev/disk4s1
# try to unmount
echo "Try to umount ${disk_dir}"
umount ${disk_dir}
# try to mount
mkdir ${mount_dir}
echo "Try to mount ${disk_dir} to ${mount_dir}"
mount -t ntfs -o rw,auto,nobrowse ${disk_dir} ${mount_dir}
open ${mount_dir}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment