Skip to content

Instantly share code, notes, and snippets.

View dalzony's full-sized avatar
🤗

Minsun Lee dalzony

🤗
View GitHub Profile
@leoh0
leoh0 / ntfs_mount.sh
Created October 31, 2015 12:20
write access ntfs disk for mac os
#!/usr/bin/env bash
if mount | grep -q 'ntfs' ; then
if ! mount | grep -q 'read-only' ; then
echo -e "\033[01;36mExist already in /etc/fstab.\033[00m"
VOLUME=$(mount | grep "(ntfs, " | sed 's|/dev/disk[0-9]s[0-9] on \(.*\) (ntfs,.*$|\1|g')
open "$VOLUME"
exit
fi