Initialize the empty partition /dev/sdb1 as an LVM physical volume.
The target device has already been verified.
Which command is appropriate?
pvcreate DEVICE writes LVM metadata to initialize a physical volume. It can overwrite existing signatures or data, so target confirmation is essential.
Detailed explanation
lspciCorrect. pvcreate /dev/sdb1 initializes the partition as a PV.
Correct. pvcreate /dev/sdb1 initializes the partition as a PV.
lsmodIncorrect. vgcreate needs a VG name and initialized PVs.
Incorrect. vgcreate needs a VG name and initialized PVs.
lsusbIncorrect. lvcreate allocates an LV from a VG.
Incorrect. lvcreate allocates an LV from a VG.
insmodIncorrect. pvs only queries existing PVs.
Incorrect. pvs only queries existing PVs.
Try it yourself
An example you can run in a temporary verification environment.
lsusb | sed -n '1,6p'Expected result
Bus NNN Device NNN: ID vendor:product description形式Key points
- pvcreate initializes a PV
- It changes device metadata
- Confirm the exact target
Notes
- Environment: usbutils lsusb / 読み取り操作
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.