Linux, permanent mount

I use the following mount command every time I start my RHEL 6.x OS

mount -t nfs4 10.14.12.24:/home/data /xxxx

Open in new window


How can I easily start this mount without having to retype it every time I reboot ?

Thanks
Los Angeles1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Los Angeles1Author Commented:
Apparently I am supposed to use /etc/fstab

How do I format my mount so that fstab can understand it ?
0
farzanjCommented:
Yes, /etc/fstab

10.14.12.24:/home/data /xxxx nfs4 soft,intr  0  0

Open in new window

0
jmcmillan227Commented:
In your /home/username folder there is a file called .profile  You can open this in an editor and add whatever commands you want to.  Anything in this file will execute at login just like autoexec.bat did in Windows 95
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

farzanjCommented:
Here's the reference.
https://wiki.archlinux.org/index.php/Fstab


10.14.12.24:/home/data /xxxx nfs4 defaults,soft,intr  0  0

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CEHJCommented:
Why Java TA?
0
farzanjCommented:
@CEHJ: You are right, it should not include Java topic.  It should have Linux Distributions instead.
0
farzanjCommented:
Well, Linux runs mostly bash and for Bash the profile file is .bash_profile.

Second, this question is about permanent mount, which is always done in the /etc/fstab file.

If it had to be an automount, then that had to be done with auto.master way.  Mounts are never put in the profile files.
0
MazdajaiCommented:
Farzanj is correct. I found hard to compare this with Windows 95... :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.