2025-08-06, 04:09 PM
If anyone else is having this issue, this is what I did to resolve it on Debian 13.
My media is found on an internal hard drive mounted to /mnt/storage. Replace that with the path to your storage in the below example.
All mounted drives get mounted with a systemd mount unit. List all mount units with this command and note the relevant mount unit name for your configuration:
In my situation, my media is located at /mnt/storage. So I want to wait for the mnt-storage.mount unit to finish before launching my container. To do so I needed to add the following lines in the appropriate sections to the quadlet file:
Additional info: https://www.cyberciti.biz/faq/how-to-run...-in-linux/
My media is found on an internal hard drive mounted to /mnt/storage. Replace that with the path to your storage in the below example.
All mounted drives get mounted with a systemd mount unit. List all mount units with this command and note the relevant mount unit name for your configuration:
Code:
systemctl list-units --type=mount
In my situation, my media is located at /mnt/storage. So I want to wait for the mnt-storage.mount unit to finish before launching my container. To do so I needed to add the following lines in the appropriate sections to the quadlet file:
Code:
[Unit]
# Need to have media storage mounted before starting container
Requires=mnt-storage.mount
After=mnt-storage.mount
RequiresMountsFor=/mnt/storage
[Install]
# Do not want to start by default. Start only after media storage is mounted
WantedBy=mnt-storage.mount
Additional info: https://www.cyberciti.biz/faq/how-to-run...-in-linux/