I am a bit confused by the state of the storage on my RPi. I have a 32G SD Card but looking at the following it is nearly full but has only used up 3.8G space!

'df' tells me my /dev/root is 30G in size, 27G used with only 1.5G available. df -h

'parted' tells me a similar story, two partitions which are in total 31.9G in size. parted -l

But 'du' tells me that I only have 3.6G of files.


Pi OS details:


I understand that df and du calculate the space used differently, but what could be going on here that gives such a large difference?

I have tried running raspi-config and the above details do not change (even after a reboot of the pi). raspi-config--expand-rootfs

P.s. Sorry for the lack of info to start of with, late night frustration not understanding why my Pi was running out of space!

  • 2
    you probably haven't extended the filesystem - though, df suggests you have - odd ... what is the actual output of parted -l Commented Mar 19, 2018 at 0:15
  • Which filesystem do you use? Btrfs is known to be a bit confusing about free space calculations. I will give you a different answer depending on that information. Commented Mar 19, 2018 at 6:22
  • 1
    note: extending the partition doesn't extend the filesystem - the raspi-config way below should do both for you Commented Mar 19, 2018 at 8:04
  • "am I missing something" such as some data about what you see, what OS etc.
    – Milliways
    Commented Mar 19, 2018 at 9:05
  • 1
    -1 for posting error messages as screenshots. Commented Mar 20, 2018 at 9:56

1 Answer 1


Maybe you did not expand your file system yet. Try

sudo raspi-config --expand-rootfs
  • Thanks for the answer, but in my edited question above I show that I have already done this but it hasn't made any difference.
    – Lawrence
    Commented Mar 20, 2018 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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