Created
December 5, 2014 07:42
-
-
Save ryancat/da6423ef5246c96a61e6 to your computer and use it in GitHub Desktop.
how to move file in and out from hard drive with mac
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
# 用 root 身份做如下操作 (高危! 请切记自己在干什么) | |
sudo -s | |
cd /sbin | |
# 将系统自带的挂载程序改名 | |
mv mount_ntfs mount_ntfs_orig | |
# 新建我们要的挂载脚本并编辑 | |
vim mount_ntfs | |
#!/bin/sh | |
/sbin/mount_ntfs_orig -o rw,nobrowse "$@" | |
# 保存退出后改一下权限 | |
chmod a+x mount_ntfs | |
# 都搞定了, 退出 root 身份 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment