nick13131
Posts: 20
Joined: Mon Nov 10, 2014 3:21 pm

Where's my memory?

Mon Feb 09, 2015 5:46 pm

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?
It's Pi o'clock somewhere!

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Where's my memory?

Mon Feb 09, 2015 6:16 pm

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.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

DirkS
Posts: 9970
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Where's my memory?

Mon Feb 09, 2015 8:12 pm

'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.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Where's my memory?

Tue Feb 10, 2015 4:34 pm

lsblk is one of those convenience tools like mtr and tree that you can get buy without but become favored once you find them.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “Beginners”