Monday, February 6, 2012

SAMBA mountpoints on Linux

How do I find out which SAMBA mountpounts I have on my box?

Using mount you shall find some Common Internet File System (CIFS) entries :

[soa@hqchACMESOA104 ffmw]$ mount

/dev/mapper/rootvg-rootlv 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/mapper/rootvg-tmplv on /tmp type ext3 (rw)
/dev/mapper/rootvg-optlv on /opt type ext3 (rw)
/dev/mapper/rootvg-homelv on /home type ext3 (rw)
/dev/mapper/rootvg-varlv on /var type ext3 (rw)
/dev/cciss/c0d0p1 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)
//acme1999.ACME.com/zdata/ER/ACMESOA/3786 on /data/ffmw/ACME1 type cifs (rw,mand,noexec,nosuid,nodev)
//chornl1999.ACME.com/zdata/ER/ACMESOA/0983 on /data/ffmw/ACME2 type cifs (rw,mand,noexec,nosuid,nodev)


[soa@hqchACMESOA104 ffmw]$ cat /etc/fstab

/dev/rootvg/rootlv / ext3 defaults 1 1
/dev/rootvg/tmplv /tmp ext3 defaults 1 2
/dev/rootvg/optlv /opt ext3 defaults 1 2
/dev/rootvg/homelv /home ext3 defaults 1 2
/dev/rootvg/varlv /var ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/rootvg/swaplv swap swap defaults 0 0
//acme1999.ACME.com/zdata/ER/ACMESOA/3786 /data/ffmw/ACME1 cifs rw,domain=ACME,username=CHAVEACMESOA,password=AVENes0a,auto,users 0 0
//emcal1999.ACME.com/zdata/ER/ACMESOA/0983 /data/ffmw/ACME2 cifs rw,domain=ACME,username=CHORNACMESOA,password=ORNNes0a,auto,users 0 0

No comments: