LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-20-2018, 12:35 PM   #1
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Rep: Reputation: 2
nfs failing


When I run the following command I get these errors:-
Code:
sudo mount -t nfs -vo nolocks 192.168.0.120:music /mnt/nfs
mount.nfs: timeout set for Sun May 20 19:21:38 2018
mount.nfs: trying text-based options 'nolocks,vers=4,addr=192.168.0.120,clientaddr=192.168.0.150'
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified
music at 192.168.0.120 exists but is a link created with
Code:
ln -sv /media/pi/My\ Passport/Media/music music
and the reason for creating the link is to get past the space in the name of the folder to which I really want to link/nfs connect to.
As I say I would really like to nfs link to /media/pi/My Passport/Media/music rather than go indirectly, so please tell me how I do this.
I have attempted connecting from the client to /media/pi/My Passport/Media/music directly by placing double quotes around it as well as inserting \space rather than just space as well as both double quotes and \space. All fail by not being able to interpret /media/pi/My Passport/Media/music correctly. All attempts fail at the space.
 
Old 05-20-2018, 01:14 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Quote:
mount.nfs: an incorrect mount option was specified
Your mount option is incorrect as indicated in the output. You need the path to the location on the machine you are trying to access and you don't show a correct path.

Code:
sudo mount -t nfs -vo nolocks 192.168.0.120:music
You need at least a forward slash in front of music and that will only work if music is in the / (root) of the filesystem so put the correct path where the directory is on 192.168.0.120.
 
Old 05-21-2018, 04:04 AM   #3
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
That made no difference as can be seen by:-
Code:
sudo mount -t nfs -vo nolocks 192.168.0.120:/home/pi/music /mnt/nfs
mount.nfs: timeout set for Mon May 21 11:04:35 2018
mount.nfs: trying text-based options 'nolocks,vers=4,addr=192.168.0.120,clientaddr=192.168.0.150'
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified
 
Old 05-21-2018, 04:35 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The correct syntax is nolock not nolocks.

Whether you need the option or not depends on what nfs version or if your running the rpc.statd daemon.
 
1 members found this post helpful.
Old 05-21-2018, 07:13 AM   #5
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Thank you that worked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting nfs failing ernieball Linux - Newbie 7 10-26-2014 12:26 PM
Installer failing to look for kickstart file on nfs server... tdbabar Red Hat 3 09-25-2007 12:21 AM
NFS mount failing sidra Red Hat 3 04-20-2007 07:49 PM
NFS export to localhost failing XicKy Linux - General 1 12-14-2006 12:47 PM
Install from NFS Share Failing Tarwn Slackware - Installation 5 03-21-2005 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration