需求:兩台 Linux 機器透過 mount 互相存取對方根目錄。解決方案:使用 Samba 實現。
mount
/etc/samba/smb.conf
mount -t smbfs //IP/sharename /path/to/mountpoint
完成後,透過存取 /path/to/mountpoint 即可實現雙向根目錄互訪。
/path/to/mountpoint