element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Vision Thing
  • Challenges & Projects
  • Project14
  • Vision Thing
  • More
  • Cancel
Vision Thing
Forum Not enough disk space for apt upgrade on Beaglebone AI
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Vision Thing to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 17 replies
  • Answers 5 answers
  • Subscribers 11 subscribers
  • Views 7060 views
  • Users 0 members are here
Related

Not enough disk space for apt upgrade on Beaglebone AI

weiwei2
weiwei2 over 5 years ago

I face a not enough space left on device after attempting to do sudo apt upgrade on the device.

the same scenario happen if i try to update the cloud9 by pulling by following example in https://beagleboard.org/upgrade 

i also try to follow https://www.hackster.io/175809/tidl-on-beaglebone-ai-1ee263  but all of these will fail at the same 'not enough space scenario'

 

originally i thought the 8GB sd card i use is really insufficient then i change to a much bigger one and realize problem persists....then it must be something wrong

below is my sudo apt update and the subsequent sudo apt upgrade procedure

 

 

debian@beaglebone:/var/lib/cloud9$ sudo apt update

[sudo] password for debian:

Ign:1 http://deb.debian.org/debian stretch InRelease

Get:2 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]

Get:3 http://repos.rcn-ee.com/debian stretch InRelease [3,064 B]                                  

Get:4 http://deb.debian.org/debian-security stretch/updates InRelease [94.3 kB]      

Get:5 http://deb.debian.org/debian stretch Release [118 kB]   

Get:6 http://deb.debian.org/debian stretch Release.gpg [2,365 B]

Get:7 http://deb.debian.org/debian stretch-updates/main armhf Packages [27.3 kB]

Get:8 http://repos.rcn-ee.com/debian stretch/main armhf Packages [1,066 kB]

Get:9 http://deb.debian.org/debian-security stretch/updates/main armhf Packages [484 kB]

Get:10 http://deb.debian.org/debian-security stretch/updates/contrib armhf Packages [1,764 B]

Get:11 http://deb.debian.org/debian-security stretch/updates/non-free armhf Packages [1,272 B]                    

Get:12 http://deb.debian.org/debian stretch/main armhf Packages [6,915 kB]                                              

Get:13 http://deb.debian.org/debian stretch/contrib armhf Packages [42.1 kB]

Get:14 http://deb.debian.org/debian stretch/non-free armhf Packages [59.7 kB]

Fetched 8,906 kB in 17s (511 kB/s)                                                                                                                                                       

Reading package lists... Done

Building dependency tree      

Reading state information... Done

56 packages can be upgraded. Run 'apt list --upgradable' to see them.

debian@beaglebone:/var/lib/cloud9$ sudo apt upgrade

Reading package lists... Done

Building dependency tree      

Reading state information... Done

Calculating upgrade... Done

The following packages have been kept back:

  chromium

The following packages will be upgraded:

  base-files bb-cape-overlays bonescript e2fslibs e2fsprogs gpiod libcomerr2 libcpupower1 libcups2 libexpat1 libexpat1-dev libgd3 libglib2.0-0 libgpiod2 libicu57 libiio-utils libiio0

  libldap-2.4-2 libldap-common libmariadbclient18 libnghttp2-14 libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext libnginx-mod-http-echo libnginx-mod-http-geoip

  libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libpam-systemd libpq5

  libss2 libssl1.0.2 libssl1.1 libsystemd0 libudev-dev libudev1 libxslt1.1 linux-cpupower linux-libc-dev nginx nginx-common nginx-full openssh-client openssh-server openssh-sftp-server

  openssl systemd systemd-sysv tzdata udev unzip usbutils

55 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Need to get 32.0 MB of archives.

After this operation, 194 kB of additional disk space will be used.

E: You don't have enough free space in /var/cache/apt/archives/.

 

subsequently i do a fdisk -l for my very huge sd card after reading about https://www.linuxquestions.org/questions/debian-26/no-space-left-on-device-880308/  but unsure if i can follow it

