CompTIA Linux+ (XK0-006)System ManagementMedium
A technician is preparing a new 4TB SSD for use and runs 'parted /dev/sdb mkpart primary ext4 0% 100%'. To ensure the partition is created with optimal alignment for SSD performance, which parted invocation should the technician use?
- Aparted -a none /dev/sdb mkpart primary ext4 0% 100%
- Bparted -s /dev/sdb print free
- Cparted /dev/sdb align-check minimal 1
- Dparted -a optimal /dev/sdb mkpart primary ext4 0% 100%
Show answer & explanationAnswer & explanation
Correct answer: D. parted -a optimal /dev/sdb mkpart primary ext4 0% 100%
The '-a optimal' flag tells parted to align new partitions according to the device's reported optimal I/O size, improving SSD performance. '-a none' disables alignment, 'align-check' only verifies existing alignment, and 'print free' just displays free space without creating or aligning a partition.
Why the other options are wrong
- A. Explicitly disables alignment, which is the opposite of the goal.
- B. Only lists free space; does not create or align anything.
- C. Checks alignment of an existing partition rather than creating one.
parted -a optimal
parted alignment flag that creates partitions aligned to the device's optimal I/O size, improving performance on SSDs.
- Alignment options: none, cylinder, minimal, optimal
- Misalignment can cause read-modify-write penalties on SSDs
- align-check verifies alignment of existing partitions
Memory trick: Optimal alignment keeps SSD blocks lined up like soldiers.