System Layout

From OESF

(Difference between revisions)
Jump to: navigation, search
m
Current revision (08:21, 25 September 2007) (edit) (undo)
(spam rv)
 

(2 intermediate revisions not shown.)

Line 1:

Line 1:

-
[http://someoddgalaxy.freehostia.com/articles/granulati/ granulati] [http://keokepa.50webs.com/library/calle-ciega/ calle ciega] [http://commodore-guff.freehostia.com/styles/incesti-sorelle.htm incesti sorelle] [http://keokepa.50webs.com/library/wsftp-pro/ wsftp pro] [http://vlano.50webs.com/styles/scuole/ scuole] [http://rathchavady.freehostia.com/description/toscanella-di/ toscanella di dozza] [http://heartlessfriend.freehostia.com/library/dvd-amstrad4/ dvd amstrad dx3070] [http://offleeewild1.50webs.com/library/nvidia-fx/ nvidia fx 5700le] [http://offleeewild1.50webs.com/library/sfondi-pesci/ sfondi pesci o uccelli] [http://njoka.freehostia.com/small/the-nirvana.htm the nirvana] [http://eaes7.freehostia.com/library/fujitsu-lifebook3.htm fujitsu lifebook s7020] [http://runnyn.freehostia.com/library/fatal-fantassy/ fatal fantassy] [http://keokepa.50webs.com/library/di-estefano/ di estefano] [http://queenbabypie.freehostia.com/html/brad-peet/ brad peet nude foto] [http://rathchavady.freehostia.com/description/vooley-games/ vooley games] [http://leshji.50webs.com/data/giovanissim/ giovanissim] [http://vlano.50webs.com/styles/leyenda/ leyenda] [http://runnyn.freehostia.com/library/neve-midi/ neve midi] [http://krasniioktyabr.50webs.com/eventi-torino/ eventi torino] [http://offleeewild1.50webs.com/library/villani-stefano/ villani stefano] [http://blind9justice.50webs.com/bimbi/ bimbi] [http://krasniioktyabr.50webs.com/oregon-scientific/ oregon scientific mr238] [http://runnyn.freehostia.com/library/www-usher/ www usher it] [http://keokepa.50webs.com/library/tastiera-numerica/ tastiera numerica usb] [http://offleeewild1.50webs.com/library/eight-is/ eight is enough] [http://leshji.50webs.com/data/nikon-af/ nikon af 1835] [http://ag666.50webs.com/view/hotel-/ hotel 5 stelle lisbona] [http://midwestman.50webs.com/view/rubinstein/ rubinstein] [http://blind9justice.50webs.com/barroco/ barroco] [http://eaes7.freehostia.com/lib/sport-donna.htm sport donna abbigliamento sportivo] [http://leshji.50webs.com/data/la-piccola/ la piccola cosmogonia] [http://leshji.50webs.com/data/pine-s/ pine s top boogie woogie] [http://pothomse.angelfire.com/dancehall/ dancehall] [http://ag666.50webs.com/view/dama-srl/ dama srl] [http://blind9justice.50webs.com/blanca-nieves/ blanca nieves y los 7 enanitos] [http://pothomse.angelfire.com/nikon-8/ nikon d50 silver] [http://eaes7.freehostia.com/lib/ha-trovato.htm ha trovato una neonata nel lago] [http://someoddgalaxy.freehostia.com/articles/isaac-hayes/ isaac hayes] [http://superhank.freehostia.com/content/ney-matogrosso/ ney matogrosso] [http://vlano.50webs.com/styles/felpa-eroi/ felpa eroi] [http://ag666.50webs.com/view/u-s/ u s robotics wireless turbo access point] [http://superhank.freehostia.com/content/a-asciugabiancheria/ a asciugabiancheria] [http://eaes7.freehostia.com/library/passat-24.htm passat 2000 a benzina] [http://ag666.50webs.com/view/epson-stylus/ epson stylus r1800] [http://midwestman.50webs.com/view/kariba-lago/ kariba lago di] [http://heartlessfriend.freehostia.com/library/boogeyman-/ boogeyman luomo nero] [http://deharte.angelfire.com/data/xd-picture3/ xd picture card fujifilm 256] [http://someoddgalaxy.freehostia.com/articles/siti-ufficiali/ siti ufficiali cantanti] [http://heartlessfriend.freehostia.com/library/beeper/ beeper] [http://ag666.50webs.com/view/tommaso-sexy/ tommaso sexy] [http://queenbabypie.freehostia.com/html/pdf/ pdf995] [http://danikrv.50webs.com/small/non-parli/ non parli mai] [http://anubis8.50webs.com/library/vlore/ vlore] [http://blind9justice.50webs.com/filatelia-e/ filatelia e numismatica] [http://vlano.50webs.com/styles/video-decapitazione/ video decapitazione amercano] [http://keokepa.50webs.com/library/coordinatore-forestale/ coordinatore forestale] [http://maheinze.angelfire.com/pavia-lodi.htm pavia lodi] [http://pticaja-ptica.freehostia.com/directory/virtual-soccer.htm virtual soccer] [http://midwestman.50webs.com/view/il-giornale/ il giornale della musica] [http://celare.freehostia.com/description/spesso-il/ spesso il male di vivere ho incontrato] [http://superhank.freehostia.com/content/tastiera-maudio/ tastiera maudio] [http://vlano.50webs.com/styles/banchs-enrique/ banchs enrique] [http://pticaja-ptica.freehostia.com/directory/palmari-gps33.htm palmari gps palm t5] [http://midwestman.50webs.com/view/cortico/ cortico] [http://ag666.50webs.com/view/camper-usato/ camper usato it] [http://celare.freehostia.com/description/el-pacto/ el pacto andino] [http://njoka.freehostia.com/small/estrella-y.htm estrella y sigue sigue mas] [http://queenbabypie.freehostia.com/html/nudi-spogliatoi/ nudi spogliatoi] [http://celare.freehostia.com/description/casse-woofer/ casse woofer] [http://danikrv.50webs.com/small/seagate-sata/ seagate sata 250gb] [http://pticaja-ptica.freehostia.com/directory/enech.htm enech] [http://pticaja-ptica.freehostia.com/directory/batteria-canon31.htm batteria canon bp511] [http://njoka.freehostia.com/small/behringer-ultramatch.htm behringer ultramatch] [http://offleeewild1.50webs.com/library/vaa-pensiero/ vaa pensiero] [http://offleeewild1.50webs.com/library/panasonic-gs/ panasonic gs200] [http://krasniioktyabr.50webs.com/sonata-k/ sonata k448] [http://raguerla.angelfire.com/articles/www-belle/ www belle asiatiche it] [http://superhank.freehostia.com/content/heliport/ heliport] [http://raguerla.angelfire.com/articles/borgy/ borgy] [http://superhank.freehostia.com/content/enic/ enic] [http://krasniioktyabr.50webs.com/immagini-drivr/ immagini driv3r] [http://commodore-guff.freehostia.com/styles/frenk-adventure.htm frenk adventure] [http://celare.freehostia.com/description/mensa/ mensa] [http://eaes7.freehostia.com/library/girlie-not.htm girlie not out] [http://pticaja-ptica.freehostia.com/directory/ordine-ingegneri.htm ordine ingegneri provincia di messina] [http://commodore-guff.freehostia.com/styles/logan-tom.htm logan tom] [http://pticaja-ptica.freehostia.com/directory/inculate-free.htm inculate free pellicola] [http://keokepa.50webs.com/library/busy-surger/ busy surger] [http://njoka.freehostia.com/small/pinna-snorkeling.htm pinna snorkeling] [http://njoka.freehostia.com/small/ragazza-pordenone.htm ragazza pordenone] [http://ag666.50webs.com/view/videoproiettore-nec/ videoproiettore nec ht] [http://anubis8.50webs.com/library/monaci-tibetani/ monaci tibetani] [http://vlano.50webs.com/styles/www-bolleblu/ www bolleblu it] [http://blind9justice.50webs.com/je-taime/ je taime moi non plus] [http://deharte.angelfire.com/data/metodi-di/ metodi di circoncisione] [http://commodore-guff.freehostia.com/styles/canon-bjc.htm canon bjc] [http://someoddgalaxy.freehostia.com/articles/www-trovare/ www trovare amici it] [http://eaes7.freehostia.com/library/kit-logitech1.htm kit logitech 3100] [http://offleeewild1.50webs.com/library/sogno/ sogno] [http://commodore-guff.freehostia.com/styles/o-zone181.htm o zone dragostea din tei dj ross radi] [http://njoka.freehostia.com/small/riciclaggio-cartone.htm riciclaggio cartone] [http://danikrv.50webs.com/small/dmxl-canon/ dmxl2 canon] [http://anubis8.50webs.com/library/saintclaude/ saintclaude] [http://wosligersy.angelfire.com/tatoo-leoni/ tatoo leoni] [http://someoddgalaxy.freehostia.com/articles/van-hel/ van hel] [http://keokepa.50webs.com/library/servizi-gratuiti/ servizi gratuiti] [http://eaes7.freehostia.com/library/telo.htm telo 16] [http://stbillin.angelfire.com/web/batteria-cordless1.htm batteria cordless brondi] [http://danikrv.50webs.com/small/io-sono/ io sono curiosa] [http://njoka.freehostia.com/small/head-racchetta.htm head racchetta tennis] [http://someoddgalaxy.freehostia.com/articles/foto-miss2/ foto miss liceali] [http://someoddgalaxy.freehostia.com/articles/spioni-di/ spioni di ragazze] [http://rathchavady.freehostia.com/description/like-a7/ like a bomb] [http://eaes7.freehostia.com/lib/ferro-da47.htm ferro da stiro imetec ferri] [http://nejoaus.angelfire.com/gamepad-xbox.htm gamepad xbox adattatore] [http://vlano.50webs.com/styles/c-e/ c e che ti piace essere bella] [http://nejoaus.angelfire.com/maglie-sweet.htm maglie sweet years] [http://commodore-guff.freehostia.com/styles/ati-radeon316.htm ati radeon x800 256mb] [http://deharte.angelfire.com/data/sony-vaio11/ sony vaio vgna417m] [http://keokepa.50webs.com/library/pacific-poker/ pacific poker com] [http://leshji.50webs.com/data/audi-pordenone/ audi pordenone] [http://celare.freehostia.com/description/rmv/ rmv7] [http://anubis8.50webs.com/library/faeti-antonio/ faeti antonio] [http://pticaja-ptica.freehostia.com/directory/devinn-lane.htm devinn lane] [http://runnyn.freehostia.com/library/intillimani-el/ intillimani el pueblo] [http://nejoaus.angelfire.com/uci-cinema.htm uci cinema] [http://eaes7.freehostia.com/library/novita-sulle.htm novita sulle fibre tecniche] [http://njoka.freehostia.com/small/boy-sex.htm boy sex] [http://runnyn.freehostia.com/library/foto-fiori/ foto fiori viola] [http://runnyn.freehostia.com/library/santa-caterina/ santa caterina villarmosa] [http://offleeewild1.50webs.com/library/accessori-sony/ accessori sony clie] [http://stbillin.angelfire.com/web/keygen-stylexp.htm keygen stylexp 2 11] [http://leshji.50webs.com/data/decoder-irdeto/ decoder irdeto 2] [http://danikrv.50webs.com/small/bruno-collinet/ bruno collinet] [http://queenbabypie.freehostia.com/html/lecciso/ lecciso] [http://queenbabypie.freehostia.com/html/bambola-cinese/ bambola cinese] [http://eaes7.freehostia.com/library/aggiornamenti-giochi.htm aggiornamenti giochi] [http://someoddgalaxy.freehostia.com/articles/termoconvettori-piccolo/ termoconvettori piccolo riscaldamento] [http://midwestman.50webs.com/view/batteria-motorola/ batteria motorola t280] [http://ag666.50webs.com/view/fuga-preside/ fuga preside] [http://njoka.freehostia.com/small/il-fu.htm il fu mattia pascal riassunto capitolo] [http://danikrv.50webs.com/small/terme-austria/ terme austria] [http://rathchavady.freehostia.com/description/valerio-saranno/ valerio saranno famosi] [http://leshji.50webs.com/data/www-sanpaolo/ www sanpaolo imi cpm] [http://vlano.50webs.com/styles/sony-monitor/ sony monitor 19 x black] [http://eaes7.freehostia.com/lib/www-camaracuba.htm www camaracuba cu] [http://superhank.freehostia.com/content/editor-skysat/ editor skysat 2 0] [http://deharte.angelfire.com/data/margate/ margate] [http://runnyn.freehostia.com/library/stampanti-oki3/ stampanti oki] [http://pticaja-ptica.freehostia.com/directory/album-francesco.htm album francesco renga da scaricare] [http://danikrv.50webs.com/small/ventola-/ ventola 9 x 9] [http://vlano.50webs.com/styles/download-programmi/ download programmi per bioritmo] [http://offleeewild1.50webs.com/library/solo-contigo/ solo contigo vicentico] [http://eaes7.freehostia.com/lib/tutto-bergamo.htm tutto bergamo] [http://heartlessfriend.freehostia.com/library/anna-tatangelo5/ anna tatangelo nuda] [http://commodore-guff.freehostia.com/styles/racconti-solletico.htm racconti solletico] [http://njoka.freehostia.com/small/colpo-su.htm colpo su colpo] [http://eaes7.freehostia.com/lib/www-esami20.htm www esami del sangue] [http://njoka.freehostia.com/small/la-guerra41.htm la guerra dei mondi (1952)] [http://eaes7.freehostia.com/library/dibujos-animados1.htm dibujos animados] [http://queenbabypie.freehostia.com/html/modello-attestato/ modello attestato per handicap] [http://queenbabypie.freehostia.com/html/lettore-mp410/ lettore mp3 packard bell funkey fm] [http://queenbabypie.freehostia.com/html/hard-disk753/ hard disk scsi 80 pin 36] [http://rathchavady.freehostia.com/description/www-buongiorno/ www buongiorno com it] [http://vlano.50webs.com/styles/driver-per/ driver per jtag] [http://heartlessfriend.freehostia.com/library/nc-pm/ nc6120 pm760] [http://krasniioktyabr.50webs.com/we-will/ we will rock you base] [http://rathchavady.freehostia.com/description/calavrisella/ calavrisella] [http://anubis8.50webs.com/library/p-loiacono/ p loiacono] [http://someoddgalaxy.freehostia.com/articles/flli-cerruti/ flli cerruti] [http://offleeewild1.50webs.com/library/prestito-matera/ prestito matera] [http://someoddgalaxy.freehostia.com/articles/endorser-scanner/ endorser scanner] [http://keokepa.50webs.com/library/i-liberatori/ i liberatori] [http://njoka.freehostia.com/small/tempra-fiat.htm tempra fiat] [http://superhank.freehostia.com/content/fiere-friuli/ fiere friuli] [http://njoka.freehostia.com/small/calanna.htm calanna] [http://heartlessfriend.freehostia.com/library/sessantenne/ sessantenne] [http://midwestman.50webs.com/view/berghotel-tirol/ berghotel tirol] [http://krasniioktyabr.50webs.com/one-truth/ one truth] [http://vlano.50webs.com/styles/britney-in/ britney in perizoma foto] [http://celare.freehostia.com/description/barbara-chiappini3/ barbara chiappini calendario] [http://commodore-guff.freehostia.com/styles/bllom.htm bllom] [http://smfarrowik.angelfire.com/small/zyxel-g1/ zyxel g360] [http://vlano.50webs.com/styles/cerca-numero/ cerca numero centro assistenza tiscali] [http://eaes7.freehostia.com/library/singoli-cercano.htm singoli cercano coppie] [http://eaes7.freehostia.com/lib/johnny-holmes.htm johnny holmes] [http://wosligersy.angelfire.com/dimm-sdram/ dimm sdram 133] [http://blind9justice.50webs.com/fd/ fd] [http://commodore-guff.freehostia.com/styles/columbia-shopping.htm columbia shopping] [http://eaes7.freehostia.com/library/accessorio-auto.htm accessorio auto germania] [http://heartlessfriend.freehostia.com/library/salta-salta/ salta salta] [http://leshji.50webs.com/data/il-sogno/ il sogno di caterina] [http://pothomse.angelfire.com/annunci-erotici1/ annunci erotici veneto] [http://stbillin.angelfire.com/web/testi-canzoni16.htm testi canzoni gianni celeste] [http://pothomse.angelfire.com/sole-rosso/ sole rosso sul bosforo] [http://danikrv.50webs.com/small/unico-anello/ unico anello] [http://celare.freehostia.com/description/finni/ finni] [http://keokepa.50webs.com/library/km-/ km 0 tv 185] [http://offleeewild1.50webs.com/library/hublo/ hublo] [http://danikrv.50webs.com/small/impianti-idrici/ impianti idrici] ==Overview==
+
==Overview==
This document describes the filesystem and directory layout of the Sharp Zaurus 5500, to help everyone understand better what happens when new software is installed, creating user accounts, and so on. It's not really a HOWTO in the sense that it doesn't explain "how to" do anything beyond understand the location of files and directories, and how these correspond to the ROM and RAM on the Z, and why.
This document describes the filesystem and directory layout of the Sharp Zaurus 5500, to help everyone understand better what happens when new software is installed, creating user accounts, and so on. It's not really a HOWTO in the sense that it doesn't explain "how to" do anything beyond understand the location of files and directories, and how these correspond to the ROM and RAM on the Z, and why.

Current revision

Contents

Overview

This document describes the filesystem and directory layout of the Sharp Zaurus 5500, to help everyone understand better what happens when new software is installed, creating user accounts, and so on. It's not really a HOWTO in the sense that it doesn't explain "how to" do anything beyond understand the location of files and directories, and how these correspond to the ROM and RAM on the Z, and why.

Robert P. J. Day <rpjday at mindspring.com>

The memory layout

The memory on the 5500 is divided into ROM: 16M RAM: 64M, further divided into:

memory
32M for processes/buffers/cache
storage: 32M for additional file/directory storage

You can see the current usage of RAM by clicking on "Applications/System Info".

In addition to the above, their might also have additional memory on either a CF card or SD card, whose size and usage would also be displayed by clicking the same icon.

Superficially, all of the above storage/memory corresponds to the following locations or mount points by default:

/ ROM
/home RAM
/mnt/cf CF card
/mnt/card SD card

and in a terminal shell it will correspond with either of:

  1. mount
  2. df

While this is a fair approximation of how memory and directories are associated, it's actually quite a bit more complicated.

The directory structure

Again, simplistically, think of the two major mounts points as:

/ ROM
/home RAM

Initially, this suggests that all of the system directories like /bin, /usr, /etc and so on are read-only, but clearly this is impossible since there would be no way to do basic administration like adding a new user, installing new software and so on.

In fact, modifying system files is supported by the fact that there are about a gazillion links from the alleged system directories and files into corresponding directories and files under /home, which makes them changeable. For example,

/etc -> /home/etc
/tmp -> /home/tmp
/var -> /home/system/var

which makes everything in /etc, /tmp and /var read-write. So far, so good.

In addition, command and software management is also supported by carefully chosen symbolic links. Consider, as an example, just the /usr/bin directory:

/usr/bin -> /home/root/usr/bin

This implies that new software being installed under /usr/bin is actually going into the writable RAM, which is a good thing. But it gets more interesting.

If the contents of /home/root/usr/bin are examined, most of the contents are symbolic links back to files in /usr/bin.rom. This means that both the standard, built-in ROM commands appear to be in /home/root/usr/bin, even though they're really back in the read-only directory /usr/bin.rom. And any new software will go in /home/root/usr/bin. The same situation holds for the other directories /usr/sbin, /usr/lib, /usr/local, /usr/share and /usr/etc, which means there is access the pre-loaded ROM files while still being able to add new files.

This same technique is used for additional installation directories:

/opt/!QtPalmtop -> /home/!QtPalmtop
/opt/Qtopia -> /home/!QtPalmtop

Given the above, it's easy to see that the main software install directories are going to be:

/usr/bin
/usr/local/bin
/opt/{!QtPalmtop,Qtopia}

all of which, due to symbolic links, actually reside under /home somewhere.

The initial system directories

One final point. The initial contents of a number of the critical directories can be found as hidden tar files in the ROM-based /root directory:

  1. cd /root
  2. ls -a
.dev_default.tar
.home_default.tar
.var_default.tar

These tarballs are the initial contents of /dev, /home, and /var (which is really a symlink to /home/system/var). Doing a hard reset reloads all of /dev, /home and /var from these tar files.

When building a custom ROM the initial contents of any of these directories can be changed, by (as root on your Linux box) untar the appropriate tarball, make the changes, then tar it back up. You have to do it as root so that root is the owner of the files in the tarball. (fakeroot should work here, if you're familiar with that.)

Personal tools