How to remove bind-mount using CLI


New Member
May 15, 2023
Hello, hope someone can help as I've search everywhere and cannot find the answer.

So we can use the following command to bind-mount a directory to an LXC container. And that's great, however you now cannot snapshot.. Which is find since removing this directory allows you to snapshot again, then mount it again job done.
pct set 100 -mp1 /some/directory,mp=/some/directory

However, I would like to just write a script which removes the bind mount, performs snapshot, then adds the bind mound again...
Current way to do this is to use:
sed -i '/^mp1/d' /etc/pve/lxc/100.conf

I dont really like using that method, and it would be good if there is an official way to remove the mount other than modifying the .conf file.
Is there an easier way by using something like
pct unset -mp1??

Thanks for any help
Yes, see here:
zur Vollständigkeit hier noch der CLI Befehl:
pct set 110 -delete mp0
So pct set 100 -delete mp1 instead of sed -i '/^mp1/d' /etc/pve/lxc/100.conf.
Last edited:


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!