I am running Ubuntu 22.04 via VirtualBox from win11. Recently I had to extend the space allocated for the machine. I did that using gparted
util. It was fine for a while but now I am getting warnings about disk space being full.
There is no way my data are 100GB. Disk manager shows disk full but when it counts data, its only 30GB (although in the preview it is full - see screenshots).
I tried sudo resize2fs /dev/sda5
but it says: there is nothing to do.
Here is gparted screen:
Here are outputs of several tools:
df -h
:
FileSystem Size Used Free Use% Mounted totmpfs 676M 1,5M 675M 1% /run/dev/sda5 97G 92G 329M 100% /tmpfs 3,4G 0 3,4G 0% /dev/shmtmpfs 5,0M 4,0K 5,0M 1% /run/locktmpfs 3,4G 0 3,4G 0% /run/qemu/dev/sda1 511M 4,0K 511M 1% /boot/efiShared 953G 416G 538G 44% /media/sf_Sharedtmpfs 676M 108K 676M 1% /run/user/1000/dev/sr0 59M 59M 0 100% /media/user/VBox_GAs_6.1.342
parted /dev/sda print free
:
Model: ATA VBOX HARDDISK (scsi)Disk /dev/sda: 106GBSector size (logical/physical): 512B/512BVolume table: msdosDisk Flags: Number Start End Size Type FileSystem switch 1024B 1049kB 1048kB Free space 1 1049kB 538MB 537MB primary fat32 boot 538MB 539MB 1048kB Free space 2 539MB 106GB 106GB extended 5 539MB 106GB 106GB logical ext4 106GB 106GB 1049kB Free space
lsblk
:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTSloop0 7:0 0 4K 1 loop /snap/bare/5loop1 7:1 0 63,9M 1 loop /snap/core20/2105loop2 7:2 0 63,9M 1 loop /snap/core20/2182loop3 7:3 0 74,1M 1 loop /snap/core22/1033loop4 7:4 0 73,9M 1 loop /snap/core22/864loop5 7:5 0 262,5M 1 loop /snap/firefox/3779loop6 7:6 0 266,6M 1 loop /snap/firefox/3836loop7 7:7 0 349,7M 1 loop /snap/gnome-3-38-2004/143loop8 7:8 0 497M 1 loop /snap/gnome-42-2204/141loop9 7:9 0 91,7M 1 loop /snap/gtk-common-themes/1535loop11 7:11 0 40,4M 1 loop /snap/snapd/20671loop12 7:12 0 452K 1 loop /snap/snapd-desktop-integration/83loop13 7:13 0 39,1M 1 loop /snap/snapd/21184sda 8:0 0 99,1G 0 disk ├─sda1 8:1 0 512M 0 part /boot/efi├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 98,6G 0 part /var/snap/firefox/common/host-hunspell /sr0 11:0 1 58,7M 0 rom /media/user/VBox_GAs_6.1.342
Do you have any idea why the free space is not available (marked as used)?