Last active
December 7, 2021 15:34
-
-
Save sirlaurie/4942fa6facb5f3540b20fc2882c4268b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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