本地伺服器上掛載A目錄到B目錄

2022-05-28 15:09:12 字數 529 閱讀 2896

原因:

由於某個分割槽滿了,切磁碟無法擴大分割槽空間,但是專案依賴該分割槽,需要繼續像該分割槽儲存檔案,此時其他分割槽還有很大的空間,使用掛載的方式,在有空間的分割槽建立新目錄,將新目錄掛載到源目錄下即可。

執行mount操作報錯如下

[root@hostname home]# mount /home/wget/download /home/ftp/wget/download

mount: you must specify the filesystem type

最終執行命名

[root@hostname download]# mount --bind /home/wget/download /home/ftp/wget/download

檢視掛載成功

[root@hostname download]# mount -l

/home/wget/download on /home/ftp/wget/download type none (rw,bind)

Mac掛載遠端目錄到本地

mac掛載遠端目錄到本地 1 使用brew安裝osxfuse brew是macos缺失的軟體包管理器,如果沒有brew則在終端將 usr bin ruby e curl fssl 可參閱 2 安裝sshfs 執行指令 brew install sshfs 3 安裝結束後,就可以用sshfs掛載遠端目...

伺服器nas目錄掛載

作者官方 1.重啟後,如果df h看不見掛載點,請嘗試直接cd nfsc nas卷名 autofs,無訪問不顯示 2.如果不能cd到掛載點裡,請檢查主機ip到nas伺服器2049埠是否聯通,telnet nas伺服器ip 2049。3.如果可以telnet nas伺服器ip 2049通,進行show...

使用sshfs掛載遠端伺服器上的目錄

sshfs通過ssh協議,把遠端伺服器上的目錄掛載到本地。在macos下用homebrew安裝 brew install caskroom cask osxfuse brew install homebrew fuse sshfs其他系統請自行搜尋。掛載目錄 sshfs user hostname ...