here's my fdisk output

 

debian@beaglebone:/var/lib/cloud9$ sudo fdisk -l

Disk /dev/mmcblk0: 119.3 GiB, 128043712512 bytes, 250085376 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0xf7146e7c

 

Device         Boot Start     End Sectors  Size Id Type

/dev/mmcblk0p1 *     8192 7372799 7364608  3.5G 83 Linux

 

Disk /dev/mmcblk1: 14.6 GiB, 15678308352 bytes, 30621696 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x209da4b7

 

Device         Boot Start      End  Sectors  Size Id Type

/dev/mmcblk1p1 *     8192 30621695 30613504 14.6G 83 Linux

 

Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

 

Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

debian@beaglebone:/var/lib/cloud9$

  • Sign in to reply
  • Cancel

Top Replies

  • mp2100
    mp2100 over 5 years ago in reply to weiwei2 +3 verified
    Wei, you had an 8 GB card, but the downloaded image is a 4 GB image. You found the manual instructions to expand the image to fill up your 8 GB card. On that page https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD…
  • weiwei2
    weiwei2 over 5 years ago +2 suggested
    i have found this page https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD and follow it. originally, my SD is /dev/mmcblk0p1 8192 7372799 7364608 3.5G 83 Linux after the successful…
  • clem57
    clem57 over 5 years ago +1
    Background: I read somewhere that the BB and probably the BB-AI creates a temporary space in RAM. If this contains your cache ( I bet it does ), that is the problem. To solve this, add a hard/soft link…
Parents
  • weiwei2
    0 weiwei2 over 5 years ago

    i have found this page https://elinux.org/Beagleboard:Expanding_File_System_Partition_On_A_microSD  and follow it.

     

    originally, my SD is

    /dev/mmcblk0p1 8192 7372799 7364608 3.5G 83 Linux

    after the successful repartioning mine is

    /dev/mmcblk0p1 8192 15384575 15376384 7.3G 83 Linux

     

    the only difference is that after the step 7, and accept the default options for 2 times, i reach a this, and enter n

     

    Created a new partition 1 of type 'Linux' and of size 3.7 GiB.

    Partition #1 contains a ext4 signature.

     

    Do you want to remove the signature? [Y]es/[N]o: n

     

    summary steps

    1. sudo su
    2. fdisk /dev/mmcblk0
    3. d
    4. 2
    5. n
    6. p
    7. 2
    8. n
    9. w
    10. reboot
    11. sudo su (after reboot is complete)
    12. resize2fs /dev/mmcblk0p1
    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • weiwei2
    0 weiwei2 over 5 years ago in reply to weiwei2

    image

    image

    it is working.....although i wonder why in the first place the official image is not configured to have sufficient space

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 5 years ago in reply to weiwei2

    BTW, I found a way to simulate the clean:

     

    mook@MookPC:~$ apt-get -s clean

    NOTE: This is only a simulation!

      apt-get needs root privileges for real execution.

      Keep also in mind that locking is deactivated,

      so don't depend on the relevance to the real current situation!

    Del /var/cache/apt/archives/* /var/cache/apt/archives/partial/*

    Del /var/lib/apt/lists/partial/*

    Del /var/cache/apt/pkgcache.bin /var/cache/apt/srcpkgcache.bin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 5 years ago in reply to clem57

    So you can choose which you want...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 5 years ago in reply to clem57

    So you can choose which you want...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • weiwei2
    0 weiwei2 over 5 years ago in reply to clem57

    Thanks a lot for the insight image

    I do have another sd card also installed with the original image and not yet fixed by resizing partition. Will try out your methods on it. Now my beaglebone.ai heat sink is really hot...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 5 years ago in reply to weiwei2

    Possible help for BB-AI heat problem  is a suggestion to help mitigate that heat. I have used it to lessen the heat...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube