XK0-005 · Question #66
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
The correct answer is B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/. D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup. When using udev, the /dev/ directory is mounted as a tmpfs filesystem at system startup, and custom rules can be added to /etc/udev/rules.d/ to manage device creation.
Question
What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)
Options
- AEntries for all possible devices get created on boot even if those devices are not connected.
- BAdditional rules for udev can be created by adding them to /etc/udev/rules.d/.
- CWhen using udev, it is not possible to create block or character devices in /dev/ using mknod.
- DThe /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.
- EThe content of /dev/ is stored in /etc/udev/dev and is restored during system startup.
How the community answered
(16 responses)- A6% (1)
- B88% (14)
- E6% (1)
Why each option
When using udev, the `/dev/` directory is mounted as a tmpfs filesystem at system startup, and custom rules can be added to `/etc/udev/rules.d/` to manage device creation.
`udev` dynamically creates device nodes only for devices that are currently detected and connected to the system, not for all possible devices upfront.
Additional rules for `udev` to control device node creation and attributes can be placed in files within the `/etc/udev/rules.d/` directory.
While `udev` automates device node creation, it is still technically possible to manually create block or character device files in `/dev/` using the `mknod` command, although it's generally not recommended when `udev` is active.
The `/dev/` directory is typically mounted as a `tmpfs` (a RAM-based filesystem) by `udev` during system startup, allowing for dynamic creation and removal of device nodes as hardware is connected or disconnected.
The content of `/dev/` is dynamically generated by `udev` at boot and runtime; it is not stored persistently in `/etc/udev/dev` and restored.
Concept tested: udev device management
Source: https://www.freedesktop.org/software/systemd/man/udev.html
Topics
Community Discussion
No community discussion yet for this question.