mount.cifs missing

Please post any bugs you have found
Post Reply
Message
Author
warpinwolf
Posts: 4
Joined: Thu 20 Jul 2006, 20:00

mount.cifs missing

#1 Post by warpinwolf »

Hi,

hope this is the right place.

After fooling around hours, googling, testing.... I finally did "find / -name mount.cifs" on my 4.1.2 Puppy - and nothing has been found.

I went to packages.slackware.it, got the samba tgz, extracted it, took the mount.cifs from the user/sbin directory and copied it over to the /sbin

And all a sudden the "CIFS VFS: cifs_mount failed w/return code = -22" messages were gone....

Merry Xmas and a Happy New Year everybody
Wolf

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#2 Post by HairyWill »

that is interesting
Please could you post the mount lines that you are using. I am also interesting in which OS the server is running.

When I was adding cifs support to pnethood it seemed to work OK without mount.cifs, ie this works for me connecting to an XP machine

Code: Select all

mount -t cifs -o username=will,password=xxxxxxxx //192.168.1.64/c$ /mnt/data
puppy contains three ways of mounting
/bin/mount-FULL (a full binary implementation)
/bin/mount (a shell script that handles ntfs separately and ensures that mtab is maintained)
busybox mount (a stripped down binary implementation)
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

warpinwolf
Posts: 4
Joined: Thu 20 Jul 2006, 20:00

#3 Post by warpinwolf »

Hi HairyWill,

using

mount-FULL -t cifs -o username=abc,password=xyz //dc1eu/data_files /mnt/data

Server OS: Windows Server 2003.

I have to use CIFS because of the authorization encryption.

Seems like this Puppy version does not have everything required packed into it (or I was stupid enough to fool around and delete stuff).

dmesg constantly gave these messages:
CIFS VFS: cifs_mount failed w/return code = -22

pnethood does work (now) in my environment (still the server isn't discovered, so I have to call it using the ip address, enter user and passwrd and click refresh) - This is NO accusation! Just to let you know. Another thing - I'm used to enter "domain\username" in the username field. In pnethood this doesn't work, I have to escape the backslash "domain\\username". Doing this, it works, but then the single backslash is being displayed in the username field --> another refresh doesn't display any shares (assuming connection denied....). BTW using the username without domain part works as well.....

Regards
Wolf

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#4 Post by HairyWill »

wolf
thanks for the feedback, very helpful
I will push for mount.cifs to be included in the next release.
It doesn't surprise me that the slashes cause a problem. It is not easy getting slashes out of and back into gtkdialog textboxes. Considering that pnethood is primarily aimed at at small home environments domain authentication has not been something that I have focussed on.
As to the scan not finding your server, could you try something like

Code: Select all

nbtscan -t 5000 192.168.0.0/16
replacing the subnet with something suitable for your environment.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

Kenny-M

#5 Post by Kenny-M »

In Puppy 4.2.1 Seamonkey 4.2.1-k2.6.25.16 mount.cifs
is there under /sbin. Works well and is easy to use in
a bash file.

Simple example:

In this case the "public" directory is a CIFS box at 192.168.1.21

First mkdir /mnt/public (do this once)

then

mount.cifs //192.168.1.21/public /mnt/public -o user=puppy,pass=woof

When done using the mount close all open files and simply do a

umount /mnt/public

To add more security you can remove ",pass=woof" then at mount time you will be queried by the CIFS box what the password is.

I think is a keeper.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#6 Post by BarryK »

mount.cifs is also in Puppy 4.3pre-beta, that I'm uploading now.
[url]https://bkhome.org/news/[/url]

Post Reply