Site icon George的生活點滴

Change the mount point of the temporary disk on Azure

Edit /etc/cloud/cloud.cfg.d/91-azure_datasource.cfg

mounts:
– [ ephemeral0, /xxxx ]

/xxxx is your mount point, you can change to any directory you want

================================================

變更 Azure 上 temp disk 的掛載點

Temp Disk 的預設掛載點為 /mnt

如果你修改 fstab 檔後,重新啟動 Linux 時,並不會有任何的影響,但若將它停止 (deallocated),下次重新開啟後,會在回到原始的設定

若要永久更改,需編輯 /etc/cloud/cloud.cfg.d 目錄下的 91-azure_datasource.cfg,若無此檔,請自行產生

檔案內容為

mounts: 
- [ ephemeral0, /xxxx ]

其中的 /xxxx 為你想要的掛載點,可自行更改

Exit mobile version