My raspberry get full, I tried delete a lot of packages but even though nothing change ,it still full, I tried also to expand file system ....

Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G   14G     0 100% /
devtmpfs        805M     0  805M   0% /dev
tmpfs           934M     0  934M   0% /dev/shm
tmpfs           934M  8.5M  926M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           934M     0  934M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   54M  199M  22% /boot
tmpfs           187M     0  187M   0% /run/user/1000
  • 2
    We generally recommend that you copy/paste output into your question instead of using screenshots. It's much easier for everybody. Deleting packages rarely frees up space. You must use du to determine what's taking up all your space. – user535733 Jan 11 at 18:57

If the full drive was caused by software upgrade, you can try clearing up the apt cache:

sudo apt clean

If it is caused by system logs, follow the answer posted in this AskUbuntu question: https://askubuntu.com/a/100460 Then, identify which service is writing the immense amount of log entries (you will need to fix that so it won't keep happening in the future).

Alternatively, you might want to consider upgrading to a bigger MicroSD card (say, 32GB or 64GB, instead of 16GB)...

  • I tried it , nothing change – Sally Manasrah Jan 11 at 19:15
  • Then it's not due to apt cache. Use du as suggested by @user535733 to figure out which directory is taking up all the space. Using the -h option to convert to prefixes (k,M,G, ...), and sorting the output might help, i.e. du -h | sort -h – wyphan Jan 11 at 19:18
  • when execute du -s it gives : 377104 – Sally Manasrah Jan 11 at 19:22
  • Try du -h | sort -h – wyphan Jan 11 at 19:23
  • 1
    Can you post, say, the last 10 or 20 lines of the output from du -h | sort -h and put it in the question? – wyphan Jan 11 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.