Author
Message
grolon DD-WRT Novice Joined: 10 Nov 2006 Posts: 5
Posted: Thu Jan 18, 2007 16:14 Post subject: DD-WRT v23 SP3 (01/18/07) std WRT54G V1.1 SMBFS Not Mounted
I'm using a Linksys WRT54G v1.1 with DD-WRT v23 SP3 (01/18/07) std.
I've configured Samba FS automount enabled,
Share //10.0.0.100/smbshare
User user1
Password *secret*
Init Script NONE
SMB share is not mounted, why ?
i run
# mount -t cifs //10.0.0.100/smbshare /tmp/smbshare/ -o username=user1,password=*secret*
# dmesg
CIFS: Missing UNC name for mount target
Any ideas ?
Thanks in advance.
Guido
Back to top
Sponsor
Eko DD-WRT Developer/Maintainer Joined: 07 Jun 2006 Posts: 5771
Posted: Thu Jan 18, 2007 16:20 Post subject:
# mount.cifs //10.0.0.100/smbshare /tmp/smbshare -o user=user1,pass=*secret*
Back to top
grolon DD-WRT Novice Joined: 10 Nov 2006 Posts: 5
Posted: Thu Jan 18, 2007 16:27 Post subject:
~ # mount.cifs //10.0.0.100/smbshare /tmp/smbshare/ -o user=user1,pass=*secret*
mount error 22 = Invalid argument
Refer to the mount.cifs( manual page (e.g.man mount.cifs)
~ #
My server is an IBM netfinity runnning Mandriva Linux 10.0
It used to work very well with v23 SP2
thanks
Back to top
Eko DD-WRT Developer/Maintainer Joined: 07 Jun 2006 Posts: 5771
Posted: Thu Jan 18, 2007 16:32 Post subject:
MAybe trailing / in mount point is problematic?
This is how it's done by default:
mkdir /tmp/smbshare
chmod 777 /tmp/smbshare
insmod cifs
mount.cifs $SAMBA_SHARE /tmp/smbshare -o user="$SAMBA_USER",pass="$SAMBA_PASSWORD"
Back to top
grolon DD-WRT Novice Joined: 10 Nov 2006 Posts: 5
Posted: Thu Jan 18, 2007 16:40 Post subject:
/ # ls -lad /tmp/smbshare/
drwxrwxrwx 1 root root 0 Jan 18 17:00 /tmp/smbshare/
/ # insmod cifs
/ # lsmod | grep cifs
cifs 183088 0
/ # mount.cifs //10.0.0.100/smbshare /tmp/smbshare -o user=user1,pass=*secret*
mount error 22 = Invalid argument
Refer to the mount.cifs( manual page (e.g.man mount.cifs)
/ # dmesg
CIFS VFS: cifs_mount failed w/return code = -5
Back to top
Eko DD-WRT Developer/Maintainer Joined: 07 Jun 2006 Posts: 5771
Posted: Thu Jan 18, 2007 16:43 Post subject:
Hmm, let me check some things, maybe it's broken again....
Back to top
Eko DD-WRT Developer/Maintainer Joined: 07 Jun 2006 Posts: 5771
Posted: Thu Jan 18, 2007 16:56 Post subject:
No, all is OK, automount and manual mount work as it should. Maybe your user or pass have "funny" characters inside?
Back to top
grolon DD-WRT Novice Joined: 10 Nov 2006 Posts: 5
Posted: Thu Jan 18, 2007 17:00 Post subject:
Mmmm,
user = 6 letters
password = 3 letter 1 number and 3 letters NO SPACES, NO DASH, NO NOTHING
always worked like this.
snif snif
Back to top
dicksons DD-WRT Guru Joined: 07 Jun 2006 Posts: 980 Location: Coal Creek Canyon, Colorado
Posted: Thu Jan 18, 2007 17:47 Post subject:
this works for me even via the WUI:
Description:
Filesize:
3.02 KB
Viewed:
15213 Time(s)
_________________ linksys GSv2, Gv4, Gv2, GLv1, G-TM, Buffalo wbr2, whr, whr-hp, whr-g125, wli-tx4-g54hp, Moto wr850gp, Alix.3C2
Back to top
anectine17 DD-WRT Guru Joined: 07 Jun 2006 Posts: 1535 Location: Idaho
Posted: Thu Jan 18, 2007 18:35 Post subject:
Just basic settings here. No password or script, and it works fine. I have found that on occasion it takes awhile to show that it's mounted. Not sure if that's a delay in actual mounting, or a just a delay in the GUI reporting it.
Description:
Filesize:
21.4 KB
Viewed:
15202 Time(s)
_________________ Clear 4G Wimax.
Linksys WRT54G-TM w/14929 std-nokaid, fan-cooled, 2 GB SD mod, Primary Router.
Linksys WRT54G v.3 w/15230 std-nokaid, Client Bridge.
Linksys E2000 w/15200 "Big"
Linksys WRT54G v.4
La Fonera 2100, fan-cooled
Linksys WRT54G v.3.1
Linksys WRT54G v.1.1
Linksys WRT54GS v.1
2x Linksys WRT54G v.2.2
Peacock Thread - READ THOROUGHLY
Back to top
grolon DD-WRT Novice Joined: 10 Nov 2006 Posts: 5
Back to top
Maddin DD-WRT Novice Joined: 19 Jan 2007 Posts: 1
Posted: Sat Jan 20, 2007 8:11 Post subject:
grolon wrote: I don't know, i think my config is ok, but it's not working.
Sorry, it's is spanish.
I''ve got a similar problem and I was not able to find any hints in the docs/forum so far.
On my Linksys WRT54GL running 'DD-WRT v24 Beta (01/18/07) vpn' I can't mount my NAS-device (simple printserver LevelOne FPS-3003). The command
Code:
mount.cifs //printserver/USB2_D1P1 /mnt -o user=router
fails with Code:
mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Using the same command from my linux box running Suse 10.2 is successful.
Any hints are highly appreciated.
Thanks a lot
Back to top
jogumi DD-WRT Novice Joined: 27 Oct 2006 Posts: 3
Posted: Fri May 18, 2007 17:48 Post subject:
The problem is because samba uses the tcp port 139 and cifs uses the tcp port 445. Configure the device to accept connections using the 445 port instead 139.
Back to top