This is an old revision of the document!
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>/testand check if it has been created.
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>/testand check if it has been created.
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
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
Command | Function |
---|---|
showmount -e <nfsserver> | show available nfs shares |
mount -t nfs <server>:/<share> /<mountpoint> | mount a nfs share |
Discussion