cifs挂载 mount ubuntu_Ubuntu + mount cifs

奇怪了, Ubuntu 下好像是不能使用 windows 網路芳鄰或是由 Linux samba 所分享出來的網路硬碟.以前在 command line 指令列下使用 mount 然後指定 -t (type) 為 smbfs 或是 cifs 即可使用,現在這樣好像不能用.

root@benjr:~# mount -t smbfs //172.16.0.46/samba /fs1

mount: unknown filesystem type 'smbfs'

root@benjr:~# mount -t cifs //172.16.0.46/samba /fs1

mount: wrong fs type, bad option, bad superblock on //172.16.0.46/samba,

missing codepage or helper program, or other error

(for several filesystems (e.g. nfs, cifs) you might

need a /sbin/mount. helper program)

In some cases useful info is found in syslog - try

dmesg | tail or so

沒關係我還記得另外一個指令 smbmount ,結果也沒有這個指令存在.

root@benjr:~# smbmount

smbmount: command not found

還是查一下吧!!原來缺少 cifs-utils 套件,使用 man page 查 mount 有提示 (#man mount)

root@benjr:~# apt-get install cifs-utils

喔~~終於可以用了.

root@benjr:~# mount.cifs //172.16.0.46/samba /fs1

Password for root@//172.16.0.46/samba:

root@benjr:~# umount /fs1

root@benjr:~# mount -t cifs //172.16.0.46/samba /fs1

Password for root@//172.16.0.46/samba:

後來我才發現 Ubuntu 桌面系統就可以直接分享成 Windows 的網路磁碟,也可以直接存取 Windows 的網路磁碟.

分享網路磁碟可能會需要安裝 samba

如果是要存取網路磁碟就可以直接在 Folder 選擇 Network 就可以找到分享的網路磁碟.

沒有解決問題,試試搜尋本站其他內容

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值