nerdexam
CompTIA

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.

System Management

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)
  • A
    6% (1)
  • B
    88% (14)
  • E
    6% (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.

AEntries for all possible devices get created on boot even if those devices are not connected.

`udev` dynamically creates device nodes only for devices that are currently detected and connected to the system, not for all possible devices upfront.

BAdditional rules for udev can be created by adding them to /etc/udev/rules.d/.Correct

Additional rules for `udev` to control device node creation and attributes can be placed in files within the `/etc/udev/rules.d/` directory.

CWhen using udev, it is not possible to create block or character devices in /dev/ using mknod.

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.

DThe /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.Correct

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.

EThe content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

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

#udev#device management#tmpfs#Linux filesystem

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice