Resize Partition with parted

If you ever wanted to resize a partition to grow unfilled space, you can use parted to grow the partition size.

parted /dev/sdx 


parted /dev/mmcblk0


Now note the size of the disk and the start of the partition that you want to resize.

rm <n> n=partition that you want to delete


Partition Type ? primary/extended ? primary
Filesystem type? [ext2]? ext4
start ? startSizeMb/GB
End? endSizeMb/GB

reboot (may not be necessary)
resize2fs /dev/sdx

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.