Solved

How to check CIFS mount options on Linux

Posted on 2011-03-11
5
1,345 Views
Last Modified: 2012-06-21
On a Linux server, I see a CIFS filesystem mounted. It was mounted through command-line so it doesn't have entry in /etc/fstab and I dont have access to NAS server which shares the filesystem through CIFS. How can I check with what options that CIFS filesystem are mounted ?
Is that possible ?  Please let me know.


0
Comment
Question by:ashsysad
  • 2
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 200 total points
Comment Utility
Doesn't "mount" show you all options?

wmp
0
 
LVL 12

Assisted Solution

by:xmlmagician
xmlmagician earned 100 total points
Comment Utility
i think the answer is in here:

http://linux.die.net/man/8/mount.cifs
0
 

Author Comment

by:ashsysad
Comment Utility
"mount" seems to be showing the options. It is showing it as (rw, mand), any idea what is this "mand" denotes ?


[root@ftpllm01 testimsftp]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/xvda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
//nasllm01-ims/ims_websites on /nasftp type cifs (rw,mand)
//nasllmha-ims/ims_websites on /NASfrom3par_CIFS type cifs (rw,mand)
[root@ftpllm01 testimsftp]#
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 200 total points
Comment Utility
That's "mandatory locking" (= kernel enforced file locking), which is standard  with CIFS as opposed to "advisory locking" (= cooperative file locking)  which is the NFS standard.

0
 

Author Closing Comment

by:ashsysad
Comment Utility
Woolmilkporc, Thanks for introducing me these locking mechanisms with CIFS and NFS!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now