debian parted resizepart in gpt
This commit is contained in:
parent
dfeae4f146
commit
5cbac53413
|
@ -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)
|
||||
|
|
Reference in a new issue