solo2500
Posts: 123
Joined: Sat Jul 09, 2016 12:38 am

How does the SD capacity work?

Sun Jul 17, 2016 8:00 pm

I'm using a RPi 3b and have a 32GB SD card in it.
Can someone decipher the following memory allocation?
Nothing seems to correspond with 32MB?
THANKS!


pi@raspberrypi:~ $ free -o -h

total used free shared buffers cached
Mem: 925M 559M 365M 13M 150M 272M
Swap: 99M 0B 99M
Last edited by solo2500 on Sun Jul 17, 2016 8:20 pm, edited 1 time in total.
I'm a total novice, non-programer (...basically a hack.)

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5623
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How does the SD capacity work?

Sun Jul 17, 2016 8:07 pm

solo2500 wrote:I'm using a RPi 3b and have a 32GB SD card in it.
Can someone decipher the following memory allocation?
THANKS!
pi@raspberrypi:~ $ free -o -h
total used free shared buffers cached
Mem: 925M 559M 365M 13M 150M 272M
Swap: 99M 0B 99M
AIUI free shows memory allocation, not available/used uSDHC card space.
The df command will show you (mounted) filesystem/partition usage on the uSDHC card.
Trev.
Edit: Having now logged in via my P3 I can post an example for a 16Gb card:

Code: Select all

pi@raspiP3B16Gb:~ $ df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/root       15185660 3713896  10799288  26% /
devtmpfs          469540       0    469540   0% /dev
tmpfs             473872       0    473872   0% /dev/shm
tmpfs             473872    6424    467448   2% /run
tmpfs               5120       4      5116   1% /run/lock
tmpfs             473872       0    473872   0% /sys/fs/cgroup
/dev/mmcblk0p1     61384   20984     40400  35% /boot
tmpfs              94776       4     94772   1% /run/user/1000
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

solo2500
Posts: 123
Joined: Sat Jul 09, 2016 12:38 am

Re: How does the SD capacity work?

Sun Jul 17, 2016 8:21 pm

Thank you Sir!
I'm a total novice, non-programer (...basically a hack.)

Return to “Beginners”