Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat EX200 Exam - Topic 2 Question 127 Discussion

/data Directory is shared from the server1.example.com server. Mount the shared directory that:
A) when user try to access, automatically should mount
B) when user doesn't use mounted directory should unmount automatically after 50 seconds.
C) shared directory should mount on /mnt/data on your machine.

RedHat EX200 Exam - Topic 2 Question 127 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 127
Topic #: 2
[All EX200 Questions]

/data Directory is shared from the server1.example.com server. Mount the shared directory that:

Show Suggested Answer Hide Answer
Suggested Answer: A

1. vi /etc/auto.master

/mnt /etc /auto.misc --timeout=50

vi /etc/auto.misc

data -rw,soft,intr server1.example.com:/data

service autofs restart

chkconfig autofs on

When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.

/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.


Contribute your Thoughts:

0/2000 characters
Jacqueline
3 days ago
I think A is straightforward.
upvoted 0 times
...
Lyda
8 days ago
This question is tricky!
upvoted 0 times
...
Dean
13 days ago
Just use the /etc/auto.master file for configuration.
upvoted 0 times
...
Van
18 days ago
Wait, it unmounts automatically? That’s new to me!
upvoted 0 times
...
Caren
23 days ago
Totally agree, 50 seconds is a bit short though.
upvoted 0 times
...
Jeffrey
29 days ago
Sounds good, but how do you set the timeout?
upvoted 0 times
...
Eladia
1 month ago
You can use autofs for automatic mounting.
upvoted 0 times
...
Leota
1 month ago
What if someone is using the directory when it tries to unmount?
upvoted 0 times
...
Mari
1 month ago
Just set the timeout in the autofs config, easy peasy!
upvoted 0 times
...
Herman
2 months ago
Wait, does it really unmount after 50 seconds? Sounds tricky.
upvoted 0 times
...
Andra
2 months ago
Totally agree, autofs is the way to go!
upvoted 0 times
...
Tien
2 months ago
You can use autofs for automatic mounting.
upvoted 0 times
...
Ma
2 months ago
I vaguely remember that we discussed using `systemd` for managing mounts, but I’m not clear on how to implement the 50-second timeout.
upvoted 0 times
...
Laurena
2 months ago
I believe we might need to use `autofs` for the automatic mounting and unmounting, but I'm not entirely confident about the syntax.
upvoted 0 times
...
Iesha
3 months ago
I think we practiced a similar question where we had to mount a directory, but I can't recall the exact commands for the auto-unmount feature.
upvoted 0 times
...
Tijuana
4 months ago
I remember something about using the `fstab` file to set up automatic mounting, but I'm not sure how to configure the timeout for unmounting.
upvoted 0 times
...

Save Cancel