mkdir im symbolischen Link zum Windows-Mount verweist auf eigenes Verzeichnis

mkdir im symbolischen Link zum Windows-Mount verweist auf eigenes Verzeichnis

Ich verwende derzeitWindows-Subsystem für Linuxum meine Linux-Programme auszuführen, habe ich beim Konfigurieren meines Home-Verzeichnisses beschlossen, meinen Windows-Dokumentenordner darin zu verknüpfen, um einfach auf meine Daten zugreifen zu können.

Wenn ich jedoch innerhalb dieses symbolischen Links ein Verzeichnis erstelle, verweist das neue Verzeichnis zurück auf das Verzeichnis, in dem ich mich gerade befunden habe, wodurch eine Endlosschleife entsteht. Beispiel:

user@host:~$ ln -s /mnt/c/Users/John/Documents/ /home/Paradoxis/Documents
user@host:~$ cd Documents
user@host:~/Documents$ ls -la
total 12
drwxrwxrwx 2 root root   0 Feb  1 15:17 .
drwxrwxrwx 2 root root   0 Feb  1 14:36 ..
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents$ mkdir Hello
user@host:~/Documents$ ls -la
total 12
drwxrwxrwx 2 root root   0 Feb  1 15:22 .
drwxrwxrwx 2 root root   0 Feb  1 14:36 ..
drwxrwxrwx 2 root root   0 Feb  1 15:22 Hello
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents$ cd Hello
user@host:~/Documents/Hello$ ls -la
total 12
drwxrwxrwx 2 root root   0 Feb  1 15:22 .
drwxrwxrwx 2 root root   0 Feb  1 14:36 ..
drwxrwxrwx 2 root root   0 Feb  1 15:22 Hello
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents/Hello$ cd Hello/
user@host:~/Documents/Hello/Hello$ ls -la
total 12
drwxrwxrwx 2 root root   0 Feb  1 15:22 .
drwxrwxrwx 2 root root   0 Feb  1 14:36 ..
drwxrwxrwx 2 root root   0 Feb  1 15:22 Hello
-rwxrwxrwx 1 root root 402 Dec 15 13:42 desktop.ini
user@host:~/Documents/Hello/Hello$ # Goes on forever

Gibt es eine Möglichkeit, das zu beheben? Danke

verwandte Informationen