|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
It went through all the lines in smbfstab and didn't find a valid one. Did you end that active line with an end of line? Add a blank line to the end just to make sure of that. Also are you editing the right smbfstab? It's in /etc/samba/smbfstab, not /etc/smbfstab. I notice that it went through the loop 12 times. That is exactly how many lines there are in the unmodified version. So I bet you didn't edit /etc/samba/smbfstab at all.
|
|
||||
|
And the rest of it.
Code:
+ '[' none ']'
+ '[' 10 -gt 0 ']'
+ '[' -z '' ']'
+ mount -t cifs -o 'username="user' 'name",password=password' //xxx.xxx.xxx.xxx/Lacie /windows/Lacie
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
One can change the type of mount containing the directory dir:
mount --make-shared dir
mount --make-slave dir
mount --make-private dir
mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
mount --make-rshared dir
mount --make-rslave dir
mount --make-rprivate dir
mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
+ PID=16115
+ test -e /proc/16115
+ JOBS=
+ '[' '' ']'
+ '[' '' ']'
+ test ''
+ '[' '' -a 10 -eq 0 ']'
+ rc_status -v
+ rc_check
+ _rc_status_ret=0
+ test 0 -eq 0
+ test 0 -eq 0
+ return 0
+ test 0 -gt 7
+ _rc_status_ret=0
+ case "$_rc_todo" in
+ local i
+ for i in '"$@"'
+ case "$i" in
+ local vrt=
+ local out=1
+ local opt=en
+ test -n ''
+ opt=e
+ case "$_rc_status" in
+ vrt=' done'
+ echo -e '' done
done
+ _rc_status=0
+ return 0
+ read service mountpoint vfstype options
+ test yes = no
+ touch /var/lock/subsys/smbfs
+ rc_exit
+ exit 0
Code:
# This file allows you to mount SMB/ CIFS shares during system boot while # hiding passwords to other people than root. Use /etc/fstab for public # available services. You have to specify at least a service name and a mount # point. Current default vfstype is smbfs. # # Possible vfstypes are smbfs and cifs. # # The options are explained in the manual page of smbmount and mount.cifs. # # service moint-point vfstype options //xxx.xxx.xxx.xxx/Lacie /windows/Lacie cifs username="user name",password=password
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
|
|||
|
The problem is the space in your username. You'll have to escape it like this for the sake of the smbfs script:
username=user\ name,password=password |
|
||||
|
Quote:
Thanks.
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
|
||||
|
OK, here is an update for anyone interested. It appears that there is a mixture of the two ways that you need to escape the space depending on whether it's a space in the path or username.
I found that for my smbfstab to work I had to do the following: Path spaces are escaped as:- /path\ name/ Username spaces are escaped as:- user\040name Below is my smbfstab Code:
//xxx.xxx.xxx.xxx/Data\ I /windows/DataI cifs username=User\040Name,password=password,uid=1000,gid=100,umask=0022 //xxx.xxx.xxx.xxx/Data\ II /windows/DataII cifs username=User\040Name,password=password,uid=1000,gid=100,umask=0022 //xxx.xxx.xxx.xxx/LaCie /windows/Lacie cifs username=User\040Name,password=password,uid=1000,gid=100,umask=0022 //xxx.xxx.xxx.xxx/LaCie\ Media /windows/LacieMedia cifs username=User\040Name,password=password,uid=1000,gid=100,umask=0022
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
|
|||
|
Quote:
https://bugzilla.novell.com/show_bug.cgi?id=460793 Hopefully it will get fixed by 11.2. Or you can patch your smbfs script as shown. Also, I suspect you may also be able to use \040 in the service name. |
|
||||
|
Thanks. I did wonder why there were two methods of escaping a space.
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|