Site Tools


linux:general:mount

This is an old revision of the document!


Mount networkshares

Temp. mount

CIFS / SAMBA

mount -t cifs //<SRV>/<SHARE>/ /mnt/<POINT>/
or with connection parameters
mount -t cifs //<SRV>/<SHARE>/ /mnt/<POINT>/ -o username=user,password=pass,domain=dom

Make sure you can access it and that you can see files. If you already have files at “//<SRV>/<SHARE>/” you can use

ls -al /mnt/<POINT>/
Also create a file with
touch /mnt/<POINT>/test
and check if it has been created.

NFS

mount -t nfs <server>:/<share>/ /<mountpoint>
or with additional parameters
mount -t nfs <server>:/<share>/ /<mountpoint> -o rw,bg,hard,intr,rsize=32768,wsize=32768,tcp,vers=3,suid,timeo=600

Make sure you can access it and that you can see files. If you already have files at “/<share>/” you can use

ls -al /<mountpoint>
Also create a file with
touch /<mountpoint>/test
and check if it has been created.

Perm. mount

CIFS / SAMBA

Insert in “/etc/fstab”

//<SRV>/<SHARE> /<MNTPOINT> cifs credentials=</root/.smbcreds>,iocharset=utf8,sec=ntlm 0 0

Insert in </root/.smbcreds>

username=<username>
password=<password>
domain=<domain>

Execute

mount -a

NFS

Insert in “/etc/fstab”

<server>:/share /<mountpoint> nfs rw,bg,hard,vers=4.0,suid,timeo=600,noatime,rsize=65536,wsize=65536,sec=sys 0

Execute

mount -a

Commands

Command Function
showmount -e <nfsserver> show available nfs shares
mount -t nfs <server>:/<share> /<mountpoint> mount a nfs share
linux/general/mount.1559819293.txt.gz · Last modified: 2019/06/06 13:08 by lunetikk