System Layout

From OESF

(Difference between revisions)
Jump to: navigation, search
m
(spam revert)

Line 1:

Line 1:

-
[http://www.kitten130999.pop3.ru/view/leo-vince.htm leo vince] [http://www.sturuntsev.pop3.ru/articles/sony-cybershot/ sony cybershot dsc w1] [http://prihodnaja.pop3.ru/data/giochi-enigmistici/ giochi enigmistici] [http://reliles.125mb.com/library/verona-sud.htm verona sud] [http://www.kitten130999.pop3.ru/view/gilera.htm gilera] [http://chistovskaya.freehostia.com/topic/il-sorriso2/ il sorriso della jena] [http://moniqueleigh.freehostia.com/data/ffffff/ ffffff] [http://taedward.125mb.com/description/motorola-e/ motorola e] [http://biwittic.125mb.com/vinci-un/ vinci un viaggio] [http://doublename.125mb.com/cutugno-canzoni.htm cutugno canzoni] [http://timo-kiev.freehostia.com/zonealarm-pro.htm zonealarm pro] [http://triniophoeni.h18.ru/kit-ricariche/ kit ricariche cartuccia epson] [http://ramangel.125mb.com/topic/identikit-dei.htm identikit dei blue] [http://reliles.125mb.com/library/athlon-.htm athlon 3000 computer] [http://www.prairiesky.pop3.ru/view/temi-svolti/ temi svolti sulla famiglia] [http://midnightbrave.freehostia.com/univaq/ univaq] [http://www.terry-a-boot.pop3.ru/content/incontro-treviglio/ incontro treviglio] [http://timo-kiev.freehostia.com/bojana.htm bojana] [http://www.shadowthecatslj.pop3.ru/data/philips-dect/ philips dect 511] [http://bulopipe.125mb.com/web/kvx-kt.htm k8vx k8t800] [http://www.chaoticidealism.pop3.ru/blog/il-conte.htm il conte di montecristo vol 01] [http://timo-kiev.freehostia.com/suoneria-drin.htm suoneria drin drin] [http://kiwibttrflyt.h18.ru/directory/testi-florida.htm testi florida inc] [http://www.prairiesky.pop3.ru/view/hector-y/ hector y tito vs don omar] [http://maross.125mb.com/library/kraus-karl.htm kraus karl] [http://timo-kiev.freehostia.com/sd-mmc.htm sd mmc card] [http://taedward.125mb.com/description/impugnatura-canon/ impugnatura canon bg] [http://www.devochek.pop3.ru/directory/ricette-di.htm ricette di semifreddi] [http://www.nadz0r.pop3.ru/new/la-prisionera/ la prisionera] [http://www.aneta-spb.pop3.ru/blog/ostaggi-italiani.htm ostaggi italiani video] [http://cyclique.freehostia.com/content/nick-berg2/ nick berg beheading] [http://evbailly.125mb.com/tenda-salewa/ tenda salewa] [http://littleangel1.h18.ru/html/video-recorder.htm video recorder portatile] [http://chistovskaya.freehostia.com/topic/simple-minds/ simple minds seen the lights live in verona] [http://ruwilhel.125mb.com/resources/malanje-provincia.htm malanje (provincia)] [http://www.terry-a-boot.pop3.ru/content/hard-disc/ hard disc da 2 5 esterno] [http://www.wildhand.pop3.ru/topic/testi-argomentativi.htm testi argomentativi] [http://cyclique.freehostia.com/content/mujers-denuda/ mujers denuda] [http://timo-kiev.freehostia.com/nba-draft.htm nba draft] [http://www.fuzps.pop3.ru/content/tempo-destate/ tempo destate] [http://maross.125mb.com/library/sam-whiskey.htm sam whiskey] [http://timo-kiev.freehostia.com/sigma-ex2.htm sigma ex 70200 f2 8] [http://midnightbrave.freehostia.com/opel-meriva6/ opel meriva milano] [http://souya.freehostia.com/small/scheda-video43.htm scheda video 256mb 9550] [http://prihodnaja.pop3.ru/data/il-disertore/ il disertore] [http://ramangel.125mb.com/topic/konkwista-.htm konkwista 88 mp3] [http://maross.125mb.com/library/www-mercedes.htm www mercedes benz it] [http://svinka.h18.ru/content/panasonic-inverter.htm panasonic inverter 12000] [http://prihodnaja.pop3.ru/data/decespugliatore-da/ decespugliatore da giardino] [http://evbailly.125mb.com/giorno-di/ giorno di fuoco a red river] [http://bachenau.125mb.com/video-dei.htm video dei catoni] [http://www.prairiesky.pop3.ru/view/assicurazione-di/ assicurazione di ravenna] [http://biwittic.125mb.com/inuyasha-serie/ inuyasha serie 4 vol 03] [http://ramangel.125mb.com/topic/jose-velez.htm jose velez vino griego] [http://www.nadz0r.pop3.ru/new/elenco-telefonico/ elenco telefonico ercolano] [http://souya.freehostia.com/small/sigma-obiettivo3.htm sigma obiettivo 18] [http://kalahiet.125mb.com/articles/sonia-eies/ sonia eies] [http://www.lemonn-ka.pop3.ru/small/real-robots/ real robots] [http://souya.freehostia.com/small/italiano-ucciso2.htm italiano ucciso iraq] [http://reliles.125mb.com/library/olympus-c.htm olympus c55 camedia] [http://krazykat1187.freehostia.com/description/laminite/ laminite] [http://reliles.125mb.com/library/fox-calendario.htm fox calendario 2005] [http://taedward.125mb.com/description/incontro-amore/ incontro amore amicizia] [http://rimarsh.125mb.com/topic/macchina-fotografica/ macchina fotografica digitali minolta] [http://keniff.125mb.com/topic/forum-su.htm forum su cuba] [http://timo-kiev.freehostia.com/scheda-audio7.htm scheda audio slot pci 2] [http://www.shadowthecatslj.pop3.ru/data/the-hot/ the hot spot il posto caldo] [http://kalahiet.125mb.com/articles/gozalo/ gozalo] [http://ruwilhel.125mb.com/resources/strangers-in.htm strangers in the night] [http://souya.freehostia.com/small/zielony-kapelusz.htm zielony kapelusz] [http://goer.freehostia.com/description/traduzione-portoghese.htm traduzione portoghese] [http://gimaynar.125mb.com/small/pietro-sermonti/ pietro sermonti] [http://www.fuzps.pop3.ru/content/foto-di/ foto di moran atias su max] [http://kiwibttrflyt.h18.ru/directory/vivid.htm vivid 60] [http://kiwibttrflyt.h18.ru/directory/gruppo-basilea.htm gruppo basilea] [http://evbailly.125mb.com/elaborare/ elaborare] [http://littleangel1.h18.ru/html/acer-al.htm acer al1732] [http://kalahiet.125mb.com/articles/king-of/ king of love] [http://ramangel.125mb.com/topic/antenna-gps.htm antenna gps bluetooth palmari] [http://www.kitten130999.pop3.ru/view/iriri-rio.htm iriri rio] [http://timo-kiev.freehostia.com/canon-xm.htm canon xm 2] [http://www.sturuntsev.pop3.ru/articles/cristina-rus/ cristina rus] [http://www.wylt.pop3.ru/heroes/ heroes] [http://cashdolla.h18.ru/resources/madona-nude.htm madona nude] [http://www.terry-a-boot.pop3.ru/content/godesberg/ godesberg] [http://krazykat1187.freehostia.com/description/capinere/ capinere] [http://maross.125mb.com/library/itinerari-turistici.htm itinerari turistici di napoli] [http://kalahiet.125mb.com/articles/sei-immagini/ sei immagini da eternal darkness] [http://littleangel1.h18.ru/html/ceza.htm ceza] [http://hehayfor.125mb.com/styles/necazuri/ necazuri] [http://www.wildhand.pop3.ru/topic/hotel-details.htm hotel details] [http://www.prairiesky.pop3.ru/view/earthworm-jim/ earthworm jim 3d] [http://cyclique.freehostia.com/content/da-femmine/ da femmine] [http://midnightbrave.freehostia.com/torce-xeno/ torce xeno] [http://ramangel.125mb.com/topic/kuoni.htm kuoni] [http://rimarsh.125mb.com/topic/www-pink/ www pink tv] [http://souya.freehostia.com/small/fiat-panda24.htm fiat panda 1 2] [http://hehayfor.125mb.com/styles/la-grecia/ la grecia classica] [http://www.fuzps.pop3.ru/content/sci-carving/ sci carving] [http://www.sunny-may.pop3.ru/resources/ipod-xtreme/ ipod xtreme] [http://ruwilhel.125mb.com/resources/diffusori-professionali.htm diffusori professionali] [http://www.wylt.pop3.ru/camera-finale/ camera finale ligure] [http://chistovskaya.freehostia.com/topic/orologeria-industriale/ orologeria industriale e controllo dei tempi] [http://maross.125mb.com/library/chicago-testi.htm chicago testi] [http://souya.freehostia.com/small/evaengher.htm evaengher] [http://cashdolla.h18.ru/resources/eroe-per.htm eroe per famiglie] [http://goer.freehostia.com/description/cpu-athlon1.htm cpu athlon xp] [http://goer.freehostia.com/description/misuratori-pressione.htm misuratori pressione] [http://www.sunny-may.pop3.ru/resources/trigun-disc/ trigun disc 02] [http://gimaynar.125mb.com/small/jeans-diesel/ jeans diesel rame] [http://cyclique.freehostia.com/content/hamlet-mp/ hamlet mp3] [http://doublename.125mb.com/foppa-pedretti.htm foppa pedretti pinocchio] [http://www.chaoticidealism.pop3.ru/blog/ombra-gigante.htm ombra gigante] [http://www.rei794.pop3.ru/articles/hotel-di.htm hotel di parigi] [http://chistovskaya.freehostia.com/topic/il-coccodrillo/ il coccodrillo] [http://www.anafema-device.pop3.ru/view/paciotti-calzature/ paciotti calzature] [http://midnightbrave.freehostia.com/adsl-atm/ adsl atm modem] [http://hehayfor.125mb.com/styles/appunto-inglese/ appunto inglese] [http://maross.125mb.com/library/la-regina.htm la regina margot] [http://maross.125mb.com/library/km-bmw.htm km0 bmw 318 diesel auto km 0] [http://littleangel1.h18.ru/html/video-porno.htm video porno lunghi] [http://krazykat1187.freehostia.com/description/acetile/ acetile] [http://moniqueleigh.freehostia.com/data/porno-children/ porno children] [http://ramangel.125mb.com/topic/san-antonio.htm san antonio apartment] [http://limepink.h18.ru/small/www-trieste.htm www trieste it] [http://moniqueleigh.freehostia.com/data/un-ladro/ un ladro in paradiso] [http://keniff.125mb.com/topic/blues-masters.htm blues masters the essential history of the blues 1958 1961] [http://kiwibttrflyt.h18.ru/directory/pellicce-.htm pellicce abbigliamento] [http://chistovskaya.freehostia.com/topic/king-of22/ king of fighters maximum impact verso la psp] [http://www.teplohead.pop3.ru/description/meyre-vieira.htm meyre vieira] [http://krazykat1187.freehostia.com/description/offerte-americane/ offerte americane per lhard disk playstation 2] [http://kiwibttrflyt.h18.ru/directory/catrina-del.htm catrina del grande fratello] [http://cashdolla.h18.ru/resources/thierry-lhermitte.htm thierry lhermitte] [http://midnightbrave.freehostia.com/film-bianco/ film bianco tre colori] [http://www.teplohead.pop3.ru/description/vaginite-gardnerella.htm vaginite gardnerella] [http://ruwilhel.125mb.com/resources/maggiolino-tutto.htm maggiolino tutto matto] [http://krazykat1187.freehostia.com/description/fisico-in/ fisico in forma] [http://timo-kiev.freehostia.com/televisori-al10.htm televisori al plasma 42 samsung] [http://chistovskaya.freehostia.com/topic/lezioni-statistica/ lezioni statistica terni] [http://souya.freehostia.com/small/giacca-nike.htm giacca nike] [http://midnightbrave.freehostia.com/concerti-mtv/ concerti mtv european music] [http://bachenau.125mb.com/luna-gianni.htm luna gianni togni] [http://souya.freehostia.com/small/nissan-navara.htm nissan navara] [http://chistovskaya.freehostia.com/topic/rapino/ rapino] [http://www.nadz0r.pop3.ru/new/ufficio-udine/ ufficio udine] [http://www.sunny-may.pop3.ru/resources/kool-/ kool e gang get down on it] [http://prihodnaja.pop3.ru/data/tv-new/ tv new hex key] [http://krazykat1187.freehostia.com/description/ospedale-bergamo/ ospedale bergamo] [http://krazykat1187.freehostia.com/description/annuncio-telefono/ annuncio telefono] [http://www.sunny-may.pop3.ru/resources/fighe-nude/ fighe nude] [http://www.tjmclean84.pop3.ru/web/pentola-bavaria/ pentola bavaria] [http://moviemania0.h18.ru/abbigliamento-hollywood/ abbigliamento hollywood] [http://doublename.125mb.com/tavolo-da.htm tavolo da pic nic] [http://reliles.125mb.com/library/mappa-concettuale.htm mappa concettuale esame stato] [http://www.terry-a-boot.pop3.ru/content/sconsolata-sexy/ sconsolata sexy] [http://timo-kiev.freehostia.com/rs-mmc33.htm rs mmc dual multimedia memory card] [http://reliles.125mb.com/library/humax-drp.htm humax drp 560] [http://hehayfor.125mb.com/styles/cohen-hallelujah/ cohen hallelujah] [http://krazykat1187.freehostia.com/description/brevetto/ brevetto] [http://hehayfor.125mb.com/styles/universal-combat/ universal combat demo tutorial] [http://souya.freehostia.com/small/lavatrice-profondita.htm lavatrice profondita 40] [http://www.wildhand.pop3.ru/topic/nek-dimmi.htm nek dimmi cos e] [http://chistovskaya.freehostia.com/topic/scatolificio/ scatolificio] [http://ruwilhel.125mb.com/resources/riduttore-per.htm riduttore per passeggino] [http://hehayfor.125mb.com/styles/knneo-platinum/ k8nneo2 platinum] [http://moniqueleigh.freehostia.com/data/roma-torino/ roma torino] [http://ruwilhel.125mb.com/resources/mina-la.htm mina la banda] [http://cyclique.freehostia.com/content/escucha-triste/ escucha triste palomita] [http://www.nadz0r.pop3.ru/new/jt/ jt 359] [http://www.chaoticidealism.pop3.ru/blog/sesso-gatis.htm sesso gatis] [http://krazykat1187.freehostia.com/description/nissan-micra8/ nissan micra roma] [http://goer.freehostia.com/description/albergo-29.htm albergo 3 stelle lione] [http://www.anafema-device.pop3.ru/view/telecamera-rete/ telecamera rete] [http://www.fuzps.pop3.ru/content/taxy/ taxy] [http://ruwilhel.125mb.com/resources/ufficio-follonica.htm ufficio follonica] [http://doublename.125mb.com/terneuzen.htm terneuzen] [http://www.rei794.pop3.ru/articles/campionato-austriaco.htm campionato austriaco] [http://moviemania0.h18.ru/www-blackbooty/ www blackbooty] [http://biwittic.125mb.com/anno-peugeot/ anno peugeot 106] [http://timo-kiev.freehostia.com/hamid.htm hamid] [http://www.wylt.pop3.ru/tv-/ tv 46 samsung] [http://chistovskaya.freehostia.com/topic/dawnload-giochi/ dawnload giochi sexy gratis] [http://kalahiet.125mb.com/articles/penne-ypsilon/ penne ypsilon] [http://ruwilhel.125mb.com/resources/lanima-e.htm lanima e il volto] [http://moniqueleigh.freehostia.com/data/honi/ honi] [http://keniff.125mb.com/topic/heaven-out.htm heaven out] [http://hehayfor.125mb.com/styles/lcd-/ lcd 32 philips 32pf9830] [http://ramangel.125mb.com/topic/best-annuncio.htm best annuncio com] [http://bulopipe.125mb.com/web/video-porno.htm video porno lunghi] [http://doublename.125mb.com/paso-adelante.htm paso adelante italia 1] [http://hehayfor.125mb.com/styles/carosello-di/ carosello di notte] [http://www.nadz0r.pop3.ru/new/konica-minolta/ konica minolta fotocamera digitale] [http://hehayfor.125mb.com/styles/horse-club/ horse club] [http://chistovskaya.freehostia.com/topic/gaet/ gaet] [http://krazykat1187.freehostia.com/description/gasparini/ gasparini] [http://gimaynar.125mb.com/small/superman-xxx/ superman xxx] [http://www.lemonn-ka.pop3.ru/small/hot-bandito/ hot bandito] [http://timo-kiev.freehostia.com/nokia24.htm nokia 3510] [http://timo-kiev.freehostia.com/tavolo-per.htm tavolo per computer] [http://www.devochek.pop3.ru/directory/lavatrici-.htm lavatrici 12 kg] ==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.

Revision as of 15:35, 20 September 2007

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