This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:general:mount [2019/01/08 13:26] – [Perm. mount] lunetikk | linux:general:mount [2020/01/09 16:36] (current) – lunetikk | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Mount networkshares ===== | ===== Mount networkshares ===== | ||
+ | |||
+ | ==== Clientpackages to mount shares ==== | ||
+ | |||
+ | CIFS:\\ | ||
+ | < | ||
+ | |||
+ | NFS:\\ | ||
+ | < | ||
==== Temp. mount ==== | ==== Temp. mount ==== | ||
+ | === CIFS / SAMBA === | ||
< | < | ||
mount -t cifs //< | mount -t cifs //< | ||
Line 13: | Line 22: | ||
Make sure you can access it and that you can see files. If you already have files at " | Make sure you can access it and that you can see files. If you already have files at " | ||
Also create a file with < | Also create a file with < | ||
+ | |||
+ | === NFS === | ||
+ | < | ||
+ | mount -t nfs < | ||
+ | </ | ||
+ | or with additional parameters | ||
+ | < | ||
+ | mount -t nfs < | ||
+ | </ | ||
+ | |||
+ | Make sure you can access it and that you can see files. If you already have files at " | ||
+ | Also create a file with < | ||
==== Perm. mount ==== | ==== Perm. mount ==== | ||
+ | |||
+ | === CIFS / SAMBA === | ||
Insert in "/ | Insert in "/ | ||
Line 28: | Line 51: | ||
Execute | Execute | ||
< | < | ||
+ | |||
+ | === NFS === | ||
+ | |||
+ | Insert in "/ | ||
+ | < | ||
+ | |||
+ | Execute | ||
+ | < | ||
+ | |||
+ | ===== Versions ===== | ||
+ | |||
+ | ==== CIFS ==== | ||
+ | |||
+ | ^ Version | ||
+ | | %%vers=3.0%% | ||
+ | | %%vers=2.1%% | ||
+ | | %%vers=2.0%% | ||
+ | | %%vers=1.0%% | ||
+ | |||
+ | ===== Commands ===== | ||
+ | |||
+ | ^ Command | ||
+ | | %%showmount -e < | ||
+ | | %%mount -t nfs < | ||
+ | | %%mount -t cifs //< | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== Cant mount Windowsshares (CIFS) on Linux ==== | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Mounting your share leads to the following error | ||
+ | |||
+ | < | ||
+ | mount error(9): Bad file descriptor | ||
+ | </ | ||
+ | |||
+ | === Reason === | ||
+ | |||
+ | Microsoft released an Update (January 8, 2019 (Monthly Rollup)) which broke smb2.0 and 2.1 connections.\\ | ||
+ | |||
+ | The issue affect Windows 7 and Windows Server 2008 (R2). | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | === Fix === | ||
+ | |||
+ | Microsoft released a fix to fix their update... m( | ||
+ | < | ||
+ | This update resolves the issue where local users who are part of the local “Administrators“ group may not be able to remotely access shares on Windows 7 SP1 and Windows Server 2008 R2 machines after installing the January 8th, 2019 security updates. | ||
+ | This does not affect domain accounts in the local " | ||
+ | </ | ||
+ | |||
+ | Download KB4487345 and install the fix: [[http:// | ||
+ | |||
+ | |||
+ | ==== CIFS share is mounted but permission is denied ==== | ||
+ | |||
+ | === Description === | ||
+ | |||
+ | Listing the files doesnt work because of missing permission | ||
+ | < | ||
+ | ll /< | ||
+ | ls: reading directory /< | ||
+ | total 0 | ||
+ | </ | ||
+ | |||
+ | === Reason === | ||
+ | |||
+ | Wrong CIFS version | ||
+ | |||
+ | === Fix === | ||
+ | |||
+ | Add the correct version (vers=1.0/ | ||
+ | < | ||
+ | # in /etc/fstab as perm. mount | ||
+ | //< | ||
+ | |||
+ | # temp. mount | ||
+ | mount -t cifs //< | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
\\ | \\ | ||
\\ | \\ | ||
~~DISCUSSION: | ~~DISCUSSION: |