红联Linux门户
Linux帮助

Linux NetWork Share

发布时间:2008-09-10 15:31:20来源:红联作者:cnbtoo
作者:满天星

首先想用samba来建立共享,然后mount网络上的共享到Linux

可是好像我现在的Fedora 5的mount不支持smbfs(这里我不是很明白,别人都说是通过:

mount -t smbfs -o username=test,password=abc //172.19.1.10/test /mnt/winc 这样的命令来mount的,但是我一直不行)

后来翻了翻文件,看到了mount.cifs。man里说它能mount网络上各种类型OS的共享,就是试了一下:

mount.cifs {service} {mount-point} [-o options]

eg:

mount.cifs //172.19.1.10/test /mnt/winc -o username=test,password=abc

mount -t cifs //172.19.1.10/test /mnt/winc -o username=test,password=abc

很开心,一次就mount好了,很方便。
文章评论

共有 2 条评论

  1. xylp 于 2008-09-14 00:38:46发表:

    不是这样子的呀. mkdir -p /mnt/smb mount -t smbfs -o username="administrator" //ip/你共享的东西 /mnt/smb,共享前提还要你设置WINDOWS的密码

  2. 大宝 于 2008-09-10 16:43:34发表:

    顶一下
    祝好运!