Einhängen von meinem NAS-Laufwerk

More
27 Feb 2024 19:24 - 27 Feb 2024 19:41 #294627 by Yoshyluebeck
Hallo zusammen,
Ich möchte gerne von meinem LinuxCnc Rechner auf mein Nas zugreifen.
Wenn ich das Laufwerk mounte kann ich darauf zugreifen.
sudo mount -t cifs //192.168.178.62/4tb /mnt/nas -o username=rainer,password=4711,uid=$(id -u),gid=$(id -g),file_mode=0777,dir_mode=0777

Wenn ich folgendes in die fstab eingebe kann ich nicht auf das Nas Laufwerk zugreifen. Ich bin Linux Anfänger und Linux ist schon eine Umstellung für mich!

# NAS-Laufwerk
//192.168.178.62/4tb /mnt/nas cifs vers=3.0,username=rainer,password=4711,uid=$(id -u),gid=$(id -g),file_mode=0777,dir_mode=0777 0 0

Ich habe folgendes installiert
sudo apt update
sudo apt install cifs-utils


 
Last edit: 27 Feb 2024 19:41 by Yoshyluebeck.

Please Log in or Create an account to join the conversation.

More
27 Feb 2024 19:51 #294634 by tommylight
"Mount" fehlt beim fstab ?!?!

Please Log in or Create an account to join the conversation.

More
27 Feb 2024 19:57 #294636 by spicer
In fstab steht kein mount Befehl. Das hat Yosh richtig gemacht!
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
27 Feb 2024 20:01 #294637 by tommylight
Ich wil sehen was steht im meinem fstab spater, aber ich nutze NFS.
Danke.

Please Log in or Create an account to join the conversation.

More
27 Feb 2024 20:05 - 27 Feb 2024 20:09 #294638 by spicer
In meiner fstab (Linux Mint Desktop) steht:
//192.168.1.2/dokumente /home/daniel/dokumente cifs defaults,nofail,uid=1000,credentials=/root/.smbcredentials
Wobei in .smbcredentials User und Passwort stehn.
Das NAS ist ein Synology und das Unterverzeichnis ist "dokumente".
Last edit: 27 Feb 2024 20:09 by spicer.

Please Log in or Create an account to join the conversation.

More
27 Feb 2024 20:36 #294641 by Tchefter
Hi Yosh,

ich habe das explizit genau nach dieser Anleitung gemacht und funktioniert!
Evtl. hilft dir das weiter

Please Log in or Create an account to join the conversation.

More
28 Feb 2024 11:36 #294690 by Yoshyluebeck
Hallo liebe Leute,
Ich habe es hinbekommen. Ich habe den Eintrag für die Fstab angepasst und jetzt funktionier es einwandfrei! Ich habe diesen Teil entfernt.

uid=$(id -u),gid=$(id -g)

# NAS-Laufwerk
//192.168.178.62/4tb /mnt/nas cifs vers=3.0,username=rainer,password=4711,file_mode=0777,dir_mode=0777 0 0

# NAS-Laufwerk
//192.168.178.62/4tb /mnt/nas cifs vers=3.0,username=rainer,password=4711,uid=$(id -u),gid=$(id -g),file_mode=0777,dir_mode=0777 0 0

Please Log in or Create an account to join the conversation.

More
28 Feb 2024 13:44 #294695 by tommylight
Dise sind fuhr die NFS shares im meinen fstab:
#share on NAS
192.168.1.252:/mnt/RaidZ /home/cnc/SSD5X240 nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0


192.168.1.252:/mnt/hdd3x500 /home/cnc/HDD3X500 nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

Please Log in or Create an account to join the conversation.

Time to create page: 0.170 seconds
Powered by Kunena Forum