Hi,
When I purchased a volume it was mounted on /mnt/volume_uploads (that was after few setup questions).
After sometime, I decided to mount that volume to different folder. So, I unmounted the /mnt/volume_uploads and removed the folder. Also, mounted the volume on a different folder plus replaced the /mnt/volumes_uploads with another folder in fstab.
However, when I reboot the system, I am seeing this /mnt/volume_uploads being auto-created and mounted o this folder. My newly mounted folder is also working fine.
When I use $ df -h
It shows, that the volume is mounted to /mnt/volume_uploads folder.
When I manually unmount that volume mount point and run diskfree command,it shows my newly mounted folder.
Its confusing
Question: How to remove the /mnt/volume_uploads permanently (that was mounted during initial volume setup)?
Seems like something is running behind the scene.
Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hey!
I think that this sounds like it’s related to how DigitalOcean automatically mounts volumes using cloud-init
when the Droplet is first created. Even if you update fstab
, the system might still apply the original mount via a systemd unit or leftover cloud-init config.
You can check if there’s a systemd mount unit like mnt-volume_uploads.mount
with:
systemctl list-units --type=mount | grep volume_uploads
If you’re sure it’s safe to do so, you could try disabling it with:
sudo systemctl disable --now mnt-volume_uploads.mount
If this is not the case, it’s a good idea to reach out to DigitalOcean support.
You can also refer to the official docs here: https://docs.digitalocean.com/products/volumes/how-to/mount/
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.