Disk Space on my BeagleBone Black's MicroSD

Hi,
I am running Debian with an LXDE desktop on my BBB with an 8GB MicroSD card. I was attempting to download a (200 MB) file, when I was alerted to the fact that, somehow, there was not enough space on the SD card. I went to the fs root (’/’) in file explorer and selected properties from the right-click menu. The menu says:

Total Size of Files: 3.0 GB
Size on Disk: 25.6 GB

Is that normal? If so, why? I know for a fact that it could not be storing 25 GB of data, and if it is only utilizing 3, there should be 5 GB of free space. What is happening, and why is there not enough space?

Probably just mis-partitioned, what does "df -h" & "lsblk" show..

Regards,

Here is the output from that:
debian@debian-armhf:~$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 1.8G 1.7G 31M 99% /
/dev/root 1.8G 1.7G 31M 99% /
devtmpfs 248M 0 248M 0% /dev
tmpfs 50M 600K 49M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 100M 0 100M 0% /run/shm
/dev/mmcblk0p1 1004K 472K 532K 48% /boot/uboot
/dev/mmcblk1p1 70M 54M 16M 78% /media/BEAGLEBONE
/dev/mmcblk1p2 1.7G 1.3G 323M 80% /media/Angstrom
debian@debian-armhf:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1boot0 179:16 0 1M 1 disk
mmcblk1boot1 179:24 0 1M 1 disk
mmcblk0 179:0 0 7.4G 0 disk
├─mmcblk0p1 179:1 0 1M 0 part /boot/uboot
└─mmcblk0p2 179:2 0 1.8G 0 part /
mmcblk1 179:8 0 1.8G 0 disk
├─mmcblk1p1 179:9 0 70.6M 0 part /media/BEAGLEBONE
└─mmcblk1p2 179:10 0 1.7G 0 part /media/Angstrom

After seeing this, I think I am starting to understand the problem… I still don’t have enough experience with Linux to fully understand or fix it.

Well not sure where the "25.6 GB" came from, but you only using 2GB of
your 8GB microSD card..

Regards,

Where does it say that? Is that rootfs, /dev/root, or a different one? I see that one of the listings says 1.7 out of 1.8… does that mean that my main partition is only 1.8 GB big?

mmcblk0 179:0 0 7.4G 0 disk
(8GB disk)

mmcblk0p2 179:2 0 1.8G 0 part /
only 1.8G used on the main partition (other partition is just bootloader.)

Regards,

Ok… this is starting to make some sense.
Is there a way to figure out how much space is free in mmcblk0p2? I really just need to be able to figure out if that main partition is at full size (~8G) or if it is smaller for some reason.

It is smaller:

mmcblk0p2 179:2 0 1.8G 0 part /

It is 1.8G large.

It is also almost full:
rootfs 1.8G 1.7G 31M 99% /

31M left, 99% used.

See http://circuitco.com/support/index.php?title=Expanding_File_System_Partition_On_A_microSD for how to expand that partition to fill the rest of the disk space.

I had actually done that when I installed Debian. I guess I did something wrong, because running through it again fixed it… Thanks!

The best way to “expand the partition /”
sudo /opt/scripts/tools/grow_partition.sh

sudo reboot now