I followed this How To and it was useful and helpful to me. I can mount all shares flawlessly, I only have one problem: I can't mount shares that have a space in the directory name. e.g: the directory in this fstab line:
Code:
//Enigma-V2/Mijn Muziek /home/blaatmeister/Desktop/Samba/Muziek smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
When I type
sudo mount -a in the terminal, I get the following error:
Code:
[mntent]: line 12 in /etc/fstab is bad
Line 12 is the line I previously gave.
I tried all these variations of line 12:
Code:
"//Enigma-V2/Mijn Muziek" /home/blaatmeister/Desktop/Samba/Muziek smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
Code:
//Enigma-V2/Mijn\ Muziek /home/blaatmeister/Desktop/Samba/Muziek smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
Code:
'//Enigma-V2/Mijn Muziek' /home/blaatmeister/Desktop/Samba/Muziek smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
They all give me the same error message as the original line.
With the combination
Code:
//Enigma-V2/Mijn\Muziek /home/blaatmeister/Desktop/Samba/Muziek smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
I get this error message:
Code:
12455: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed
This is my entire fstab file:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda2
UUID=473804f9-e426-4057-92b3-43e86ae6fa4e / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=3d55a66d-1a14-487c-aaf0-f5e8bafb098a none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
//Enigma-V2/Downloads /home/blaatmeister/Desktop/Samba/Downloads smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
//Enigma-V2/Mijn\Muziek /home/blaatmeister/Desktop/Samba/Muziek smbfs credentials=/home/blaatmeister/.smbpasswd,uid=blaatmeister 0 0
Since the mount on line 11 works, there's nothing wrong with my .smbpasswd file.
I can also mount the share without a problem in the terminal using the command:
sudo smbmount "//Enigma-V2/Mijn Muziek" /home/blaatmeister/Desktop/Samba/Muziek -o credentials=/home/blaatmeister/.smbpasswd
I'm hoping that someone here can tell me how I can mount the share using the fstab file. Thanks in advance.
Bookmarks