Issues sharing folders with whitespace, from NTFS volumes, via NFS

Asked by EvilSupahFly

I have a few large USB drives formatted as NTFS, which have whitespaces in the some of the folder names that I want to export ("Documents And Settings/[username]/Application Data/.minecraft/","Movies & MP3s", etc, etc, etc) over NFS, and it seems EXPORTS doesn't allow whitespace in share names, even when the server share path is enclosed in quotes, so short of exporting the entire /media/ folder as one massive share, what can I do?

This is typical of the errors I get:

exportfs: Invalid IP address Data/.minecraft
exportfs: Invalid IP address Data/.minecraft
exportfs: /etc/exports [5]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.2.0/255.255.255.0:/media/seann/XP_Drive_C/Documents".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: No options for /media/seann/XP_Drive_C/Documents and: suggest and(sync) to avoid warning
exportfs: /etc/exports [6]: Neither 'subtree_check' or 'no_subtree_check' specified for export "and:/media/seann/XP_Drive_K/Documents".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: Failed to resolve and
exportfs: Failed to resolve and
exportfs: No options for /media/seann/XP_Drive_C/Documents Settings/Administrator/Application: suggest Settings/Administrator/Application(sync) to avoid warning
exportfs: /etc/exports [6]: Neither 'subtree_check' or 'no_subtree_check' specified for export "Settings/Administrator/Application:/media/seann/XP_Drive_C/Documents".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
EvilSupahFly
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You mayneed to escape the spaces using a switch chaacter, this makes the OS read the spaces as characters, so

Documents and settings

becomes

Documents\ and\ Settings

Revision history for this message
EvilSupahFly (seann-giffin) said :
#2

I tried that and it still wasn't working. As it turns out, the EXPORTS file wasn't saving to the correct location for some reason. So the pathnames DO need to be enclosed in quotes, and while showmount -e 192.168.2.5 does show all the shares mounted properly, I can't mount ones from the NTFS partitions. The only shares that mount properly are on the EXT4 partition. I understand this is a different issue however, so I'll mark this solved and open a new one for my new problem.