挂载 Windows 网络驱动器

tes*_*ing 5 linux networking windows mount

我想在服务器上安装网络驱动器(SBS2008)。我有两个选择:要么使用Fedora(已安装在CentOS上)服务器,要么直接在CentOS服务器上。这是我在Fedora机器上尝试过的命令:

mount -t cifs //192.168.xx.xx/abc /mnt/lan -o username=usernameofwindowsmachine,pass=xyz
Run Code Online (Sandbox Code Playgroud)

如果我使用这个命令,什么也不会发生,如果我按Enter 键,它会进入下一行并且不打印任何内容。

我也尝试直接mountCentOS上运行,但没有任何命令起作用(mount -t smbfs、、、...)。未安装。超时,Fedora使用cifs而不是smbfs ... Fedora机器已经在Windows 2003 Server上挂载了,但我不知道这是如何实现的。我不想安装任何东西,因为我只想将一个大文件从CentOS传输到SBS2008smbclientsmbmountsmbmountsmbclient

编辑
所以安装网络驱动器并不是那么容易...我走了另一种方式:我看到WinSCP安装在SBS2008上并连接到机器上并设法传输文件。速度不是很好(1.8 MB/秒),但是它可以工作。

f4m*_*4m8 5

这必须是:

     mount -t cifs //192.168.xx.xx/abc /mnt/lan -o username=usernameofwindowsmachine,password=xyz
Run Code Online (Sandbox Code Playgroud)

另一种方法是凭证文件,例如/root/.cifscredentials

     username=usernameofwindowsmachine
     password=xyz
Run Code Online (Sandbox Code Playgroud)

然后使用:

     mount -t cifs //192.168.xx.xx/abc /mnt/lan -o credentials=/root/.cifscredentials
Run Code Online (Sandbox Code Playgroud)

接下来应该使用:

     mount -t cifs //WindowsDnsName/abc /mnt/lan -o credentials=/root/.cifscredentials,ip=192.168.xx.xx
Run Code Online (Sandbox Code Playgroud)

另一件事是Windows 域名,也可以将其添加到mount选项中:

     mount -t cifs //WindowsDnsName/abc /mnt/lan -o credentials=/root/.cifscredentials,ip=192.168.xx.xx,domain=WinDomainName
Run Code Online (Sandbox Code Playgroud)

毕竟仔细看看man mount.cifs