安裝macfuse
https://osxfuse.github.io/下載安裝包某宪,安裝
其實Homebrew自帶的資源中是事先包含有ntfs-3g的殃饿,但是如果查看這個包的詳情會發(fā)現(xiàn)brew已經(jīng)把這個包禁用了杭煎,即使你已經(jīng)事先安裝了FUSE坑夯,Homebrew也無法檢測到導(dǎo)致不能正常安裝。
依據(jù)流程中的介紹督函,需要另外添加FUSE推薦的包含了可以正常的ntfs-3g的源沽瞭。
brew tap gromgit/homebrew-fuse
brew install gromgit/fuse/ntfs-3g-mac
//或者直接寫ntfs-3g-mac,注意名稱上與自帶的ntfs-3g區(qū)分
brew install ntfs-3g-mac 作者:天空巨鼠 https://www.bilibili.com/read/cv13273551/ 出處:bilibili
掛載腳本
diskutil list 查看移動硬盤
!/bin/bash
echo "現(xiàn)有硬盤狀態(tài)"
while ["1" ="1"]
do
?diskutil list
?read -p "請輸入您的硬盤路徑查看掛載點:" disk
?diskutil info $disk
?read -p "請輸入您硬盤需要的掛載點:" m_node
sudo ntfs-3g m_node -o local -o allow_other -o auto_xattr
?echo "掛載完成"
read "是否退出" result
?case result";;
??break
??*) echo "任意鍵繼續(xù)";;
esac