Which file contains information about partitions the OS is reading?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which file contains information about partitions the OS is reading?

Explanation:
The file that represents the kernel’s view of the disks and their partitions is /proc/partitions. It lists the partitions the OS has discovered, including details like major/minor numbers, size, and device name, reflecting what the kernel reads from the storage devices. The other files serve different purposes: /proc/mounts shows what is currently mounted and where; /proc/swaps lists active swap areas; and /etc/fstab is a static configuration that tells the system what to mount at boot. So /proc/partitions is the one that directly contains information about the partitions the OS is reading.

The file that represents the kernel’s view of the disks and their partitions is /proc/partitions. It lists the partitions the OS has discovered, including details like major/minor numbers, size, and device name, reflecting what the kernel reads from the storage devices. The other files serve different purposes: /proc/mounts shows what is currently mounted and where; /proc/swaps lists active swap areas; and /etc/fstab is a static configuration that tells the system what to mount at boot. So /proc/partitions is the one that directly contains information about the partitions the OS is reading.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy