`ln`命令创建软链接错误

ln -s 创建软链接

[root@thor master]# ln -s Makefile Makefile_ln
ln: failed to create symbolic link ‘Makefile_ln’: Operation not supported

windows共享文件,mount到linux下,mount -t cifs -o username=yvhqbat,password=1234567 //10.12.5.14/shared /mnt/yvhqbat/
在Linux系统中操作从Windows中共享过来的文件,如果需要创建软链接,会出现上述错误。

软链接在Linux系统中很常见,但Windows不支持,因为windows下的文件系统不支持这种操作。

解决方法:

  1. 将文件从共享目录复制到linux文件系统中;
  2. 在VMWare的Linux中,建立Samba服务,创建新samba用户和文件夹,在windows中访问到该文件夹;

参考:https://blog.csdn.net/tq384998430/article/details/60963330

原文地址:https://www.cnblogs.com/walkinginthesun/p/9638787.html