Hello Proxmox team,
I’m currently using the Directory storage type for backups on an external USB drive and noticed a recurring issue that could be risky in production environments:
If the external disk is not mounted, Proxmox silently creates the folder structure on the local disk (within the intended mount point) and proceeds to write backups there as if the mount were valid.
I found this discussed in the following thread:
https://forum.proxmox.com/threads/directory-storage-type-issues.50457/
The issue can be prevented by manually adding these options to the storage.cfg:
These options work perfectly to:
Please consider exposing these two options in the Proxmox GUI under the “Advanced” section when editing or adding Directory storage:
Currently, is_mountpoint may be visible in certain configurations, but not consistently. And mkdir is completely missing from the GUI, requiring manual configuration — which introduces risk in multi-admin or automated environments.
Adding both options to the GUI would be a simple but highly impactful improvement, especially for users relying on fstab, USB drives, NFS mounts, or network-based storage that might not be immediately available during boot.
Thanks for your attention and for the great work on Proxmox!
I’m currently using the Directory storage type for backups on an external USB drive and noticed a recurring issue that could be risky in production environments:
If the external disk is not mounted, Proxmox silently creates the folder structure on the local disk (within the intended mount point) and proceeds to write backups there as if the mount were valid.
I found this discussed in the following thread:
https://forum.proxmox.com/threads/directory-storage-type-issues.50457/
The issue can be prevented by manually adding these options to the storage.cfg:
Code:
is_mountpoint 1
mkdir 0
These options work perfectly to:
- Ensure Proxmox considers the storage offline if the mount is not present.
- Prevent Proxmox from auto-creating directory structures on local storage and writing backups in the wrong place.
Suggestion:
Please consider exposing these two options in the Proxmox GUI under the “Advanced” section when editing or adding Directory storage:
- A checkbox for is_mountpoint
- A checkbox for mkdir (create directory if missing)
Currently, is_mountpoint may be visible in certain configurations, but not consistently. And mkdir is completely missing from the GUI, requiring manual configuration — which introduces risk in multi-admin or automated environments.
Adding both options to the GUI would be a simple but highly impactful improvement, especially for users relying on fstab, USB drives, NFS mounts, or network-based storage that might not be immediately available during boot.
Thanks for your attention and for the great work on Proxmox!