Active Topics

 


Reply
Thread Tools
Posts: 133 | Thanked: 5 times | Joined on Dec 2009
#1
Could someone break down what is meant by root space? And how do I check mine etc...

Much appreciated!
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#2
The N900 has two (or three if you have a memory card installed) separate flash memory areas. The first is a 256M high-speed flash which is attached directly to the processor. The second is a 32GB built-in flash.

The root (or rootfs) is so-called because it's at the root of the directory tree (the lowest level). This is on the 256M high-speed memory, because it contains the libraries and applications that are used most often. The /home and the /home/MyDocs directories are on the 32GB internal memory - /opt is actually just a link to /home/opt.

The reason the root memory is only 256M is because that was the largest available at the time the phone was designed.

You can see what free space you have where by running X Terminal and typing:
Code:
df -h
 

The Following 5 Users Say Thank You to Rob1n For This Useful Post:
RevdKathy's Avatar
Posts: 2,173 | Thanked: 2,678 times | Joined on Oct 2009 @ Cornwall, UK
#3
Originally Posted by Rob1n View Post
The N900 has two (or three if you have a memory card installed) separate flash memory areas. The first is a 256M high-speed flash which is attached directly to the processor. The second is a 32GB built-in flash.

The root (or rootfs) is so-called because it's at the root of the directory tree (the lowest level). This is on the 256M high-speed memory, because it contains the libraries and applications that are used most often. The /home and the /home/MyDocs directories are on the 32GB internal memory - /opt is actually just a link to /home/opt.

The reason the root memory is only 256M is because that was the largest available at the time the phone was designed.

You can see what free space you have where by running X Terminal and typing:
Code:
df -h
So which figure should I be looking at? The line marked rootfs says it has a total of 227.6M. The line with a total of 256M is tmpfs.

Which one should I be worried about?
__________________
Hi! I'm Kathy and I'm a Maemo Greeter! Welcome.
Useful links for newcomers: New members say hello , New users start here, Community subforum, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Did you know Meego.com has forums too?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#4
There's some rounding errors I think (or possibly binary vs decimal) - the rootfs line is the one you want to be worried about anyway.
 
RevdKathy's Avatar
Posts: 2,173 | Thanked: 2,678 times | Joined on Oct 2009 @ Cornwall, UK
#5
Originally Posted by Rob1n View Post
There's some rounding errors I think (or possibly binary vs decimal) - the rootfs line is the one you want to be worried about anyway.
Ahh. Then I should probably be worried. Which is slightly worrying as I have about 3 items from devel, all carefully checked.
__________________
Hi! I'm Kathy and I'm a Maemo Greeter! Welcome.
Useful links for newcomers: New members say hello , New users start here, Community subforum, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Did you know Meego.com has forums too?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#6
How much free do you have? And have you rebooted after installing any apps?
 
Posts: 233 | Thanked: 170 times | Joined on Nov 2009 @ Finland
#7
Originally Posted by RevdKathy View Post
So which figure should I be looking at? The line marked rootfs says it has a total of 227.6M. The line with a total of 256M is tmpfs.
Which one should I be worried about?
Here's my df (diskfree) output. The parameter -h just means "human readable", which is Linux for "change bytes to megabytes and kilobytes and whatnot".

Code:
Filesystem                Size      Used Available Use% Mounted on
rootfs                  227.9M    189.1M     34.6M  85% /
ubi0:rootfs             227.9M    189.1M     34.6M  85% /
tmpfs                     1.0M     68.0k    956.0k   7% /tmp
tmpfs                   256.0k     80.0k    176.0k  31% /var/run
none                     10.0M     72.0k      9.9M   1% /dev
tmpfs                    64.0M      4.0k     64.0M   0% /dev/shm
/dev/mmcblk0p2            2.0G    188.2M      1.7G  10% /home
/dev/mmcblk0p1           27.0G      9.7G     17.3G  36% /home/user/MyDocs
Our things of "interest" in this output are the first, next to last and last line.

