I have 2 gb free but still i have 100% use why ?
-
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
-
@shavecat 5% is used by root, so you need to free ~13GB before the % goes down.
-
@dankcushions
really 13 gb free ???
i heard u need 1 gb free . -
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.
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.