fstab syntax

krad kraduk at googlemail.com
Sat Jan 30 19:33:39 UTC 2010


On 30 January 2010 19:05, Jeff Laine <wtf.jlaine at gmail.com> wrote:

> Hello,
>
> My question is regarding /etc/fstab synax.
> How can I use spaces and quote symbols in my device name?
> I tried to use double quotes and backslash, but no luck so far.
> I.e. I'd like to put the following line:
>
> /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0
>
> Any ideas?
>
>
> --
> Best regards,
> Jeff
>
> | "Nobody wants to say how this works.  |
> |  Maybe nobody knows ..."              |
> |                       Xorg.conf(5)    |
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>

/dev/msdosfs/MY\ FLASH /mnt/flash msdosfs rw,noauto 0 0

or

"/dev/msdosfs/MY FLASH" /mnt/flash msdosfs rw,noauto 0 0

should work, but i guess you tried these?

The alternative way would be to use the UUID of the drive, as that wont have
spaces in, and is more versatile than /dev/das1a type syntax


More information about the freebsd-questions mailing list