OnCallReadyStart learning

growpart: extend a partition in a partition table to fill available space

growpart [options] DISK PARTITION-NUMBER

Options you will use

-N, --dry-run
only report what would be done
-u, --update auto|force|off
tell the kernel about the new size (auto: when the partition is in use)
-v, --verbose
more output
--fudge BYTES
do nothing if the partition would grow by less than this (default 1 MiB)

Examples

$ sudo growpart /dev/nvme0n1 1

grow partition 1 to the end of the disk

$ sudo resize2fs /dev/nvme0n1p1

then grow the ext4 file system on it

Gotchas

Try growpart in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.