LX0-104 · Question #82
When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?
The correct answer is B. lsof. When a device cannot be unmounted because it is busy, the lsof command is used to list open files and the processes holding them, identifying what is preventing the unmount.
Question
Options
- Adebug
- Blsof
- Cnessus
- Dstrace
- Etraceroute
How the community answered
(26 responses)- B88% (23)
- D4% (1)
- E8% (2)
Why each option
When a device cannot be unmounted because it is busy, the `lsof` command is used to list open files and the processes holding them, identifying what is preventing the unmount.
`debug` is a general term for troubleshooting, not a specific command to find processes holding open files.
The `lsof` (list open files) command can show which processes have files open on a particular filesystem or device, making it an ideal tool to identify why a device is 'busy' and cannot be unmounted.
`nessus` is a vulnerability scanner, unrelated to identifying processes holding open files on a device.
`strace` traces system calls and signals of a process, not used to find processes holding a device busy.
`traceroute` maps the path of IP packets across a network, unrelated to local device usage.
Concept tested: Identifying processes using a device
Source: https://man7.org/linux/man-pages/man8/lsof.8.html
Topics
Community Discussion
No community discussion yet for this question.