Adding mount points with spaces

we7313

Dabbler
Joined
Nov 17, 2015
Messages
40
I have read a few posts saying adding a mount point with spaces in the path is possible if you escape it.
I have done the below and it creates the mountpoint:
iocage fstab -a plex /mnt/MainVolume/Home\ Files /HomeFiles nullfs ro 0 0

But still get the error below when trying to start the jail:
jail: mount.fstab: Files: not an absolute pathname

Any ideas?
 
Last edited:

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
The best thing is to use the underscore character _ where you would have had a space, so there is no space. Spaces are a pain to deal with.
If you absolutely must have a space, which I do not recommend, then here is an example of how you deal with it:

This is a directory on my system:
cd /var/db/system/configs-7f5b34811f49423b82ac573d9dd30fdd/FreeNAS-11.1-U7\ \(b45bfcf29\)/
It sometimes also needs to have quotes around it if the path is basically a string being passed into another function, which is what I think you have.
 

we7313

Dabbler
Joined
Nov 17, 2015
Messages
40
I'm using freenas 11.2. I cannot rename the folder with the space.
I have tried:
Code:
iocage fstab -a plex "/mnt/MainVolume/Home Files" /HomeFiles nullfs ro 0 0

which creates the mount but still gives the error when starting the jail.
Code:
iocage fstab -a plex /mnt/MainVolume/Home\ Files /HomeFiles nullfs ro 0 0

which creates the mount but still gives the error when starting the jail.
Code:
iocage fstab -a plex /mnt/MainVolume/Home\ \Files /HomeFiles nullfs ro 0 0

which creates the mount but still gives the error when starting the jail.

I'm not sure what I am doing wrong.
 

we7313

Dabbler
Joined
Nov 17, 2015
Messages
40
Anyone have any ideas on this? Still looking for a solution.
Maybe where the mountpoint config files are stored and I could modify that?
 

Baenwort

Explorer
Joined
Feb 19, 2015
Messages
93
Yes,

I have old jails that I've moved to Iocage that exist from back when FreeNAS had greater concern for supporting those of us who have/are Windows users. I can't escape spaces in names. The old warden jail system supported it fine via the GUI.

I'm still able to maintain this because the fstab command will accept
Code:
\040
as a replacement for the space character when you create the mount via the cli. This does not work via the GUI the last time I tried it.

For example:
Code:
mnt/Nasser/Visual/TV\040Shows        /mnt/iocage/jails/emby/root/media/Visual/TV\040Shows

Works as the \040 is converted to a space.

If you want to see that support for this is official: https://redmine.ixsystems.com/issues/37802
 
Last edited:
Top