/etc/fstab options with spaces in them?

Jhair Tocancipa Triana jhair.tocancipa at gmail.com
Sat Mar 24 09:57:27 UTC 2007

Michael R Head writes:

> Hi, I was wondering if anyone knows how to escape to quote options
> in /etc/fstab that should have spaces in them. I'm experimenting with
> unionfs, and one of the directories in my union has a space its path,
> which is causing this to happen:

> burner at flambe:~$ sudo mount -a
> [mntent]: line 13 in /etc/fstab is bad

> I've tried putting double quotes around the option, and I've tried using
> blackslash to escape the space, but nothing has worked. 

> Any thoughts?

,----[ man 5 fstab ]
| The second field, (fs_file), describes the mount point for the filesys-
| tem.  For swap partitions, this field should be specified as `none'. If
| the  name  of  the  mount point contains spaces these can be escaped as
| `\040'.


-- Jhair

More information about the ubuntu-users mailing list