Jump to content

Nfs Question


The Sorrow

Recommended Posts

Sure, just make directories for each share you want to mount in /opt/vsftpd/FTPServer and then mount them (add them to your fstab to get them mounted automatically when your machine starts)

e.g. to mount an nfs share from a NAS with IP of 192.168.1.2 (If you have DNS you can use the fully qualified domain name fro the host) as share1

mkdir /opt/vsftpd/FTPServer/share1
mount -t nfs 192.168.1.2:/path/to/nfs/share /opt/vsftpd/FTPServer/share1

and to auto mount on start you would add the following line to you fstab (Feel free to read up on the flags and pick those that you think will work best in your situation)

192.168.1.2:/path/to/nfs/share /opt/vsftpd/FTPServer/share1 nfs rw,hard,intr 0 0

If they are available as smb/cifs shares and not nfs shares then you would need to change the mount types from nfs to either cifs or smbfs. You will also need to change the flags/options you use to mount it to get things like permissions correct.

Edited by Jason Cooper
Link to comment
Share on other sites

Sorry, the first space should have been a colon.

192.168.1.2:/path/to/nfs/share /opt/vsftpd/FTPServer/share1 nfs rw,hard,intr 0 0

Edited by Jason Cooper
Link to comment
Share on other sites

Sorry, the first space should have been a colon.

192.168.1.2:/path/to/nfs/share /opt/vsftpd/FTPServer/share1 nfs rw,hard,intr 0 0

I keep getting a "[mntent]: line 16 in /etc/fstab is bad"

heres the line

10.50.0.100:/mnt/Videos /opt/The\ Lair\ FTP/Videos/ nfs rw,hard,intr 0 0[/CODE]

Link to comment
Share on other sites

Check the exported path from your nfs server is /mnt/Videos (This is going to be case-sensitive so check if it is an uppercase V or a lowercase v).

Remove the / from the end of /opt/The\ Lair\ FTP/Videos/ so that it is

10.50.0.100:/mnt/Videos /opt/The\ Lair\ FTP/Videos nfs rw,hard,intr 0 0

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...