RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    I have 2 gb free but still i have 100% use why ?

    Scheduled Pinned Locked Moved Help and Support
    100use
    4 Posts 3 Posters 290 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • shavecatS
      shavecat
      last edited by shavecat

      pi4 retropie 4.6

         |*|      Filesystem      Size  Used Avail Use% Mounted on
         |*|      /dev/root       232G  220G  2.2G 100% /
       ..|*|..    Uptime.............: 0 days, 02h07m16s
      .*** * ***.  Memory.............: 49832kB (Free) / 1803296kB (Total)
      *******@@**  Running Processes..: 138
      `*****@@**'  IP Address.........: 192.168.14.156
      `*******'   Temperature........: CPU: 47°C/116°F GPU: 47°C/116°F
        `"""'     The RetroPie Project, https://retropie.org.uk
      
      

      any ideas? thanks

      dankcushionsD 1 Reply Last reply Reply Quote 0
      • dankcushionsD
        dankcushions Global Moderator @shavecat
        last edited by

        @shavecat 5% is used by root, so you need to free ~13GB before the % goes down.

        shavecatS 1 Reply Last reply Reply Quote 0
        • shavecatS
          shavecat @dankcushions
          last edited by

          @dankcushions
          really 13 gb free ???
          i heard u need 1 gb free .

          1 Reply Last reply Reply Quote 0
          • ClydeC
            Clyde
            last edited by Clyde

            As @dankcushions said, it's a percentage, so it depends on the total size of the file system.

            This line of commands prints the reserved space in MB for the root file system:

            sudo tune2fs -l $(df | grep -E '/$' | cut -d\  -f 1) | egrep "Reserved block count|Block size" | paste -sd\ | awk '{print ($4 * $7 / ( 1024 * 1024 ) ), "MB"}'
            

            source: https://superuser.com/questions/444269/display-filesystems-free-space-available-to-the-root-user

            edit: I just found out that it has to be modified to work on RetroPie.

            sudo tune2fs -l /dev/mmcblk0p2 | egrep "Reserved block count|Block size" | paste -sd\ | awk '{print ($4 * $7 / ( 1024 * 1024 ) ), "MB"}'
            

            /dev/mmcblk0p2 should be the root device of RetroPie on a Raspberry Pi. You can change it to any block device with an ext FS to see its reserved space.

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.