You need to recreate the partition so that you can allocate the new space.
- List partition info with "sudo fdisk /dev/sda1"
- Use command "p" to list partition info. Take note of the partition number you want to modify and its starting unit/sector.
- Use command "d" to alter the partition table. Your data is not being deleted.
- Select the partition number you want to modify. Again, this is modifying the partition table info and not your data.
- Use command "p" to verify your partition is gone
- Use command "n" to create a new partition
- Select "p" for a primary partition
- Select the partition number you want to create. This should be the same number you removed.
- Set your starting unit/sector. The default should be good, but compare to the number from step 2.
- Set your end unit/sector. The default should be good.
- After entering the end unit/sector your new partition size should be displayed. Make sure this is correct.
- Use command "w" to write the changes back to the partition table
- Reboot and log back in
- Resize the partition with "sudo resize2fs /dev/sda1"
- Verify with "df -h"