CompTIA Linux+ (XK0-006)System ManagementMedium

A technician is using the interactive fdisk utility on /dev/sdb to prepare a new physical volume for LVM. After creating the partition with 'n', which fdisk command is used to change the partition's system ID to 'Linux LVM' (8e) before writing the changes?

  1. At
  2. Bl
  3. Cp
  4. Dw
Show answer & explanation

Correct answer: A. t

Within fdisk's interactive menu, 't' changes the partition's hex system ID/type. 'p' prints the current table, 'w' writes the changes to disk, and 'l' lists all known partition type codes.

Why the other options are wrong

  • B. Lists known type codes for reference, but does not apply one.
  • C. Prints the current partition table; does not change type.
  • D. Writes changes to disk; must be run after setting the type.

fdisk partition type change

Within fdisk's interactive menu, 't' sets or changes the hex system ID of a partition, such as 8e for Linux LVM.

  • 'n' creates a new partition
  • 't' changes partition type code (e.g., 8e=Linux LVM)
  • 'w' writes changes and exits
  • 'l' lists all type codes

Memory trick: Type comes before Write: set the Tag then Write it

More System Management questions