Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 09-10-2013, 06:25 AM   #1
Registered: Sep 2011
Posts: 157

Rep: Reputation: Disabled
script for nfs mount point

Hi ,

i have create the bash script for nfs but in this script asking for mount point only once it is it prompting for second time.

example: do you wants to create any other mount point [yes/no]?
note(if i give yes it should ask me to add the mount point else it should proceed with next step) it should ask each and every time if i give "yes" and add the mount point in it...

echo " enter the mount point name"
read e
echo "$e *(rw,sync,no_root_squash)" >>/etc/exports
"Note:here it should ask again if any mount point needs to be added or not?
if yes it should start from again.."

service nfs restart
exportfs -r
exportfs -v
chkconfig nfs on
Old 09-12-2013, 01:00 PM   #2
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
sounds like a good idea, post your script as well as the results of running it with sh -xvv for full details.

folks around here will not write the script for you, but are more then willing to help fix what you have done.


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
NFS mount point mount as readonly on AIX davinders Linux - Server 1 09-25-2011 01:23 PM
NFS mount point problem dasuwal Linux - Software 4 06-04-2010 01:19 PM
NFS mount point problem dasuwal Linux - Server 3 04-01-2010 12:17 AM
mount NFS to mount point then share out the mount point ionic_slim Linux - Networking 2 04-20-2008 01:17 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:06 AM.

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