Basically title. I'm running MX Linux from a 32GB live USB. When I run fdisk -l
, I see the following:
[...]
Disk /dev/sda: 29.88 GiB, 32080200192 bytes, 62656641 sectors
Disk model: Flash Drive
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0067f9ad
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 6033541 6031494 2.9G c W95 FAT32 (LBA)
/dev/sda2 6033542 62656618 56623077 27G 83 Linux
[...]
However, with df -lh
, my sda2
is suddenly much smaller:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 2.9G 2.9G 53M 99% /live/boot-dev
/dev/loop0 1.8G 1.8G 0 100% /live/linux
/dev/loop1 474M 417M 29M 94% /live/persist-root
/dev/sda2 474M 417M 29M 94% /
/dev/loop2 201M 164M 23M 88% /home
[...]
Why does this happen and how can I fix it?
fdisk
shows the size of partitions,df
shows the size of filesystems – Jaromanda X Mar 19 '23 at 21:46/dev/sda2
is 27G and df tells you/dev/sda2
is 474M - suggests your sda2 partition is 27G in size, but the filesystem created on it is only 474M – Jaromanda X Mar 20 '23 at 06:20