简体   繁体   English

如何在树莓派上分享map Azure

[英]How to map Azure share on Raspberry Pi

I'm trying to map an Azure share to my Raspberry Pi.我正在尝试将 map 和 Azure 共享到我的 Raspberry Pi。 I use the script provided with no modification:我使用未经修改的脚本:

sudo mkdir /mnt/sharename
if [ ! -d "/etc/smbcredentials" ]; then
sudo mkdir /etc/smbcredentials
fi
if [ ! -f "/etc/smbcredentials/storageaccountname.cred" ]; then
    sudo bash -c 'echo "username=storageaccountname" >> /etc/smbcredentials/storageaccountname.cred'
    sudo bash -c 'echo "password=passwordhere" >> /etc/smbcredentials/storageaccountname.cred'
fi
sudo chmod 600 /etc/smbcredentials/storageaccountname.cred

sudo bash -c 'echo "//storageaccountname.file.core.windows.net/sharename /mnt/sharename cifs nofail,credentials=/etc/smbcredentials/storageaccountname.cred,dir_mode=0777,file_mode=0777,serverino,nosharesock,actimeo=30" >> /etc/fstab'
sudo mount -t cifs //storageaccountname.file.core.windows.net/xutiazure /mnt/sharename -o credentials=/etc/smbcredentials/storageaccountname.cred,dir_mode=0777,file_mode=0777,serverino,nosharesock,actimeo=30

The result is this message:结果是这条消息:

mount error(115): Operation now in progress Refer to the mount.cifs(8) manual page (eg man mount.cifs) mount error(115): Operation now in progress 请参阅 mount.cifs(8) 手册页(例如 man mount.cifs)

The paths, password file and new line in fstab are OK created. fstab 中的路径、密码文件和新行已创建。

Is there anything else I need to do?还有什么我需要做的吗? I've tried also via mount -a command, but same result.我也通过 mount -a 命令尝试过,但结果相同。

Thanks谢谢

Fixed guys,固定的家伙,

My ISP is blocking port 445, so it is not working.我的 ISP 阻止了端口 445,因此它无法正常工作。 I've routed it throug a VPN using a different public IP and it worked fine.我已经使用不同的公共 IP 通过 VPN 将其路由,并且运行良好。

Thanks谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM