[Linux cmd] 在Linux上面的用command-line掛載遠端網路磁碟的方式
先建一個local folder 去掛載遠端網路的磁碟,
$ mkdir freespace
$sudo mount -t cifs -o username=zoey.image,password=${1}, iocharset=utf8,uid=zoey,gid=zoey //192.168.147.xx/FreeSpace freespace/
-->寫成shell script 密碼是明碼,可以用${1},執行期間輸入密碼!
解除掛載
$sudo umount freespace
[error message]
Q: mount(2) system call failed: Can not access a needed shared library.
-->參數utf8 打成uf8
Q: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
--> uid gid 打錯@@
Q:mount: freespace/: mount point does not exist.
-->找不到 freespace folder.
[參考來源]
[Linux cmd]在ubuntu上使用mount.cifs掛載遠斷網路磁碟的方式
進階版本(還沒試過)
如何掛載遠端windows共享資源
$ mkdir freespace
$sudo mount -t cifs -o username=zoey.image,password=${1}, iocharset=utf8,uid=zoey,gid=zoey //192.168.147.xx/FreeSpace freespace/
-->寫成shell script 密碼是明碼,可以用${1},執行期間輸入密碼!
解除掛載
$sudo umount freespace
[error message]
Q: mount(2) system call failed: Can not access a needed shared library.
-->參數utf8 打成
Q: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
--> uid gid 打錯@@
Q:mount: freespace/: mount point does not exist.
-->找不到 freespace folder.
[參考來源]
[Linux cmd]在ubuntu上使用mount.cifs掛載遠斷網路磁碟的方式
進階版本(還沒試過)
如何掛載遠端windows共享資源
留言
張貼留言