mount: unknown filesystem type 'smbfs' 问题解决
2019獨角獸企業(yè)重金招聘Python工程師標準>>>
? ?起因:想要通過samba協(xié)議把網(wǎng)絡(luò)上其他機器mount到本地目錄下, 使用如下命令:
? ? 結(jié)果報錯:
$?mount:?unknown?filesystem?type?'smbfs'??? google了一下,都說要把smbfs改為cifs,繼續(xù)報錯:
mount:?wrong?fs?type,?bad?option,?bad?superblock?on?//192.168.28.152/otadownload,missing?codepage?or?helper?program,?or?other?error(for?several?filesystems?(e.g.?nfs,?cifs)?you?mightneed?a?/sbin/mount.<type>?helper?program)In?some?cases?useful?info?is?found?in?syslog?-?trydmesg?|?tail??or?so??? 繼續(xù)google,說是因為“缺少/sbin/mount.nfs這個文件,需要apt-get nfs-common”,ls查看一下果然沒有該文件,繼續(xù)安裝之,安裝完畢后再ls看一下,OK,文件已經(jīng)存在了。
??? 繼續(xù)嘗試,仍然報同樣的錯誤。。。
??? 怎么回事?
??? 再仔細看看上面一段的錯誤提示,看樣子我所需要的/sbin/mount.<type>文件是和要mount的文件系統(tǒng)類型相關(guān)的,再試試smbmount命令呢,提示:
$?smbmount The?program?'smbmount'?is?currently?not?installed.??You?can?install?it?by?typing: sudo?apt-get?install?smbfs???繼續(xù)安裝,果然安裝完畢后就有了/sbin/mount.cifs 和 /sbin/mount.smbfs這兩個文件,這時再使用最上面的命令就能夠正確掛載了。
??? 感悟:命令行提示要看清!
PS.? 我的系統(tǒng)版本是Ubuntu 12.04
$?cat?/etc/issue Ubuntu?12.04.5?LTS?\n?\l據(jù)說在12.10之后的版本已經(jīng)廢棄了smbfs,使用cifs替代,各位可以根據(jù)自己的實際情況靈活對待。
轉(zhuǎn)載于:https://my.oschina.net/u/2310891/blog/510384
總結(jié)
以上是生活随笔為你收集整理的mount: unknown filesystem type 'smbfs' 问题解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mkyaffs2image编译
- 下一篇: 历史最牛 多页切换TabHost,给大家