gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

Missing free space

Wed Aug 21, 2013 2:11 pm

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?
Last edited by gyeben on Wed Aug 21, 2013 4:08 pm, edited 1 time in total.

User avatar
RaTTuS
Posts: 10415
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Missing free space

Wed Aug 21, 2013 2:13 pm

df -h

you have 2 partitions
1 for the fat32 boot image
and the rest for the rootfs etc.
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

Re: Missing free space

Wed Aug 21, 2013 4:06 pm

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.

User avatar
RaTTuS
Posts: 10415
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Missing free space

Wed Aug 21, 2013 4:12 pm

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
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

itimpi
Posts: 1088
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: Missing free space

Wed Aug 21, 2013 5:03 pm

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.

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: Missing free space

Wed Aug 21, 2013 5:18 pm

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.

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Missing free space

Wed Aug 21, 2013 5:55 pm

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
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

Re: Missing free space

Mon Aug 26, 2013 9:02 pm

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!

Return to “General discussion”