我需要一个客户操作系统7访问共享文件夹麦克塞拉使用法新社协议。
我安装了afpfs-ng-0.8.2,之前保险丝-2.9.7来自以下来源fusion-2.9.4 说明
$ sudo yum install fuse fuse-devel readline-devel libgcrypt-devel gmp-devel
这是工作安装。
安装中afpfs-NGtar.gz源码版本!
$ wget https://raw.githubusercontent.com/simonvetter/afpfs-ng/master/afpfs-ng-0.8.2.tar.gz
$ tar -xvf afpfs-ng-0.8.2.tar.gz
$ cd afpfs-ng/
$ ./configure && make && sudo make install && sudo ldconfig
检查安装!
$ killall -r afpfsd ; afp_client status
afpfsd: no process found
The afpfs daemon does not appear to be running for uid 1000, let me start it for you
AFPFS Version: 0.8.2
UAMs compiled in: Cleartxt Passwrd, No User Authent, Randnum Exchange, 2-Way Randnum Exchange, DHCAST128, DHX2
$
执行(mac挂载AFP共享文件夹)
$ sudo mkdir /media/AFP_ADATAHD
$ sudo mount_afp afp://theUser:[email protected]/ADATAHD /media/AFP_ADATAHD
sudo: mount_afp: command not found
$
$ mount_afp afp://theUser:[email protected]/ADATAHD /media/AFP_ADATAHD
Mounting 192.168.0.14 from ADATAHD on /media/AFP_ADATAHD
Unmounting volume ADATAHD from /media/AFP_ADATAHD
FUSE reported the following error:
fusermount: user has no write access to mountpoint /media/AFP_ADATAHD
Unknown error 1, 1.
$
我认为须藤应该有效,但不行!
与...一起工作根用户!
# mount_afp afp://theUser:[email protected]/ADATAHD /media/AFP_ADATAHD
The afpfs daemon does not appear to be running for uid 0, let me start it for you
Mounting 192.168.0.14 from ADATAHD on /media/AFP_ADATAHD
Mounting of volume ADATAHD of server theUser MacBook succeeded.
#
真正的问题:
在 MACOS 端列出 AFP 目录!
# ls -al /Volumes/ADATAHD/SoftwareDownloads/WIN/
total 8756680
drwx------ 28 _unknown _unknown 952 May 10 14:21 .
drwxr-xr-x 9 _unknown _unknown 306 May 10 14:20 ..
-rwx------@ 1 _unknown _unknown 10244 May 10 14:20 .DS_Store
-rwx------ 1 _unknown _unknown 94 May 10 14:21 .directory
drwxr-xr-x 3 _unknown _unknown 102 Apr 24 22:15 7ULive
-rwx------ 1 _unknown _unknown 20903280 Sep 2 2016 BCompare-4.1.8.21575.exe
-rw-r--r--@ 1 _unknown _unknown 28268 Mar 19 22:13 C9E72A428218A05F34C66182511C5C48EA015FD0.torrent
-rwx------@ 1 _unknown _unknown 9367104 Oct 2 2016 ConnectToWindowsFromMAC - RDC_2.1.1_ALL.dmg
drwxrwxrwx 3 _unknown _unknown 102 Mar 29 07:32 Development
drwxrwxrwx 7 _unknown _unknown 238 Apr 30 21:18 GRTMPVOL_ES_ISO
drwx------ 8 _unknown _unknown 272 Sep 3 2016 KMSpico 10.2.0 FINAL
drwxrwxrwx 4 _unknown _unknown 136 Apr 25 19:09 Microsoft Office 2016 VL ProPlus Spanish (x86-x64) March 2016
drwxr-xr-x 7 _unknown _unknown 238 Mar 20 17:10 Nitro 11.0.3.17
drwx------ 8 _unknown _unknown 272 Oct 5 2016 Nitro Pro 10.5.9.9 ES
drwx------ 13 _unknown _unknown 442 Mar 26 21:14 Office 2016
-rwx------@ 1 _unknown _unknown 53118336 Aug 31 2016 Open-Sankore_Windows_2.5.1.zip
-rwx------ 1 _unknown _unknown 11304960 Sep 10 2016 SmartView.msi
drwxr-xr-x 4 _unknown _unknown 136 May 1 13:12 WIN XP SP3
-rw-r--r-- 1 _unknown _unknown 3170525184 Apr 30 00:20 WINVISTA SP2 32 Bit.www.auyanet.net.iso
drwx------ 19 _unknown _unknown 646 Mar 29 11:53 Windows 10 Enterprise
drwx------ 21 _unknown _unknown 714 Apr 24 00:04 Windows Programas
-rw-r--r-- 1 _unknown _unknown 569790128 Apr 30 21:47 Windows XP SP3 Original.rar
-rw-r--r-- 1 _unknown _unknown 1735400 Apr 24 14:52 adksetup.exe
-rw-r--r-- 1 _unknown _unknown 26 Apr 24 14:52 adksetup.exe:Zone.Identifier
-rwx------@ 1 _unknown _unknown 77404656 Sep 6 2016 gimp-2.8.18-setup.exe
-rwx------@ 1 _unknown _unknown 203084344 Oct 4 2016 jdk-8u101-windows-x64.exe
-rwx------@ 1 _unknown _unknown 230883184 Oct 4 2016 netbeans-8.2-windows.exe
-rw-r--r--@ 1 _unknown _unknown 135240048 Apr 24 00:25 serviio-1.8-win-setup.exe
#
在 Linux 端列出 AFP 目录
# ls -al /media/AFP_ADATAHD/SoftwareDownloads/WIN/
ls: reading directory /media/AFP_ADATAHD/SoftwareDownloads/WIN/: Input/output error
total 213
drwx------ 28 root root 908 May 10 09:21 .
drwxr-xr-x 9 root root 262 May 10 09:20 ..
drwxr-xr-x 3 root root 58 Apr 24 17:15 7ULive
-rw-r--r-- 1 root root 1735400 Apr 24 09:52 adksetup.exe
-rwx------ 1 root root 94 May 10 09:21 .directory
-rwx------ 1 root root 10244 May 10 09:20 .DS_Store
#
我把我所有的程序都写出来了,我想知道如何解决这个消息:
ls:读取目录/media/AFP_ADATAHD/SoftwareDownloads/WIN/:输入/输出错误
编辑1
与 Samba 性能进行比较会很有用。
在 Linux 端使用 SAMBA 版本列出
$ sudo mkdir /media/SMB_ADATAHD
$ sudo mount.cifs //192.168.0.14/ADATAHD /media/SMB_ADATAHD -o username=theUser,password=thePassword,domain=BZ,rw
# ls -al /media/SMB_ADATAHD/SoftwareDownloads/WIN/
total 4378504
drwx------ 29 nobody nobody 0 May 10 23:58 .
drwxr-xr-x 9 nobody nobody 0 May 10 14:20 ..
drwxr-xr-x 3 nobody nobody 0 Apr 24 22:15 7ULive
-rw-r--r-- 1 nobody nobody 1735400 Apr 24 14:52 adksetup.exe
-rw-r--r-- 1 nobody nobody 26 Apr 24 14:52 adksetup.exe:Zone.Identifier
-rwx------ 1 nobody nobody 20903280 Sep 2 2016 BCompare-4.1.8.21575.exe
-rw-r--r-- 1 nobody nobody 28268 Mar 19 22:13 C9E72A428218A05F34C66182511C5C48EA015FD0.torrent
-rwx------ 1 nobody nobody 9367104 Oct 2 2016 ConnectToWindowsFromMAC - RDC_2.1.1_ALL.dmg
drwxrwxrwx 3 nobody nobody 0 Mar 29 07:32 Development
-rwx------ 1 nobody nobody 94 May 10 14:21 .directory
-rwx------ 1 nobody nobody 10244 May 10 14:20 .DS_Store
-rwx------ 1 nobody nobody 77404656 Sep 6 2016 gimp-2.8.18-setup.exe
drwxrwxrwx 7 nobody nobody 0 Apr 30 21:18 GRTMPVOL_ES_ISO
-rwx------ 1 nobody nobody 203084344 Oct 4 2016 jdk-8u101-windows-x64.exe
drwx------ 8 nobody nobody 0 Sep 3 2016 KMSpico 10.2.0 FINAL
drwxrwxrwx 4 nobody nobody 0 Apr 25 19:09 Microsoft Office 2016 VL ProPlus Spanish (x86-x64) March 2016
-rwx------ 1 nobody nobody 230883184 Oct 4 2016 netbeans-8.2-windows.exe
drwxr-xr-x 7 nobody nobody 0 Mar 20 17:10 Nitro 11.0.3.17
drwx------ 8 nobody nobody 0 Oct 5 2016 Nitro Pro 10.5.9.9 ES
drwx------ 13 nobody nobody 0 Mar 26 21:14 Office 2016
-rwx------ 1 nobody nobody 53118336 Aug 31 2016 Open-Sankore_Windows_2.5.1.zip
-rw-r--r-- 1 nobody nobody 135240048 Apr 24 00:25 serviio-1.8-win-setup.exe
-rwx------ 1 nobody nobody 11304960 Sep 10 2016 SmartView.msi
-rw-r--r-- 1 nobody nobody 165754 May 11 07:43 testdisk.log
drwx------ 19 nobody nobody 0 Mar 29 11:53 Windows 10 Enterprise
drwx------ 21 nobody nobody 0 Apr 24 00:04 Windows Programas
-rw-r--r-- 1 nobody nobody 569790128 Apr 30 21:47 Windows XP SP3 Original.rar
-rw-r--r-- 1 nobody nobody 3170525184 Apr 30 00:20 WINVISTA SP2 32 Bit.www.auyanet.net.iso
drwxr-xr-x 4 nobody nobody 0 May 1 13:12 WIN XP SP3
#
使用 Samba 客户端不会出现此问题!