Fstab with special characters
·1 min
I wanted to mount a Samba share to my (new) Fedora Workstation machine and that share had some special characters, a '
and a space. Escaping those wasn’t sufficient. Instead, I had to use Ascii octal codes.
Here’s what worked in the /etc/fstab
file:
//10.0.1.179/Ketan\047s\040Drive /mnt/samba-at-home cifs credentials=/etc/samba/credentials,uid=1000,gid=1000 0 0
10.0.1.40:/var/nfs/shared/Backups/Fedora /mnt/backups-on-nas nfs defaults 0 0
Resources: