Score:0

Problems with re-sizing a partition in 20.04

ga flag

I'm running an Ubuntu 20.04 LTS VM in Hyper-V. I recently resized a VHDX disk from 15GB to 100GB. Then I tried to use parted and resizepart 1 100%. After that nothing had really change.

df -h:

Filesystem      Size  Used Avail Use% Mounted on
udev            3,9G     0  3,9G   0% /dev
tmpfs           790M  1,5M  789M   1% /run
/dev/sda1        12G  9,9G  1,6G  87% /
tmpfs           3,9G     0  3,9G   0% /dev/shm
tmpfs           5,0M     0  5,0M   0% /run/lock
tmpfs           3,9G     0  3,9G   0% /sys/fs/cgroup
/dev/loop0      128K  128K     0 100% /snap/bare/5
/dev/loop1       56M   56M     0 100% /snap/core18/2721
/dev/loop2       62M   62M     0 100% /snap/core20/1518
/dev/loop3       64M   64M     0 100% /snap/core20/1852
/dev/loop7       92M   92M     0 100% /snap/gtk-common-themes/1535
/dev/loop6       82M   82M     0 100% /snap/gtk-common-themes/1534
/dev/loop4      255M  255M     0 100% /snap/gnome-3-38-2004/106
/dev/loop5      350M  350M     0 100% /snap/gnome-3-38-2004/137
/dev/loop8      263M  263M     0 100% /snap/nextcloud/33908
/dev/loop9       55M   55M     0 100% /snap/snap-store/558
/dev/loop11      50M   50M     0 100% /snap/snapd/18596
/dev/loop10      46M   46M     0 100% /snap/snap-store/638
/dev/sda15      105M  5,2M  100M   5% /boot/efi
tmpfs           790M   20K  790M   1% /run/user/125
tmpfs           790M   28K  790M   1% /run/user/1000

Disks app shows that my ext4 is 100GB

I'm stuck. I have no idea what to do next:/ Thank you in advance!

Score:1
br flag

I saw the filesystem in the picture: ext4

To resize the filesystem to fit the partition size you need to run resize2fs (see man resize2fs for details).

From the infos of the question, this should do the job. If not, check manpage.

sudo resize2fs /dev/sda1
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.