Networking Forums

Networking Forums > Computer Networking > Linux Networking > mount.cifs - Can someone give me a working example please?

Reply
Thread Tools Display Modes

mount.cifs - Can someone give me a working example please?

 
 
Ohmster
Guest
Posts: n/a

 
      10-21-2006, 05:58 PM

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.
 
Reply With Quote
 
 
 
 
kurt
Guest
Posts: n/a

 
      10-24-2006, 02:55 AM
Ohmster 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.
>


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


....kurt
 
Reply With Quote
 
Ohmster
Guest
Posts: n/a

 
      10-24-2006, 09:56 PM
kurt <(E-Mail Removed)> wrote in news:(E-Mail Removed):

> mount -t cifs //missy/MY_vids_01 /mnt/MY_vid_01 -o
> username=myuser,password=mypassword
>


Kurt,

I had an error that resulted in me not being able to mount the share:
mount error 12 = Cannot allocate memory

And of course, the share would fail to mount. I have since solved this
problem and will make a new post, giving the solution for anyone that needs
it. I for sure could not find anything for this on the net so maybe this
will help someone else.

Thanks for your reply, Kurt.
--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'mount -t cifs' only works with IP addresses, not with hostnames Jukka Aho Linux Networking 2 03-08-2007 12:38 AM
mount using cifs to get ACL info semafuster@googlemail.com Linux Networking 0 03-03-2007 02:17 PM
Mount cifs with a vmware host-only connection? luser32 Linux Networking 1 12-25-2006 04:53 PM
FC5 - cifs and samba - mount error 12 = Cannot allocate memory Ohmster Linux Networking 0 10-20-2006 04:29 AM
NFS mount won't mount at boot, but mount -a works fine. BT Linux Networking 2 09-23-2004 09:37 PM



1 2 3 4 5 6 7 8 9 10 11