mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 18:55:41 +02:00
37 lines
481 B
Markdown
37 lines
481 B
Markdown
# fdisk
|
|
|
|
> Manage partition tables and partitions on a hard disk.
|
|
> See also: `partprobe`.
|
|
> More information: <https://manned.org/fdisk>.
|
|
|
|
- List partitions:
|
|
|
|
`sudo fdisk {{[-l|--list]}}`
|
|
|
|
- Start the partition manipulator:
|
|
|
|
`sudo fdisk {{/dev/sdX}}`
|
|
|
|
- Create a [n]ew partition:
|
|
|
|
`<n>`
|
|
|
|
- Select a partition to [d]elete:
|
|
|
|
`<d>`
|
|
|
|
- View the [p]artition table:
|
|
|
|
`<p>`
|
|
|
|
- [w]rite the changes made:
|
|
|
|
`<w>`
|
|
|
|
- Discard the changes made and [q]uit:
|
|
|
|
`<q>`
|
|
|
|
- Open a help [m]enu:
|
|
|
|
`<m>`
|