full disk space

370 views
Skip to first unread message

erikb...@gmail.com

unread,
Feb 28, 2019, 7:37:22 AM2/28/19
to BeagleBoard
Hello yall, sorry if i double post.
Could not find my first post before.

My beaglebone black /dev partition is almost full when having a fresh installation
Is 3.3/3.5GB full normal?

When trying to upgrade with "sudo apt-get upgrade"i get disk full errors


debian@beaglebone:~$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk1      179:0    0  3.6G  0 disk
└─mmcblk1p1  179:1    0  3.6G  0 part /
mmcblk1boot0 179:8    0    2M  1 disk
mmcblk1boot1 179:16   0    2M  1 disk
mmcblk1rpmb  179:24   0  128K  0 disk


debian@beaglebone:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            215M     0  215M   0% /dev
tmpfs            49M  5.5M   43M  12% /run
/dev/mmcblk1p1  3.5G  3.2G  116M  97% /
tmpfs           242M     0  242M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           242M     0  242M   0% /sys/fs/cgroup
tmpfs            49M  4.0K   49M   1% /run/user/1000

Am i doing something wrong?
Erik

Tarmo Kuuse

unread,
Feb 28, 2019, 8:19:26 AM2/28/19
to BeagleBoard
Hi Erik,


On Thursday, 28 February 2019 14:37:22 UTC+2, erikb...@gmail.com wrote:
My beaglebone black /dev partition is almost full when having a fresh installation
Is 3.3/3.5GB full normal?

Most people call it the root partition. Anyway, a fresh installation of what, exactly? 

You're always free to remove stuff you don't need. For example - 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 Kuuse 

Mark A. Yoder

unread,
Feb 28, 2019, 9:36:01 AM2/28/19
to BeagleBoard
Erik:
  Are you booting off the eMMc, or and SD card?  If an SD card, how big is it?  If it's greater than 4G, you need to grow the partition on it.  Try:

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

After rebooting you should see the whole SD card.

--Mark

erikb...@gmail.com

unread,
Feb 28, 2019, 11:00:46 AM2/28/19
to BeagleBoard
Hello Tarmo,

thanks for the reply, im a newby at linux. ill try to refer to it as root partition from now on.

I flashed the image found from the beaglebones website.


Do you know any alternatives? more cleaner images?

Thanks in advance,
Erik

erikb...@gmail.com

unread,
Feb 28, 2019, 11:00:54 AM2/28/19
to BeagleBoard
From what i can see the image just takes up 96% of the entire disk.
The image determins the partition spaces, and is copied over to eMMc

The sd card i was using is 8GB, and could grow the partition on the sd card, but would like to use the eMMc for the partition(too many failed sd cards on the raspberry pi)
I just found it odd that the official image from beaglebone leaves 200mb free for the user. This means i cant even update it. 

thanks for the reply, im learning allot about linux :)

Dennis Lee Bieber

unread,
Feb 28, 2019, 1:28:08 PM2/28/19
to beagl...@googlegroups.com
On Thu, 28 Feb 2019 03:15:15 -0800 (PST),
erikb...@gmail.com declaimed the
following:

>debian@beaglebone:~$ lsblk
>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>mmcblk1 179:0 0 3.6G 0 disk
>??mmcblk1p1 179:1 0 3.6G 0 part /
>mmcblk1boot0 179:8 0 2M 1 disk
>mmcblk1boot1 179:16 0 2M 1 disk
>mmcblk1rpmb 179:24 0 128K 0 disk
>
>
>debian@beaglebone:~$ df -h
>Filesystem Size Used Avail Use% Mounted on
>udev 215M 0 215M 0% /dev
>tmpfs 49M 5.5M 43M 12% /run
>/dev/mmcblk1p1 3.5G 3.2G 116M 97% /
>tmpfs 242M 0 242M 0% /dev/shm
>tmpfs 5.0M 4.0K 5.0M 1% /run/lock
>tmpfs 242M 0 242M 0% /sys/fs/cgroup
>tmpfs 49M 4.0K 49M 1% /run/user/1000
>
>Am i doing something wrong?

Well, the LXQT image I have installed shows

debian@beaglebone:~$ uname -a
Linux beaglebone 4.14.49-ti-r54 #1 SMP PREEMPT Fri Jun 15 22:14:13 UTC 2018
armv7l GNU/Linux
debian@beaglebone:~$

debian@beaglebone:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk1 179:0 0 3.7G 0 disk
+-mmcblk1p1 179:1 0 3.7G 0 part /
mmcblk1boot0 179:8 0 1M 1 disk
mmcblk1boot1 179:16 0 1M 1 disk
mmcblk1rpmb 179:24 0 128K 0 disk

debian@beaglebone:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 216M 0 216M 0% /dev
tmpfs 49M 5.2M 44M 11% /run
/dev/mmcblk1p1 3.6G 2.9G 455M 87% /
tmpfs 242M 0 242M 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 242M 0 242M 0% /sys/fs/cgroup
tmpfs 49M 0 49M 0% /run/user/1000
debian@beaglebone:~$

I'd have expected the IoT build to have more free space than the LXQT.
After all, the compressed download IoT file is half the size of the
download LXQT file. I do note that my eMMC shows up as 3.7G, not 3.6G (so
there's 100M <G>).

No problem running apt-get update/apt-get upgrade on this system.

I've never tried flashing the eMMC using an expanded SD card. If that
is safe, I'd suggest writing the image to the SD card, expand the
partition, do the update/upgrade on the SD card, and THEN convert the card
to flash mode, to update the eMMC -- that might handle the situation where
the initial upgrade needs tons of files (the current cycle I'm running
fetched 102MB -- so upgrading often after the main upgrade may not pull as
many files).




--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Tarmo Kuuse

unread,
Mar 2, 2019, 5:33:45 AM3/2/19
to BeagleBoard
Hi Erik,


On Thursday, 28 February 2019 18:00:46 UTC+2, erikb...@gmail.com wrote:
thanks for the reply, im a newby at linux. ill try to refer to it as root partition from now on.

I flashed the image found from the beaglebones website.


Do you know any alternatives? more cleaner images?

This is the "iot" variant which comes with an assortment of development tools pre-installed. Some of those seem rather specific (don't know the details, sorry) so there's a good chance you wouldn't need them all. You could uninstall those one by one, or you could begin fresh with a "console" image which has almost nothing added the base OS and install whatever packages are relevant. The corresponding image from the 2018-10-07 release would be this one:

You could also poke around here and pick out something a little fresher (some are more experimental than others, the "keepers" file is a good source of hints as to which release to choose)

--
Kind regards,
Tarmo
Reply all
Reply to author
Forward
0 new messages