I followed these steps:
- Download Raspbian Buster Lite from this page.
- Used balenaEtcher to flash it on an 64 GB SD card.
- Turned the Raspberry Pi on.
- Ran
df -h
which printed
Filesystem Size Used Avail Use% Mounted on
/dev/root 59G 1.3G 55G 3% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 8.5M 1.9G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 54M 199M 22% /boot
tmpfs 391M 0 391M 0% /run/user/1000
- Ran
sudo raspi-config
and selected7 Advanced Options
>A1 Expand Filesystem
. - Rebooted.
- Ran
df -h
again, which printed the same thing.
Does this mean that Raspbian automatically expanded the filesystem?
df
is really a misnomer if considered as "disk free", it should really bepf
, "partition free". It reports the size and use of partitions, not storage devices.