Space usage wrong


my Ubuntu 20.04.2 LTS shows the wrong memory location. The system is allocated 64 GB, but it shows only 19.56 GB.

After login it shows:

Usage of /: 61.1% of 19.56GB

With fdisk -l you get

Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 2101247 2097152 1G Linux filesystem
/dev/sda3 2101248 134215679 132114432 63G Linux filesystem

Disk /dev/mapper/ubuntu–vg-ubuntu–lv: 20 GiB, 21474836480 bytes, 41943040 sectors

What I need to do without compromising my installation?

Perhabs try this:

Or you’d go with the LVM way as it behaves differently:

1 Like

Thank you. I found this here How to resize an Ubuntu 18.04/20.04 LVM disk | Vander Host

If anyone else needs it. This woked for me.

# df -h
	/dev/mapper/ubuntu--vg-ubuntu--lv   20G   11G  8,0G  57% /
# parted
	(parted) resizepart
	Partition number? 3
	(parted) quit
# pvresize /dev/sda3
	1 physical volume(s) resized or updated 
# lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
	Size of logical volume ubuntu-vg/ubuntu-lv changed from 20,00 GiB (5120 extents) to <34,00 GiB (8703 extents).
	Logical volume ubuntu-vg/ubuntu-lv successfully resized.
# resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
	resize2fs 1.45.5 (07-Jan-2020)
	Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required
	old_desc_blocks = 3, new_desc_blocks = 5
	The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 8911872 (4k) blocks long.
# df -h
	/dev/mapper/ubuntu--vg-ubuntu--lv   34G   11G   22G  34% /
1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.