CIFS - Help to interpret this message please




I got this response from the cifs mailing list but I really don't know
exactly what this fellow is saying to do. Can someone please help break
this down into "plain English" instructions? Thanks, Ohmster.
---------------------------------------------------------------------
We use mount.cifs with autofs. We had to use the latest mount.cifs module
though, the one supplied in our RPM distribution wasn't current enough.

Here's the autofs config (you should be able to map this to a
mount.cifs commandline:


Here's the auto.master line:

/my/autofs/ /etc/auto.myfile --ghost --timeout=900

Here's the auto.myfile line:
site
-fstype=cifs,credentials=/etc/smbpasswd.cifs,directio,uid=myuid,gid=mygid
,rw,dir_mode=0755,file_mode=0644,iocharset=utf8
://mycifsmountserver/myshare/path


Here's the format of /etc/smbpasswd.cifs
username=user
password=password





On 10/21/06, Ohmster <theohmster@xxxxxxxxxxx> wrote:

I want to mount some of my XP shares on my Fedora Core 5 box on my
home LAN and used to be able to do this with "mount -t smbfs..." and
now that does not work anymore. I see that cifs is used instead but I
am having a very hard time getting that to work. My old syntax does
not work anymore and I am not sure of the currently required syntax on
how to do this. Previously, this worked:

mount -t smbfs //missy/MY_vids_01 /mnt/MY_vid_01 -o
username=myuser,password=mypassword,rw

(missy is in my /etc/hosts file as 192.168.0.3)

This does not work anymore, nor does it work by substituting cifs for
smbfs.

Not even mount.cifs works, I get error after error, no matter what I
try. I
thought that for sure this would work but it does not...

[root@ohmster mnt]# mount.cifs -t cifs //192.168.0.3/MY_vids_01
/mnt/MY_vid_01 -o username=user,password=pass,rw

Mounting the DFS root for domain not implemented yet
No ip address specified and hostname not found
[root@ohmster mnt]#

I tried again with a credential file:

[root@ohmster mnt]# mount -t cifs //missy/MY_Vids_01 /mnt/MY_vid_01/
-o rw,credentials=/home/ohmster/scripts/cifsauth mount error 12 =
Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g.man
mount.cifs) [root@ohmster mnt]#

I don't quite understand this memory thing. I googled for it and came
up with this from some kind of Xen page:

Error: Error creating domain: (12, ' Cannot allocate memory')

* Versions: 2.0
* Occurs when: trying to start domain
* Probable cause
o allocated memory for "dom0 + running domUs + domU that you
are trying to start" exceeds physical memory
* Solution
o Reduce the amount of memory required for the new domU, or
balloon down the memory of the running domUs

What does that mean? I am not trying to run any kind of a domain
server, I only want to mount a Windows share with a workgroup name,
user name, and user password.

Does mount -t cifs or mount.cifs actually work at all and could
someone please give me an example that would work for my setup?

Worgroup=workgroup
User=user
Password=pass
XP Machine=192.168.0.3
FC5 Machine=192.168.0.1

I am pulling my hair out with this, can somebody please supply a
working example? Thanks.

--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.

_______________________________________________
cifs-protocol mailing list
cifs-protocol@xxxxxxxx
https://lists.samba.org/mailman/listinfo/cifs-protocol



--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.



Relevant Pages

  • Re: Am I in the wrong newsgroup?
    ... cifs and I cannot get this to work to save my life. ... two posts in this newsgroup asking for help, ... The problem is that when I try to mount an XP share using cifs, ... memory error like so... ...
    (comp.os.linux.networking)
  • Re: There is not enough memory or disk space to run word.
    ... Your subject line says "There is not enough memory or disk space to run word," but your message body doesn't refer to this at all. ... What happens when you attempt to run PowerPoint or Excel? ... Are you opening the applications from the Start menu in Windows, or are you double-clicking a file to open the associated program? ...
    (microsoft.public.office.misc)
  • Re: Avoiding external fragmentation with a placement policy Version 12
    ... CIFS does it, NFS ... to disk in order to free memory ... ... and user allocations going from the top down. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: mount.cifs - Can someone give me a working example please?
    ... and used to be able to do this with "mount -t smbfs..." ... I see that cifs is used instead but I am having a very hard time getting that to work. ... My old syntax does not work anymore and I am not sure of the currently required syntax on how to do this. ... I don't quite understand this memory thing. ...
    (comp.os.linux.networking)
  • Re: cifs large write performance improvements to Samba
    ... cifs indeed shrinks the cifs_inode_cache under memory pressure. ... > server types) so users see what is broken in smbfs (and so users can see ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)