Linux, /etc/fstab

Posted on 2013-09-11
Medium Priority
Last Modified: 2013-09-12
I am using RHEL 6.x, and I am still a bit confused

What is the difference between the following two mounts /xxxx nfs4 soft,intr  0  0

Open in new window /xxxx nfs4 defaults,soft,intr  0  0

Open in new window

and which should I use ?
Question by:Los Angeles1
  • 2
LVL 86

Expert Comment

ID: 39484348
Wrong TA !

Author Comment

by:Los Angeles1
ID: 39484361
I do not understand the comment
LVL 86

Expert Comment

ID: 39484542
You've posted a Linux question (only) in the Java TA. Why?
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 39484642
"defaults" is short for these options: rw, suid, dev, exec, auto, nouser, and async

It is only needed as a placeholder in case that you don't want to specify any options - fstab is field-sensitive which means that a field (the 4th in this case) cannot be left empty if more fields (the dump and fsck order fields) are to follow.

In your particular case "defaults" is unnecessary - both statements do exactly the same.

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question