Code: Select all
root@ganymede:~# parted /dev/sdc
(parted) print # display the partition table, available devices, free space, all found partitions, or a particular partition
...
(parted) mklabel gpt # create a new disklabel (partition table)
...
(parted) print free # Check free space and existing partitions
...
(parted) mkpart rm4 2048s 100% # create a partition w/ name "rm4" accross 100% of the total disk capacity
...
Code: Select all
root@ganymede:~# mkfs.ext4 /dev/sdc1 # make filesystem (ext4)
...
https://rainbow.chard.org/2013/01/30/ho ... ng-parted/
Code: Select all
root@ganymede:~# e2fsck -f /dev/sdc1 # check filesystem before resize operation
...
Code: Select all
root@ganymede:~# resize2fs /dev/sdc1 # resize to full partition size
...