Including the unallocated space to the Ubuntu root partition would require 1) removing the swap partition, 2) moving the Ubuntu root partition to the front, then 3) expanding the Ubuntu root partition, optionally leaving some space to 4) create a new swap partition.
The problem here is 2). Moving a partition can be a lengthy process, and it may fail. The other operations are a matter of minutes.
Alternatively, you limit yourself to creating a data partition with a linux file system (most commonly ext4
) in the allocated space, and use that partition as extra data storage. In Linux, any storage on different partitions can easily be made available from within the home directory of the user using symbolic links. Symbolic links for daily usage act and feel as regular folders. The user is not aware that, moving into these links, he/she may be redirected to a totally different place in the file system, even on different partition that can be on a different drive.
parted -l
to your question, formatted as code, i.e. with a line consisting of 3 backticks ``` before and after. – HuHa May 13 '21 at 20:43sudo du -hc --max-depth=1
to see sizes. https://askubuntu.com/questions/1013677/storing-data-on-second-hdd-mounting & https://askubuntu.com/questions/1058756/installing-all-applications-on-a-ssd-disk-and-putting-all-files-on-hdd-dis – oldfred May 13 '21 at 21:25