No space on left device

39 views
Skip to first unread message

Ichrak Mansour

unread,
Aug 10, 2018, 1:42:33 PM8/10/18
to BeagleBoard
Hello,

I am newbie, I use the version buster of my BeagleBone and when I run my application on it, I get "no space on left device" 

How can I fix that please ? 

Jim Fell

unread,
Feb 13, 2019, 2:39:54 PM2/13/19
to BeagleBoard
I ran into this problem.  I was able to fix it by re-imaging the BeagleBone Black.


The "IoT" image (without graphical desktop) is probably what you want.  It uses less space, and you'll need to get used to using a terminal emulator, like PuTTY, to run everything from the command line.

Tarmo Kuuse

unread,
Feb 14, 2019, 3:55:14 AM2/14/19
to BeagleBoard
Hi Ichrak,
To diagnose the state of your disk space there are two basic tools. 

1. To get an overview of what's going on with your storage, "df -h" tells how big is each mounted file system and how much of it is used.
2. To dig into specific directories, "sudo du -hs /dir" will tell you how much storage space is used by files in directory /dir. 

You can run snippets such as this to understand what exactly is consuming space in directory /dir "sudo find /dir -maxdepth 1 -exec du -hs {} \;"

Anyway, do mind where your application writes data - some filesystems such as /tmp and /var/tmp are mounted as tmpfs (i.e. ramdisks) with rather small size.

To have a look at installed packages and their disk usage, I have found this command to be useful: "dpkg-query -W -f '${Installed-Size} ${Package}\n' | sort -n"

--
Kind regards,
Tarmo

Mark A. Yoder

unread,
Feb 14, 2019, 9:53:20 AM2/14/19
to BeagleBoard
If your SD is bigger than 4G try:

bone$ /opt/scripts/tools/grow_partition.sh

The default images are for a 4G card.  If your card is bigger you need to grow your partition for the bigger card.

--Mark
Reply all
Reply to author
Forward
0 new messages