Welcome to WebmasterWorld Guest from

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

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

Preferred Member

10+ Year Member

joined:Aug 3, 2002
votes: 0

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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 3, 2003
votes: 0

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