We all have 227.9 megabytes of root file system available, but what's interesting is the "available" -column that says I have 34.6 megabytes or 85% in use.

The last two lines indicate that /home/user/MyDocs has a total of 27 gigabytes (with 17.3 gigs free) and /home (our home directory) has a total of 2 gigabytes (of which 1.7 gigs are still free).

This is called partitioning: The internal memory/drive has been divided into several parts, the most interesting of which are 227.9 megabytes, 27 gigabytes and 2 gigabytes in size.

These partitions can then be "mapped" (or mounted) to certain directories. That is why Linux lacks drives like windows (ie. C: and D. Instead, the physical disk or partition is mapped (connected, mounted) to a directory. So when Linux-guys insert a dvd, it doesn't become D: like on Windows. Instead it has to be manually or automatically mounted to a directory. That could be any directory, but usually ends up being something sensible like /mnt/dvd.

This is done to protect the system: We can fill up one partition and leave the other ones with plenty of space to function well. In the Maemo-case, the root mount is very small in size (228 megabytes) and should be left alone as much as possible. Instead, programs should be installed to the /opt -directory.

Interestingly, opt is part of the root filesystem! But if we look at /opt with ls, it says:

Code:
Nokia-N900-42-11:~# ls -la /opt
lrwxrwxrwx    1 root     root            9 Oct 30 13:36 /opt -> /home/opt
... which means /opt is actually a symbolic link to /home/opt. So /opt actually points to /home/opt, which has 1.7 gigs free, making it a good place to install apps.

Presumably the 18 megabyte download of today's new firmware release was significantly more when extracted. Upgrading stuff on Linux is often comparable to unzipping (extracting) packages on top of old versions (and maybe cleaning up the old versions before that). So the installer for today's firmware might have checked that it could fit completely on the rootfs. Let's say the unextracted firmware was 30 megabytes. The installer would then probably halt installation if less than 30 megabytes are available on the rootfs.

The installer is also probably not able to account for files that will be replaced (if we install a file that is 2 megabytes in size, we need zero megabytes of free space if this file replaces an older version that is also 2 megabytes. In fact, by installing the new 2 megabyte version of a file, we can INCREASE free space if we replace a more inefficiently compressed file that used to be 3 megabytes).

Sorry for writing so much, but you asked
__________________
Read about my N900 experiences from my blog.

Last edited by jaysire; 2010-01-12 at 20:55. Reason: Fixed an error and formatting
 

The Following 17 Users Say Thank You to jaysire For This Useful Post:
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#8
Originally Posted by jaysire View Post
We all have 227.9 megabytes of root file system available, but what's interesting is the "available" -column that says I have 34.6 megabytes or 85% available.
I think you mean 85% used (15% available.)
 
RevdKathy's Avatar
Posts: 2,173 | Thanked: 2,678 times | Joined on Oct 2009 @ Cornwall, UK
#9
I have about 80% used, with 45mb free. I guess I'm just one of those cautious people that likes to have oodles of free space 'just in case'. (My Girl guide training - always have food in the cupboard, a bit of money in the bank, a day or two of annual leave in hand and space on your drives. )

Since others seem to have the same or less, and aren't worried, I shall hereby stop worrying.
__________________
Hi! I'm Kathy and I'm a Maemo Greeter! Welcome.
Useful links for newcomers: New members say hello , New users start here, Community subforum, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
Did you know Meego.com has forums too?

Last edited by RevdKathy; 2010-01-12 at 08:39.
 
Posts: 24 | Thanked: 2 times | Joined on Jan 2010
#10
The Conky app brings up a list of system info. I had a look but it mut have been in one of the extra reps. Worth installing if you can.
 
Reply

Tags
fremantle, maemo, maemo 5, n900, opt, optification, optify, root space, rootfs


 
Forum Jump


All times are GMT. The time now is 15:29.