Extend Partition: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "To extend the size of a partition for CentOS. This only works if it is the last partition in the list. This can be accomplished for standard or extended partitions.<br><br> De..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To extend the size of a partition for CentOS. This only works if it is the last partition in the list. This can be accomplished for standard or extended partitions.<br><br>
To extend the size of a partition for CentOS. This only works if it is the last partition in the list. This can be accomplished for standard or extended partitions.<br><br>
Delete the partition and then re-create but make sure the starting point is the same.
Delete the partition and then re-create but make sure the starting point is the same.
If a GPT disk move the GPT Header to the end of the disk.
<pre>
gdisk /dev/sda
x – Enter the expert menu.
e – Relocate the GPT header to the end of the disk.
m – return to the previous menu.
</pre>


<pre>
<pre>
Line 6: Line 15:
</pre>
</pre>


or
or depending on your partition type.


<pre>
<pre>
resize2fs /dev/sda5
</pre>
</pre>


[[Category : CentOS]]
[[Category : CentOS]]

Latest revision as of 08:39, 7 August 2018

To extend the size of a partition for CentOS. This only works if it is the last partition in the list. This can be accomplished for standard or extended partitions.

Delete the partition and then re-create but make sure the starting point is the same.

If a GPT disk move the GPT Header to the end of the disk.


gdisk /dev/sda
x – Enter the expert menu.
e – Relocate the GPT header to the end of the disk.
m – return to the previous menu.
xfs_growfs /dev/sda5

or depending on your partition type.

resize2fs /dev/sda5