LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2017, 01:44 PM   #1
patrickwilson82
LQ Newbie
 
Registered: Oct 2017
Posts: 14

Rep: Reputation: Disabled
Mounting File Directory Error


I ran this command, echo "10.0.16.12:/mnt/data/backup_radius2 /var/backup nfs defaults 0 0" >> /etc/fstab. Followed by mount /var/backup and got the error mount.nfs: access denied by server while mounting 10.0.16.12:/mnt/data/backup_radius1. I then ran umount 10.0.16.12:/mnt/data/backup_radius1, which worked as far as I can tell. When I ran a cat of /proc/self its no longer showing the radius1 directory to be mounted.

But when I once again run echo "10.0.16.12:/mnt/data/backup_radius2 /var/backup nfs defaults 0 0" >> /etc/fstab followed by mount /var/backup, I still get the same error. Any suggestions?
 
Old 10-17-2017, 02:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,431

Rep: Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105
Welcome to LinuxQuestions.

In my opinion it is a very bad habit to add lines to your /etc/fstab using echo. Hopefully you have backups. One slip up of > versus >> and you have overwritten the file. If you ran the commands twice now you have two lines that are the same.

You posted "echo 10.0.16.12:/mnt/data/backup_radius2..." but mounted 10.0.16.12:/mnt/data/backup_radius1. A typo or different share? How is it defined in your server's /etc/exports file?
 
Old 10-17-2017, 04:02 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,233
Blog Entries: 9

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
there's some confusion between ..._radius1 and ..._radius2 here.
please clarify.
also, if you get nfs permission denied errors, you have to show us the setup of the server as well as the client (and clarify which is which).
 
Old 10-18-2017, 01:17 PM   #4
patrickwilson82
LQ Newbie
 
Registered: Oct 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
I was attempting to mount the radius2 backup share, which is on my NAS server for backup purposes. Radius1 is a separate share on the NAS. I was running these commands on the client.
 
Old 10-18-2017, 04:45 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,431

Rep: Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105Reputation: 3105
How is the backup_radius2 share defined on the NAS? Post the contents of the /etc/exports file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba NAS mounting error after chmod -R 666 the share directory james3 Linux - Networking 1 08-06-2016 07:47 AM
[SOLVED] Mounting root filesystem in custom initramfs : No such file or directory anon_16 Linux From Scratch 3 03-06-2015 05:03 AM
Mounting CDROM with file and directory names in uppercase tangle Linux - General 2 03-28-2011 08:15 AM
[SOLVED] lfs 6.7 book ch 5.4 binutils 2.20.1 pass 1 error:error: ppl_c.h: No such file or directory frank zhu Linux From Scratch 6 03-04-2011 12:23 PM
Mounting 2 file systems to one directory leupi Linux - Networking 7 01-21-2006 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration