Re: mountpoint "überladen" ?
* Peter Holm <pholm@gmx.de> wrote:
> was genau passiert eigentlich, wenn man ein bereits vorhandenes
> directory als mountpunkt für eine neue festplatte z.B. benutzt?
rechner:/mnt# echo test > loop/foo
rechner:/mnt# ls loop/
foo
rechner:/mnt# mount -o loop /tmp/rootfs loop/
rechner:/mnt# ls loop/
bin boot dev etc lib lost+found mnt opt proc sbin tmp usr
var
rechner:/mnt# umount loop/
rechner:/mnt# ls loop/
foo
Außerdem gibt's ja noch die manpage:
The standard form of the mount command, is
mount -t type device dir
This tells the kernel to attach the file system found on device
(which is of type type) at the directory dir. The previous
contents (if any) and owner and mode of dir become invisible,
and as long as this file system remains mounted, the pathname
dir refers to the root of the file system on device.
Die eigentlichen Dateien des Verzeichnisses werden also einfach
"unsichtbar", bis das Verzeichnis wieder ungemountet wird - sie werden
sozusagen überdeckt.
Gruß, Georg
Reply to: