Skip to content

Instantly share code, notes, and snippets.

@sirlaurie
Last active December 7, 2021 15:34
Show Gist options
  • Save sirlaurie/4942fa6facb5f3540b20fc2882c4268b to your computer and use it in GitHub Desktop.
Save sirlaurie/4942fa6facb5f3540b20fc2882c4268b to your computer and use it in GitHub Desktop.
#!/bin/zsh
test -d ~/ntfs || mkdir ~/ntfs
disk=$(diskutil list external | grep -i NTFS | awk '{print $7}')
echo "umounting /dev/$disk"
sudo umount /dev/$disk
echo "mounting by read and write NTFS privileges..."
sudo mount -t ntfs -o rw,auto,nobrowse /dev/$disk ~/ntfs
open ~/ntfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment