debian parted resizepart in gpt

This commit is contained in:
pedrolab 2020-06-29 01:18:28 +02:00
parent dfeae4f146
commit 5cbac53413

View file

@ -252,7 +252,7 @@ resize disk when is a root partition at /dev/sda1
parted /dev/sda resizepart 1 Yes 100%
#alternatively
#parted /dev/sda resizepart 1 Yes -1
# if gpt, it would be `parted /dev/sda resizepart 2 Yes 100%`
# if gpt, try `parted /dev/sda resizepart Fix 2 Yes 100%` if it's already fixed (`Error: Expecting a partition number.`), do `parted /dev/sda resizepart 2 Yes 100%`
#partition part
xfs_growfs / # or resize2fs for ext4
# if it says `xfs_growfs: /dev/vsa is not a mounted XFS filesystem` do `xfs_growsfs /` (or your paritition target)