Forum Moderators: bakedjake

Message Too Old, No Replies

How to include a space in a device name in /etc/fstab

Want to add a samba share in fstab

         

martin

1:43 pm on Jun 26, 2003 (gmt 0)

10+ Year Member



Anybody have an idea how can I add an entry to /etc/fstab with a device name like //computer/Share Name, I tried quoting it and escaping the space with \ but it doesn't seem to work.

On the command line I can do it like mount -t smbfs "//computer/Share Name" /mnt and it works, but I have no idea how can I add this to /etc/fstab, mount keeps on complaining there's a wrong entry in fstab.

dmorison

1:49 pm on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the escape character followed by the 3 digit octal code for space, so:

//computer/Share\040Name