Solved

How to check CIFS mount options on Linux

Posted on 2011-03-11
5
1,353 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
ID: 35113433
Doesn't "mount" show you all options?

wmp
0
 
LVL 12

Assisted Solution

by:xmlmagician
xmlmagician earned 100 total points
ID: 35113434
i think the answer is in here:

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

Author Comment

by:ashsysad
ID: 35113634
"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
ID: 35113701
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
ID: 35120073
Woolmilkporc, Thanks for introducing me these locking mechanisms with CIFS and NFS!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu/Asterisk after upgrade Wav issue 19 54
Debug VNC connection on CentOS7 server 22 63
networking details on centos 6.6 4 49
mcrypt_create_iv() is deprecated 4 67
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

10 Experts available now in Live!

Get 1:1 Help Now