2018-03-09 08:13:43 +00:00
|
|
|
# fdisk
|
|
|
|
|
|
|
|
> A program for managing partition tables and partitions on a hard disk.
|
2021-06-29 18:25:39 +01:00
|
|
|
> See also: `partprobe`.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/fdisk>.
|
2018-03-09 08:13:43 +00:00
|
|
|
|
|
|
|
- List partitions:
|
|
|
|
|
2021-07-22 13:04:53 +01:00
|
|
|
`sudo fdisk -l`
|
2018-03-09 08:13:43 +00:00
|
|
|
|
|
|
|
- Start the partition manipulator:
|
|
|
|
|
2021-07-22 13:04:53 +01:00
|
|
|
`sudo fdisk {{/dev/sdX}}`
|
|
|
|
|
|
|
|
- Once partitioning a disk, create a partition:
|
|
|
|
|
|
|
|
`n`
|
|
|
|
|
|
|
|
- Once partitioning a disk, select a partition to delete:
|
|
|
|
|
|
|
|
`d`
|
|
|
|
|
|
|
|
- Once partitioning a disk, view the partition table:
|
|
|
|
|
|
|
|
`p`
|
|
|
|
|
|
|
|
- Once partitioning a disk, write the changes made:
|
|
|
|
|
|
|
|
`w`
|
|
|
|
|
|
|
|
- Once partitioning a disk, discard the changes made:
|
|
|
|
|
|
|
|
`q`
|
|
|
|
|
|
|
|
- Once partitioning a disk, open a help menu:
|
|
|
|
|
|
|
|
`m`
|