pvesm share name with a space

daves_nt_here

Member
Dec 27, 2021
13
3
6
50
So, I've got a space in my share name. Ya. I know. Not good ;(
I can't change it now as their are over 50 computers connected to the server all mapped and probably hundreds of lines of code in various programs/settings/environments with that share name.

How do I add this SMB share with the space [NWIC Drive]

pvesm add cifs NWICDrive --server 192.168.55.21 --share NWIC Drive --username xxx --password xxx
create storage failed: storage 'NWICDrive' is not online

Doing a scan shows the share name as [Drive] witch I have tried adding. I have also tried [NWIC\040Drive] witch works in fstab, nether of witch works.
 
Thanks, the quotes worked. Although I used single quotes 'NWIC Drive'
This was to accomplish adding the share to the Datacenter>Storage.
It is showing on the list of drives in the left panel and passing through to the LXC as a mount point so I'm happy but the icon shows a grey question mark and on clicking on the drive I get no status updates on storage space.
running [pvesm status] shows as "inactive'
I don't really need it but it would be nice to fix it.
 
Last edited: