I attached a block storage device using the new “Automatically Format and Mount” option. Now I’d like to move the mountpoint. I manually added it to /etc/fstab, and now it’s mounted at both /mnt/oldmountpoint
and /var/lib/newmountpoint
. How do I get rid of /mnt/oldmountpoint
?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I know this question is from 2018 but I thought I would leave instructions given to me by DO on how to solve this.
––
When a volume is auto-attached, a systemd mount file is created that is called during the boot process. This mounts the volume each time without affecting the fstab file. These steps should resolve the issue:
/etc/systemd/system/YOUR_MOUNT_NAME.mount
(Make sure that the volume name matches and is correct! Be very careful with the “rm” command.)––
Hopefully this helps anyone searching for a resolution to this issue!
I ran:
but upon reboot, the old mount point directory reappears and mounts…