LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-01-2009, 03:23 PM   #1
gessi
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Red face Difference between smbmount mount.cifs and mount -t


Hello,

I am wondering what exactly is the difference between:
smbmount
mount.cifs
mount -t smbfs
mount -t cifs

I am asking because a NAS vendor supports 'mount -t smbfs'. Anyway I came across the other choices and would like to know of this is depend on the server (Samba, windows 2000&2003&2008 etc.) and what is exactly important to know about it.
 
Old 11-01-2009, 03:37 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
mount -t cifs will call the mount.cifs program, and the same for smbmount / mount -t smbfs, so whilst they are related, the two, cifs & smbfs, have nothing in common when they are executed.
 
Old 11-01-2009, 03:45 PM   #3
wfh
Member
 
Registered: Sep 2009
Location: Northern California
Distribution: Ubuntu Debian CentOS RHEL Suse
Posts: 164

Rep: Reputation: 44
Quote:
Originally Posted by gessi View Post
...the difference between:
smbmount
mount.cifs
mount -t smbfs
mount -t cifs
smbmount and 'mount -t smbfs' create the same resulting mount of a samba share. ('smbmount' is a Debian wrapper script which gets you to the business end of 'mount.smbfs').

mount.cifs allows you to mount the Windoze proprietary(?) shared filesystem.
 
Old 11-01-2009, 03:58 PM   #4
gessi
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
So which command do I use for Samba usually?

I saw that both can be used!?
 
Old 11-01-2009, 04:00 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
smbmount is NOT a debian script, it's a tool from the samba client package across many different distro's.

"mount -t smbfs" is not for mounting samba shares, it's for mounting Server Message Block filesystems, which is what Windows Network exports. Samba got it's name as a word containing the letters S M and B in that order.

CIFS *IS* SMB to all extents and purposes, or rather (AFAIK) the iteration of the code developed by Microsoft since 1996. From the Linux perspective, mount.cifs has simply superceded mount.cifs functionality over the last 18 months or so, and I would guess this is largely in line with M$ releasing the SMB2 standard as part of vista with a published API and added functionality, making a clean break more logical and feasible. From the perspective of a general user, they do the same job.

Last edited by acid_kewpie; 11-01-2009 at 04:07 PM.
 
Old 11-01-2009, 04:09 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by gessi View Post
So which command do I use for Samba usually?

I saw that both can be used!?
use the one that works. mount.smbfs is officially obsolete now though, and I would certainly never expect mount.cifs to not be 100% backwards compatible. If a NAS product (Which? ONtap an re-brands like Ibm NetFiler work well with both) says it privdes windows shares, then it's going to be striving to work as closely as possible to behave like windows. But then at the same time I think ONtap actually uses samba anyway.
 
Old 11-01-2009, 04:29 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
cifs stands for the "common internet file system". It was defined by a consortium of companies that included Microsoft. It adds support for Unix permissions, including facls. Microsoft chose not to support it (their own standard!)but use the term. You want to use it for mounting samba shares and for newer kernels, the smbfs kernel driver is not available. The cifs driver will revert to the behavior of the smbfs driver if the server doesn't support the unix cifs extensions.
 
  


Reply

Tags
mountcifs, smbmount


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount -t cifs permission denied by mount -t smbfs works fine humbletech99 Linux - Server 13 09-03-2009 10:17 AM
Help with mounting samba share: smbmount or mount.cifs error: permission denied wdli Linux - Server 1 08-11-2009 11:31 PM
mount.cifs will not allow me to copy directories, smbmount will DiBosco Linux - Networking 2 07-05-2009 10:06 AM
Using mount.cifs to mount subdirectories in Windows server kenneho Linux - Server 0 03-19-2009 04:34 AM
samba client (smbmount, mount.cifs) and kerberos Felipe Linux - Software 0 08-22-2008 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration