1Z0-106 practice question 9 of 15
As root you configured a file system using AutoFS with default settings. In the first session, you changed to a directory under AutoFS control. In a second session, you changed to /etc. Now the idle time for the session expires. Which two statements are true about the status of the file system mounted in the first session?
Full set: 60 questionsThe AutoFS service automatically mounts a filesystem upon access and is designed to unmount it after a period of inactivity (the idle timeout). In the described scenario, the first session changes its current working directory (CWD) into the AutoFS-managed directory, which triggers the mount. Because the shell process in the first session maintains its CWD within this mounted filesystem, the filesystem is considered "in use" or "busy". The automount daemon will not unmount a busy filesystem, even after the idle timeout expires. The filesystem will only be unmounted after it is no longer busy and the subsequent idle timeout period passes. The "busy" state is released when the process (the shell) either changes its CWD to a location outside the mount point or terminates (e.g., by logging out).
A. AutoFS is specifically designed to unmount idle filesystems to conserve resources; they do not persist for the entire system uptime unless constantly in use.
C. The filesystem cannot be unmounted when the timer expires because the shell's CWD in the first session keeps the resource busy.
D. Actions in a second, unrelated session and directory (/etc) have no impact on the mount status of the filesystem used by the first session.
1. Oracle Linux 8 Documentation
Managing Storage Devices
Chapter 20. Automounting File Systems with AutoFS: The documentation explains the timeout mechanism. While it doesn't explicitly detail the "busy" state in the introductory sections
the underlying umount behavior it relies on prevents unmounting a filesystem that is in use (e.g.
by a process's CWD). The core principle is that unmounting only occurs on idle filesystems.
Reference: Oracle® Linux 8: Managing Storage Devices
Section 20.1
"About AutoFS".
2. autofs(5) Linux man page: This primary source document describes the behavior of the automounter. A key operational principle is that busy filesystems are not unmounted.
Quote: "The automounter will not unmount a filesystem that is in use." A shell's CWD within a mount point defines it as "in use".
3. University of Washington
CSE 451
Introduction to Operating Systems Courseware: Academic materials on Linux/UNIX filesystems corroborate this behavior.
Reference: Lecture notes on Network File Systems often describe AutoFS behavior
stating: "Autofs will not unmount a filesystem if any process has it as its current working directory
or has any open file in it." This directly supports why the filesystem remains mounted in the scenario.
Keep practicing
Take the free 1Z0-106 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 1Z0-106 practice questions
- Question 1Examine this udev device naming rule which gets processed successfully: makefile KERNEL==…
- Question 2Which two statements are true about removing a physical volume (PV) from a volume group (…
- Question 3Which command produces human-readable timestamps in kernel ring buffer messages?
- Question 4Which two statements are true about the configuration and use of cron or anacron?
- Question 5Examine this output: Last metadata expiration check: 4:30:21 ago on Mon 26 Oct 2020 03:09…
- Question 6Which two statements are true about the proc and sys file systems?
