next | next | up | down | Inhalt | Uebungen | Complete | Kommentar

all, section 4.13.

4.13.  mount

Am Anfang kennt das Betriebssystem nur ein Dateisystem (die root).

inode-Nummern sind (als Vektorindizes) in einem Dateisystem eindeutig. Sie verweisen nicht auf andere Dateisysteme.

Man kann dem Betriebssystem mittels mount mitteilen, daß eine inode temporär im eigenen Betriebssystem als Wurzel eines anderen Dateisystems verstanden werden soll:

$ mount /dev/fd /mnt	Dateisystem auf Gerät mit Hierarchie verbinden.
$ mount	Tabelle zeigen
$ umount /dev/fd	Dateisystem wieder entfernen

Durch mount könnte das früher gezeigte Dateisystem zum Beispiel so erweitert werden:

Whärend des boot-Vorgangs werde in aller Regel die in /etc/fstab festgelegten Dateisystem montiert.

Entfernte Dateisystem werden, falls möglich, mittels automount montiert.

$ cd /var/yp/src
$ ls aut*
auto.direct      auto.direct.was  auto.master
auto.direct.old  auto.home        auto.vol
$ cat auto.home | sed 5q
#       auto.home
#       mounted at /home, everybody's home directory

bischof            portos:/export/home/bischof
hp             -rw,anon=0      thor:/export/home/hp
$ cat /etc/rc.local
....
#
# start up the automounter
#
LOCALSERVER1=thor; export LOCALSERVER1
LOCALSERVER2=thor; export LOCALSERVER2
if [ -f /usr/etc/automount ]; then
        automount  &&           echo -n ' automount '
        # automount -tl ${AUTOTIME:=300} &&             echo -n ' automount'
fi
                                echo '.'
...
$ cat auto.direct
#       auto.direct
#       can be hierarchical, mounted almost always
#
#       LOCALSERVER1, ...       serve /usr/local for architecture
#       ARCH                    architecture-specific

/usr/distrib    -ro     thor:/export/home/distrib

/usr/local      \
        /       -rw     $LOCALSERVER1:/export/local/$ARCH/local \
                        $LOCALSERVER2:/export/local/$ARCH/local \
        /X      -rw     iduna:/export/X11R6

/usr/man        -rw     thor:/export/man/$ARCH
/usr/openwin    -rw     thor:/export/openwin


back | next | up | down | Inhalt | Uebungen | Complete | Kommentar


Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 03/July/97