BUG BeagleBone Black: Status not showing free disk space

voipRookie

Member
Joined
Oct 17, 2010
Messages
90
Reaction score
9
I just got my BeagleBone Black with a 16GB microSD setup and I noticed the status command is not displaying a value for free disk space.

NoFreeSpace.JPG

I made the following change to /usr/bin/status so the amount of free disk space will be displayed. I replaced all off these lines:

Code:
DISK=`df -h | grep -m 2 ^ | tail -1 | cut -f 8 -d " "`
if [ -z "$DISK" ]; then
DISK=" `df -h | grep -m 2 ^ | tail -1 | cut -f 7 -d " "`"
fi

with this line:

Code:
DISK=`df -h | grep -m 2 ^ | tail -1 | awk -F' ' '{print $4}'`

After this change, the status command shows the amount of free disk space.

FreeDiskSpace.JPG

I have no idea if this change will also work on Raspberry PI or with other sizes of disks so, YMMV.
 
I noticed on mine that if I ran "./status" it doesn't show the disk info, but if I run "status" it does show disk info. weird.
 
There are two different versions of the status script on my Beaglebone also (/usr/bin and /root). Neither of which would display the amount of free disk space available.
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top