Disk Space on my BeagleBone Black's MicroSD

3,755 views
Skip to first unread message

Wasabi Fan

unread,
Aug 27, 2013, 11:45:16 PM8/27/13
to beagl...@googlegroups.com
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?

Robert Nelson

unread,
Aug 28, 2013, 8:43:22 AM8/28/13
to Beagle Board
Probably just mis-partitioned, what does "df -h" & "lsblk" show..

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Wasabi Fan

unread,
Aug 28, 2013, 1:59:58 PM8/28/13
to beagl...@googlegroups.com
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.

Robert Nelson

unread,
Aug 28, 2013, 2:08:14 PM8/28/13
to Beagle Board
Well not sure where the "25.6 GB" came from, but you only using 2GB of
your 8GB microSD card..

Wasabi Fan

unread,
Aug 28, 2013, 2:22:53 PM8/28/13
to beagl...@googlegroups.com
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?

Robert Nelson

unread,
Aug 28, 2013, 2:34:56 PM8/28/13
to Beagle Board
On Wed, Aug 28, 2013 at 1:22 PM, Wasabi Fan <junky...@hotmail.com> wrote:
> 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.)

Wasabi Fan

unread,
Aug 28, 2013, 3:40:04 PM8/28/13
to beagl...@googlegroups.com
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. 

garyamort

unread,
Aug 28, 2013, 4:20:12 PM8/28/13
to beagl...@googlegroups.com


On Wednesday, August 28, 2013 3:40:04 PM UTC-4, Wasabi Fan wrote:
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.

Wasabi Fan

unread,
Aug 28, 2013, 4:32:58 PM8/28/13
to beagl...@googlegroups.com
I had actually done that when I installed Debian. I guess I did something wrong, because running through it again fixed it... Thanks!
Reply all
Reply to author
Forward
0 new messages