This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:mount [2019/06/06 13:09] – [Commands] 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 ==== | ||
| Line 52: | Line 60: | ||
| < | < | ||
| - | ==== Commands ==== | + | ===== Versions ===== |
| + | |||
| + | ==== CIFS ==== | ||
| + | |||
| + | ^ Version | ||
| + | | %%vers=3.0%% | ||
| + | | %%vers=2.1%% | ||
| + | | %%vers=2.0%% | ||
| + | | %%vers=1.0%% | ||
| + | |||
| + | ===== Commands | ||
| ^ Command | ^ Command | ||
| Line 58: | Line 76: | ||
| | %%mount -t nfs < | | %%mount -t nfs < | ||
| | %%mount -t cifs //< | | %%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: | ||