Re: Komplexes mount
On 2004.03.09 07:28, Andreas Pakulat wrote:
On 06.Mar 2004 - 23:00:51, Andreas Schmidt wrote:
> Hallo,
>
> /dev/hdc1 --> /mnt/fileserver/pub/data
>
> Dachte mir, dass dies eine elegante Loesung waere, um ohne grossen
> Aufwand allen Usern, die ohnehin schon per mount --bind den Link
nach
> hda6 haben, auch die Daten auf hdc1 zugaenglich zu machen.
>
> ls /mnt/fileserver/pub/data zeigt auch den Inhalt der neuen Platte
an,
> alles kein Problem,
> ls ~/ftp/pub/data ist aber leer.
Hmm, also hier gehts, das einzige was mir so spontan einfaellt waere:
das gebindete Verz. unmounten und neu mounte.
Habe ich gemacht, nutzt nichts:
root@stralsunder-10:/mnt/fileserver/pub# mount
/dev/hda7 on /mnt/fileserver type ext3 (rw,noexec,nosuid,nodev)
/dev/hdc1 on /mnt/fileserver/pub/data type ext3 (rw)
root@stralsunder-10:/mnt/fileserver/pub# ls -l /mnt/fileserver/pub/
data/
total 28
drwx------ 2 root root 16384 Mar 6 18:15 lost+found
drwxr-x--- 4 andy media 4096 Feb 17 12:57 so_zeugs_halt
root@stralsunder-10:/mnt/fileserver/pub# ls -l /mnt/fileserver/pub/
total 16
drwxr-xr-x 6 root root 4096 Mar 9 19:26 data
root@stralsunder-10:/mnt/fileserver/pub# ls -l /home/andy/ftp-server/
total 8
drwxr-xr-x 2 andy andy 4096 Feb 7 13:38 incoming
drwxr-xr-x 2 andy andy 4096 Feb 6 23:21 pub
root@stralsunder-10:/mnt/fileserver/pub# ls -l /home/andy/ftp-server/
pub/
total 0
root@stralsunder-10:/mnt/fileserver/pub# mount --bind /mnt/fileserver/
pub/data /home/andy/ftp-server/pub/
root@stralsunder-10:/mnt/fileserver/pub# ls -l /home/andy/ftp-server/
pub/
total 28
drwx------ 2 root root 16384 Mar 6 18:15 lost+found
drwxr-x--- 4 andy media 4096 Feb 17 12:57 so_zeugs_halt
root@stralsunder-10:/mnt/fileserver/pub# umount /home/andy/ftp-server/
pub
root@stralsunder-10:/mnt/fileserver/pub# mount --bind /mnt/fileserver/
pub/ /home/andy/ftp-server/pub/
root@stralsunder-10:/mnt/fileserver/pub# ls -l /home/andy/ftp-server/
pub/
total 16
drwxr-x--- 2 andy media 4096 Mar 6 22:18 data
root@stralsunder-10:/mnt/fileserver/pub# ls -l /home/andy/ftp-server/
pub/data/
total 0
root@stralsunder-10:/mnt/fileserver/pub#
Vererbung von sub-mounts scheint also nicht zu funktionieren. Ich habe
es auch einmal damit versucht, alle Optionen ausser rw bei /dev/hda7 zu
deaktivieren -- aendert aber nichts. Hat vielleicht noch jemand eine
Idee?
Schoenen Gruss,
Andreas
Reply to: