Parted: Difference between revisions

From Newroco Tech Docs
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 4: Line 4:
  mklabel gpt
  mklabel gpt
Then create the partitions you need. Unless you have specific partitioning requirements, the most common partition set is single partition using all available space:
Then create the partitions you need. Unless you have specific partitioning requirements, the most common partition set is single partition using all available space:
  mkpart primary ext4 0% 100% <clippy show="true">TextToCopy</clippy>
  mkpart primary ext4 0% 100%
Where you would commonly use ext4, but might use btrfs or zfs etc. depending on your need.
Where you would commonly use ext4, but might use btrfs or zfs etc. depending on your need.
  help mkpart
  help mkpart

Latest revision as of 09:34, 16 April 2020

Assuming you are starting with an empty disk (whether physical, virtual or presented via iscsi), when you run

parted /dev/devicename

You need to make a partition table aka label; this would generally be a GPT one unless you have specific other needs:

mklabel gpt

Then create the partitions you need. Unless you have specific partitioning requirements, the most common partition set is single partition using all available space:

mkpart primary ext4 0% 100%

Where you would commonly use ext4, but might use btrfs or zfs etc. depending on your need.

help mkpart

will give you all the options available.

To complete the process, just

quit

For more options, while in parted just type

help