Page 1 of 1

Missing free space

Posted: Wed Aug 21, 2013 2:11 pm
by gyeben
I am a quite new Linux user and stumbled upon something that I don't understand. I just bought a new 16GB card, installed Raspbian onto it, and expanded the filesystem. According to the output of df -BM, the root filesystem's size is 14895M, of which 1509M is used and 12763M is available.
I understand that 16 GB = 14,83 GiB, but still, 12763M + 1509M = 14272M, so 623M is missing. What happened with that "missing" space?

Re: Missing free space

Posted: Wed Aug 21, 2013 2:13 pm
by RaTTuS
df -h

you have 2 partitions
1 for the fat32 boot image
and the rest for the rootfs etc.

Re: Missing free space

Posted: Wed Aug 21, 2013 4:06 pm
by gyeben
Well, I have already quoted the output of dh.
My problem is that if I sum the amount of used space and the amount of available/free space, it doesn't match the total size.

Re: Missing free space

Posted: Wed Aug 21, 2013 4:12 pm
by RaTTuS
you have 2 partitions on that card
a fat32 one to hold the boot info and the rest
so it comes closer
look at the output of
df -h
and sudo fdisk -l

Re: Missing free space

Posted: Wed Aug 21, 2013 5:03 pm
by itimpi
gyeben wrote:Well, I have already quoted the output of dh.
My problem is that if I sum the amount of used space and the amount of available/free space, it doesn't match the total size.
You also have to make an allowance for the space that is used to manage the space within each partition. This is not available for storing data.

Re: Missing free space

Posted: Wed Aug 21, 2013 5:18 pm
by OtherCrashOverride
Its probably due to "root reserved space" on the filesystem.
http://boncey.org/2006_11_18_reclaiming_ext3_disk_space
When an ext2/3 filesystem is formated by default 5% is reserved for root.

Re: Missing free space

Posted: Wed Aug 21, 2013 5:55 pm
by Joe Schmoe
The "take away" from this thread (and the many others similar, past, present and future) is that:

1) The standard explanations - Windows only sees 59M, there's extra partitions, Windows can't accesss those partitions, there's gaps between the partitions, NOOBS uses a totally new and different partitioning scheme, etc, etc.

2) It's never going to add up to the penny. BTDT

Re: Missing free space

Posted: Mon Aug 26, 2013 9:02 pm
by gyeben
OtherCrashOverride wrote:Its probably due to "root reserved space" on the filesystem.
http://boncey.org/2006_11_18_reclaiming_ext3_disk_space
When an ext2/3 filesystem is formated by default 5% is reserved for root.
Most of the "missing" space was reserved for root indeed. Thanks for the link!