Which command would update the kernel about newly added partitions without rebooting?

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 command would update the kernel about newly added partitions without rebooting?

Explanation:
When you create or modify a disk’s partition table, the kernel may still hold the old view in memory. To make the system recognize newly added partitions without rebooting, you re-read the partition table. The command that does this directly is partprobe. It asks the kernel to probe the specified devices (or all) and refresh its in-memory partition table, so the new partitions appear as usable device nodes and can be mounted or used right away. Rebooting would achieve the same end but is disruptive. The other options aren’t the standard tool for this exact need: updatepart isn’t a common command for refreshing the kernel’s partition table, and while partx can also inform the kernel about partition changes in some contexts, partprobe is the typical, straightforward choice for this scenario.

When you create or modify a disk’s partition table, the kernel may still hold the old view in memory. To make the system recognize newly added partitions without rebooting, you re-read the partition table. The command that does this directly is partprobe. It asks the kernel to probe the specified devices (or all) and refresh its in-memory partition table, so the new partitions appear as usable device nodes and can be mounted or used right away. Rebooting would achieve the same end but is disruptive. The other options aren’t the standard tool for this exact need: updatepart isn’t a common command for refreshing the kernel’s partition table, and while partx can also inform the kernel about partition changes in some contexts, partprobe is the typical, straightforward choice for this scenario.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy