1. 程式人生 > >利用sshfs實現Linux遠端硬碟掛載

利用sshfs實現Linux遠端硬碟掛載

1、  軟體以及下載地址

2、  安裝順序

a)         先安裝fuse

                         i.              ./configure

                       ii.              Make

                      iii.              Make install

b)         然後sshfs

                         i.              ./configure

                       ii.              Make

                      iii.              Make install

c)         如果出現“/bin/mount:無法識別的選項“--no-canonicalize””則安裝util-linux-ng-2.17.tar.gz

                         i.              ./configure --prefix=/usr/local/util-linux-ng

                       ii.              make && make install

                      iii.              mv /bin/mount{,.off}

                      iv.              ln -s /usr/local/util-linux-ng/bin/mount /bin

d)         如果出現error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory,需要新增軟連結

                         i.              ln -sv /usr/local/lib/libfuse.so.2 /usr/lib/libfuse.so.2

                       ii.              ldconfig

a)         上述命令就是將.10主機的/home 掛載到了本地的/home/kk處

參考網址