[SOLVED] Deleting /mnt/pve/CIFS dir?

chudak

Renowned Member
May 11, 2019
357
27
68
Hello all

I had to replace my CIFS shared drive and tried adding it back with a slightly different name (VMs_backup (new name) VMs_backups (old name)).
As a result, I see on PVE UI one drive:

1638373021274.png

which is referenced as:

1638373074168.png

but on fs I see:

root@pve:/mnt/pve# ls
NFS VMs_backup VMs_backups

How can I safely remove "VMs_backup"?

Thx
 
Last edited:
hi,

you can first check if the directory is empty: find /mnt/pve/VMs_backup

if the directory is empty then just rmdir /mnt/pve/VMs_backup should do it, otherwise you'll need to unmount it, delete the directory, and make sure it's removed from all configuration files like /etc/pve/storage.cfg and /etc/fstab.

hope this helps!
 
  • Like
Reactions: chudak
hi,

you can first check if the directory is empty: find /mnt/pve/VMs_backup

if the directory is empty then just rmdir /mnt/pve/VMs_backup should do it, otherwise you'll need to unmount it, delete the directory, and make sure it's removed from all configuration files like /etc/pve/storage.cfg and /etc/fstab.

hope this helps!

Thx it worked!
 
great! please mark the thread [SOLVED] :)