Re: allgemein zugänglicher Bereich im Dateisystem
* Uwe Thormann wrote:
> Am Samstag 14 Oktober 2006 17:48 schrieb Rüdiger Noack:
> > Christoph Haas schrieb:
> > > On Saturday 14 October 2006 17:11, Uwe Thormann wrote:
> > >> vielleicht ein banale Frage, aber:
> > >> wo werden im Debian/Linux-Dateisystem veränderliche Dateien gespeichert,
> > >> die für alle Benutzer zugänglich sein sollen? (z.B Formulare, Fotos
> > >> usw.)
> > Ich benutze ein eigenes Filesystem (/Daten) und darunter sowohl private
> > wie auch mehr oder weniger öffentliche Verzeichnisse (public etc.).
So mache ich das auch.
> Ist ja interessant, die Experten streiten sich. Und dabei hätte ich gedacht,
> der Bereich /usr/local/share wäre dafür vorgesehen.
Nein. Auszüge aus dem Filesystem Hierarchy Standard:
| /usr is the second major section of the filesystem. /usr is
| shareable, read-only data. That means that /usr should be
| shareable between various FHS-compliant hosts and must not be
| written to. Any information that is host-specific or varies
| with time is stored elsewhere.
[...]
| The /usr/local hierarchy is for use by the system administrator
| when installing software locally. It needs to be safe from
| being overwritten when the system software is updated. It may
| be used for programs and data that are shareable amongst a
| group of hosts, but not found in /usr.
[...]
| The requirements for the contents of this directory are the
| same as /usr/share. The only additional constraint is that
| /usr/local/share/man and /usr/local/man directories must be
| synonomous (usually this means that one of them must be a
| symbolic link).
[...]
| The /usr/share hierarchy is for all read-only architecture
| independent data files. [30]
|
| This hierarchy is intended to be shareable among all architecture
| platforms of a given OS; thus, for example, a site with
| i386, Alpha, and PPC platforms might maintain a single /usr/share
| directory that is centrally-mounted. Note, however, that
| /usr/share is generally not intended to be shared by different OSes
| or by different releases of the same OS.
|
| Any program or package which contains or requires data that doesn't
| need to be modified should store that data in
| /usr/share (or /usr/local/share, if installed locally). It is
| recommended that a subdirectory be used in /usr/share for
| this purpose.
> Für mich hat aber die Variante /home/users einen gewissen Charme, da das
> home-Verzeichnis meistens eine eigene Partition hat und deshalb bei
> Neuinstallation selten verloren geht und außerdem zwanglos einem
> Backup-System unterworfen ist.
Für die Datenverzeichnisse, welche z.B. in /daten gemountet sind,
empfiehlt es sich natürlich auch, eigene Partionen zu verwenden. Oder
noch besser Partitionen auf (einer) anderen Platte(n). Crasht die eine
HD liegen die Backups in /backup das eine Partition auf HD 2 ist :)
> Aber, ist das Standart?
siehe FHS http://www.pathname.com/fhs/
Ciao,
Christian
--
(o_ Christian Hoeller (aka zy3)
(o< _o) (o_ //\ ----------------------------
(/)_ (/)_ (/)_ V_/_ http://www.linux-drivers.org
Reply to: