Ubuntu – Systemshares per cifs (smb) mounten
Inhalt
Inhalt
Beschreibung
Dieser Artikel beschreibt die Einrichtung von automatisch gemountete Systemshares
Hersteller | unbekannt |
Autor(en) | unbekannt |
Lizenz | Opensource |
OS | Ubuntu Linux: Ubuntu 14.04.1 lts Ubuntu 16.04.1 lts |
Kernel | diverse |
Funktion | io |
Status | closed |
Installation
Vor Einrichtung ist sicherzustellen dass die nötigen NFS & CIFS Client Pakete installiert sind. NFS dient bei mir persönlich immer nur als fallback. CIFS ist wegen der besseren Berechtigungsvergabe und Kompatibilität innerhalb gemischter Netze mit Windows Clients vorzuziehen.
sudo apt-get install nfs-common cifs-utils
Konfiguration
sudo mkdir /mnt/ds-wy01_multimedia sudo mkdir /mnt/ds-wy01_multimedia-loc sudo chmod 777 /mnt/ds-wy01_multimedia* sudo echo //10.xx.xx.213/multimedia /mnt/ds-wy01_multimedia cifs credentials=/home/.smbcredent-ds-wy01_multimedia,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 0 0 >> /etc/fstab echo username=xbmc >> /home/.smbcredent-ds-wy01_multimedia echo password=YOURSUPERSECRETPASSWORD >> /home/.smbcredent-ds-wy01_multimedia sudo mount /mnt/ds-wy01_multimedia sudo mkdir /mnt/ds-wy01_public sudo mkdir /mnt/ds-wy01_public-loc sudo chmod 777 /mnt/ds-wy01_public* sudo echo //10.xx.xx.213/public /mnt/ds-wy01_public cifs credentials=/home/.smbcredent-ds-wy01_public,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 0 0 >> /etc/fstab echo username=xbmc >> /home/.smbcredent-ds-wy01_public echo password=YOURSUPERSECRETPASSWORD >> /home/.smbcredent-ds-wy01_public sudo mount /mnt/ds-wy01_public sudo mkdir /mnt/ds-wy01_technik sudo mkdir /mnt/ds-wy01_technik-loc sudo chmod 777 /mnt/ds-wy01_technik* sudo echo //10.xx.xx.213/technik /mnt/ds-wy01_technik cifs credentials=/home/.smbcredent-ds-wy01_technik,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 0 0 >> /etc/fstab echo username=xbmc >> /home/.smbcredent-ds-wy01_technik echo password=YOURSUPERSECRETPASSWORD >> /home/.smbcredent-ds-wy01_technik sudo mount /mnt/ds-wy01_technik sudo mkdir /mnt/ds-wy02_multimedia sudo mkdir /mnt/ds-wy02_multimedia-loc sudo chmod 777 /mnt/ds-wy02_multimedia* sudo echo //10.xx.xx.214/multimedia /mnt/ds-wy02_multimedia cifs credentials=/home/.smbcredent-ds-wy02_multimedia,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 0 0 >> /etc/fstab echo username=xbmc >> /home/.smbcredent-ds-wy02_multimedia echo password=YOURSUPERSECRETPASSWORD >> /home/.smbcredent-ds-wy02_multimedia sudo mount /mnt/ds-wy02_multimedia sudo mkdir /mnt/ds-wy02_video sudo mkdir /mnt/ds-wy02_video-loc sudo chmod 777 /mnt/ds-wy02_video* sudo echo //10.xx.xx.214/video /mnt/ds-wy02_video cifs credentials=/home/.smbcredent-ds-wy02_video,uid=1000,gid=1000,file_mode=0777,dir_mode=0777 0 0 >> /etc/fstab echo username=xbmc >> /home/.smbcredent-ds-wy02_video echo password=YOURSUPERSECRETPASSWORD >> /home/.smbcredent-ds-wy02_video sudo mount /mnt/ds-wy02_video
Hinterlasse eine Antwort