101-500 practice question 15 of 30
After running the command umount /mnt, the following error message is displayed: umount: /mnt: device is busy. What is a common reason for this message?
Full set: 246 questionsThe "device is busy" error (EBUSY) from the umount command indicates that the kernel cannot detach the filesystem because it is actively in use. The most common reason is that a process has a file open on the filesystem or is using a directory on the filesystem as its current working directory. Until all such processes close their files or change their directory, the filesystem cannot be safely unmounted. Tools like lsof or fuser can be used to identify the process(es) holding the filesystem open.
A. The kernel flushes writes during unmount, but this process doesn't typically cause a "device is busy" error; it just takes time.
C. A symbolic link is merely a pointer to a path; its existence does not keep the target filesystem busy or prevent it from being unmounted.
D. The locate database is a separate file; its contents do not keep a filesystem busy after the scanning process (updatedb) has finished.
E. The kernel acts on the current state (e.g., open files), not on predictions about what a process might do in the future.
1. Red Hat Enterprise Linux 8 Documentation, "Managing file systems", Section 2.8. Unmounting a file system. It states: "You cannot unmount a file system if it is busy, for example, if a file is open or a user has their current directory within the file system."
2. umount(8) Linux manual page. It describes the EBUSY error: "filesystem is busy. A process is using the filesystem..."
3. Sobell, M. G. (2018). A Practical Guide to Linux Commands, Editors, and Shell Programming. Pearson Education. Chapter 5, "The Linux Filesystem," discusses the conditions under which a filesystem is considered busy.
Keep practicing
Take the free 101-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 101-500 practice questions
- Question 1Which of the following commands prints a list of available package updates when using RPM…
- Question 2Which of the following commands changes the number of days before the ext3 filesystem on …
- Question 3During a system boot cycle, what program is executed after the BIOS completes its tasks?
- Question 4Which of the following commands reboots the system when using SysV init? (Choose TWO corr…
- Question 5Which of the following commands updates the linker cache of shared libraries?
- Question 6Which of the following commands can be used to create a USB storage media from a disk ima…
