Mounting CISF/NFS Shares
Hi all,
I've been trying to figure this out for a while and can't get anywhere. I've trolled the net and to be quite honest, I'm more confused now than when I started. Basically, I'm trying to auto-mount a CIFS/NFS share(FrreeNAS & or Openfiler) at bootup on Ubuntu Desktop 14.04.1 LTS. So far, I can mount it (able to add delete files) using the terminal using Code:
sudo mount -t nfs -o proto=tcp,port=2049 192.168.0.100:/mnt/FreeNAS/unixset /home/dk/Documents/nfsmount/ Code:
mount -a Code:
//192.168.0.100/dk /media/nfsmount/ cifs uid=1000,gid=1000,credentials=/home/dk/.nfsmount01credentials,iocharset=utf8,sec=ntlm 0 0 Code:
mount error(13): Permission denied As mentioned, and through loads of trial and error, I can't work it out. Please help. |
Why are you manually mounting with NFS then trying stab with CIFS? Does CIFS mounting work when you do it manually? Why can't you just use NFS in fstab?
|
Why don't you just mount the NFS share via an fstab entry? (You mentioned that it works from the command prompt.) BTW, You seem to be confusing NFS and CIFS with your fstab entry (based on references to NFS mountpoint and credential file naming).
1. Are you sure that //192.168.0.100/dk is the actual share? Code:
smbclient -L 192.168.0.100 |
: Response to Alucard
Good point. However, from what I've read and understand, linux in general has issues with nfs authentication. I just opted for the cifs option to avoid the hassles and differences of the various nfs versions. If you could please show me a way of how to do it in nfs that would be great. The FreeNAS box has both CIFS and NFS shares setup. For now, I'm just trying to be able to auto-mount with either at bootup. |
Ferrari:
Thanks for your response. Thanks for the media tip. As for the nfs shares, the dk is my linux username (picked that from some how to guide). I have also tried this with same result Code:
mount -t nfs -o proto=tcp,port=2049 192.168.0.90:/mnt/data/datashare/Data /home/dk/Documents/nfsmount/ |
Quote:
If this works Code:
sudo mount -t nfs -o proto=tcp,port=2049 192.168.0.100:/mnt/FreeNAS/unixset /home/dk/Documents/nfsmount/ Code:
192.168.0.100:/mnt/FreeNAS/unixset /home/dk/Documents/nfsmount/ nfs rw 0 0 Code:
sudo mount -a |
Quote:
|
Some useful NFS options explained in simple terms:
http://linoxide.com/file-system/exam...stab-etcfstab/ |
Thanks for the brilliant pointer and wonderful resource. Worked like a charm.
Much appreciated. Code:
192.168.0.100:/mnt/FreeNAS/unixset /home/dk/Documents/nfsmount/ nfs rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0 |
Glad to have been on help! :)
|
All times are GMT -5. The time now is 04:36 PM. |