Page 1 of 1

Where's my memory?

Posted: Mon Feb 09, 2015 5:46 pm
by nick13131
I recently got a 32GB microSD card for Christmas, and I have formatted it with NOOBS and Raspbian, but when I look at the contents in the LXDE file manager, I notice it says 24GB free of 27.8GB

First off, I know that it doesn't take 8GB of data to store Raspbian - I've done it on ~3GB before on a 4GB sd card. If NOOBS is allocating the other 5GB to it, how can I reduce this? I have not installed any other programs or connected to any WiFi, but I have added a third user (besides root and pi)

I am familiar with the disclaimer that 'actual memory size may be smaller' on a memory card, but it appears that a good ~5GB is unaccounted for. Why is this?

Re: Where's my memory?

Posted: Mon Feb 09, 2015 6:16 pm
by elatllat
1) use parted or gparted to look at how your card is partitioned.
2) be aware of bits vs bytes, and base 2 vs base 10 units
3) be aware of file system overhead (optionally remove reserved space with "tune2fs -m 0 /dev/root")
4) use "df -h /" and "du -schx /*" ("df -H" and "du --si" are base 10 units)
All space is accounted for if you know where to look.
Using Raspbian without NOOBS will give you more free space.

Re: Where's my memory?

Posted: Mon Feb 09, 2015 8:12 pm
by DirkS
'lsblk' will show all the partitions on the SD card (including the size)
You will find that the NOOBS partitions (including recovery) take most of the 5GB.

Re: Where's my memory?

Posted: Tue Feb 10, 2015 4:34 pm
by elatllat
lsblk is one of those convenience tools like mtr and tree that you can get buy without but become favored once you find them.