Files
cheatsheet-tldr/tldr/linux/pvcreate
2025-11-16 00:22:19 +00:00

19 lines
425 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pvcreate
> Initialize a disk or partition for use as a physical volume.
> See also: `lvm`.
> More information: <https://manned.org/pvcreate>.
- Initialize the `/dev/sda1` volume for use by LVM:
`sudo pvcreate {{/dev/sdXY}}`
- Force the creation without any confirmation prompts:
`sudo pvcreate {{[-f|--force]}} {{/dev/sdXY}}`