Mount error 121 remote i o error

Проблема работы samba с windows7 !!!

Собственно, столкнулся с тем, что при работе с ресурсами, расположенными на win7 наблюдается периодическое отваливание этих самих ресурсов.
Сегодня обнаружил проблему

mount error(121): Remote I/O errorОказывается виновата Win7
Решение:
в реестре windows:

HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache - установить значение 1 (По умолчанию там стоит 0)
HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize - установить значение 3 (По умолчанию там стоит 1)
После изменений перезапустить службу server (в русской win «сервер»)
Или просто перезагрузиться.
http://www.linuxquestions.org/questions/linux-server-73/mount-cifs-cannot-allocate-memory-or-remote-i-o-error-after-data-transfer-4175508385/

Подскажите куда это воткнуть на wiki?


Записан



Записан

Андрей Черепанов (cas@)


Завести http://www.altlinux.org/Samba

Кстати стоящая мысль, и туда-же выложить основные «типовые» конфигурации smb.conf, типа файловой валки и т.п.


Записан


Так-то завел, но не хватает материала:
1. Нужна сжатая информация по монтированию cifs из fstab
2. Просто быстрое монтирование из под пользователя типа:

mount -t cifs -o username=<UserName> -o password=<PassWd> //192.168.x.x/ShareName /home/user/destinationКстати, подобная конструкция не работает при использовании -o password=xxx но работает из fstab
3. Типовая конфигурация для шары принтера: способы создания, особенности настройки прав
4. Типовая конфигурация для файлопомойки

Можно ссылками из форума, я потом текст напишу.


Записан


Поиск на форуме работает.


Записан

Андрей Черепанов (cas@)


Поиск-то да, работает, просто очень трудно искать то, не знаю что.
Мне немного не хватает структурного понимания требуемой статьи.
Обсуждение проблем монтирования cifs в fstab я внимательно читал, даже использовал кое что от-туда, но есть несколько системных вопросов:
1.Существуют ли механизмы конфигурирования работы службы smb «на лету»? Т.е. без использования smb.conf.
2.Если да, то каковы особенности такого конфигурирования для каждого механизма. Будут ли отключаться существующие соединения? Что будет если менять права на доступ при наличии подключенных соединений?
3.Чем отличается доступ а-ля smb://serv/share от монтирования? (Принцип мне понятен, но без деталей)
4. Как сочетаются механизмы прав при использовании самбы с acl, без acl.
5. Особенности авторизации (какие виды поддерживает самба) Подробности не требуются, это есть в документации, но типовые применения нужны.

И т.п.
Ну и еще требуется обсуждение, какие конфигурации признать типовыми?!


Записан


1.Существуют ли механизмы конфигурирования работы службы smb «на лету»? Т.е. без использования smb.conf.

Насколько я знаю, нет. Если это не sysvol Samba AD DC

2.Если да, то каковы особенности такого конфигурирования для каждого механизма. Будут ли отключаться существующие соединения? Что будет если менять права на доступ при наличии подключенных соединений?

n/a

3.Чем отличается доступ а-ля smb://serv/share от монтирования? (Принцип мне понятен, но без деталей)

Во втором случае файлы на шаре будут видны программам как локальные файлы и, если программа не работает с сетевыми ресурсами напрямую (через gio/kioslaves/xine-plugin-samba), то она видит и может изменять эти файлы без проблем. А они прозрачно изменяются по сети.

4. Как сочетаются механизмы прав при использовании самбы с acl, без acl.

Точно также как сочетаются механизмы обычного юникосовых прав доступа (rwx-rwx-rwx) и acl.

5. Особенности авторизации (какие виды поддерживает самба) Подробности не требуются, это есть в документации, но типовые применения нужны.

Или локальная база, управляемая smbpasswd или LDAP (если выделенный сервер или ALT-домен)


Записан

Андрей Черепанов (cas@)



Записан


I’m upgrading to a new CentOS 7 machine to replace my CentOS 6 machine, and am trying to copy of my /etc/fstab over so I have access to the same machines. On my 6 machine, the following fstab entry works:

//hostname/sharename   /mnt/mountpoint   cifs   credentials=/etc/fstab.creds,uid=(userid),group=users,noperm 0 0

On the Centos 7 machine, i get «Invalid argument if i use group=users, so I need to put gid=100. Besides that, the command is the same:

//hostname/sharename  /mnt/mountpoint  cifs  credentials=/etc/fstab.creds,uid=(userid),gid=100,noperm 0 0

On the CentOS 6 machine, the mount works, but on the CentOS 7 machine, i get the following error:

mount error(121): Remote I/O error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The error occurs whether I use mount -a or run the mount manually (sudo mount -t cifs //hostname/…. all the same options).

I’m guessing something changed in one of the components used to perform the mounting, but I’m still not entirely sure how all the pieces tie together to do the mounting.

Has anyone else run into this or know more about any changes to the mounting that I could be running into?

Edit: In both cases, I’m trying to connect to the same share, and it’s still active when the mount failures occur.

Edit 2: Remote I/O Error was solved by changing my local uid to match the uid of my user on the share machine. However I’m now getting a different error with one of the other shares. The error is «No such device or address», even though the mount command seems to successfully look up the IP.:

mount.cifs kernel mount options: ip=(ipaddress),unc=\hostnamesharename,noperm,uid=(userid),gid=100,user=(username),domain=(domain),pass=******
Retrying with upper case share name
mount.cifs kernel mount options: ip=(ipaddress),unc=\HOSTNAMESHARENAME,noperm,uid=(userid),gid=100,user=(username),domain=(domain),pass=******
mount error(6): No such device or address
Refer to mount.cifs(8) manual page (e.g. man mount.cifs)
/mnt/hostname      : succesfully mounted

Also, for some reason it says successfully mounted, even though it failed. The difference with this share is that I need to connect with the specific username that doesn’t match my personal username, so the changed uid trick isn’t going to work here.

Why is it saying it can’t find the device or address? Is there any way to get additional information about the error? I’m already running mount with the -v option.

SOLVED: First issue (Remote I/O Error) was solved by changing my local user id to match my user ID on the machine where the share was. Second issue (No such device or address was because the share name I was trying to use wasn’t actually considered a share.. all the subfolders under it were shared individually. This was discovered by using smbclient -W (domain) -U (username) -L (hostname) to list the shares on the machine.

Hi all, I’ve been googleing an issue I’ve been having on and off for a few weeks, still no luck. It seems people HAD this problem around 2009, but no one recently.

So… I have a windows PC with a network share I’d like to access on another PC (Mint / Win7 dual boot), when I’m in win7, the share works fine 100% of the time, when I’m in mint, it works for a bit and then stops working, if I reboot my dual boot PC, no effect (except if I boot into win7, that still works fine), but rebooting into Mint, still can’t access the share. The only workaround is to reboot the target machine, then do a sudo mount -a on my Mint machine and all is well for a day or so.

Here’s the technical bits: my fstab entry (I’ve probably added unnecessary options while trying to fix it)

Code: Select all

//192.168.1.2/s /home/scott/stuff cifs username=user,password=MYPASS,uid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,_netdev,defaults 0 0

as mentioned above, this works for a bit, but if I go into windows for while, then come back to mint it doesn’t mount with this error:

Code: Select all

mount error(121): Remote I/O error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

If I do a

Code: Select all

smbclient -L //192.168.1.2/s -U user

I get

Code: Select all

protocol negotiation failed: ERRDOS:ERRnomem

Googling that says I need to change two win7 registry entries, I did, no effect.
Another test works fine:

Code: Select all

nc -v 192.168.1.2 445
Connection to 192.168.1.2 445 port [tcp/microsoft-ds] succeeded!

(port 139 works too)
So, is it a windows issue? If so, I’ll go to another forum. Windows -> Windows works 100%, is there anything I can do with CIFS to make it work all the time on Linux?

I’m running the latest and updated Mint, any other tech stuff you need to know, just ask.

Thanks,
Scott

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

I have a Windows 7 Sagetv system that has over 15TB worth of captured TV media on.  I want to be able to mount the Windows drive on my unRAID box, and then setup Plex in a Docker container and access the Sagetv Media from the Docker container.  Sounds pretty simple.  So, I was able to mount all 6 of my drives initially using the Remote SMB/NFS dialog.  However, sometime after mounting all my drives, I started getting 121 errors from Samba.  I found a couple of solutions online:

Change the registry keys:

————

Solution 1:

This is Windows problem and following registry values need to be changed:

HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache — set it to 1

HKLMSYSTEMCurrentControlSetServicesLanmanServerParametersSize — set it to 3

———————

Solution 2:

I got the same error, but found a different solution, since I did not want to mess with the Windows registry. Apparently, Windows 7 uses a different SMB version, and that needs to be specified on the command line in Linux. Once I add vers=2.1, I can connect without errors.

· 2.1 – The SMBv2.1 protocol that was introduced in Microsoft

Windows 7 and Windows Server 2008R2.

————————-

So, I tried solution 2 from the command line, and that worked successfully.

[email protected]:/boot/config/plugins/unassigned.devices# mount -v -ouser=*******,password=******** -t cifs //sagetv1/D /mnt/disks/sagetv1_D

mount.cifs kernel mount options: ip=192.168.0.10,unc=\sagetv1D,user=*******,pass=********

mount error(121): Remote I/O error

Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

[email protected]:/boot/config/plugins/unassigned.devices# mount -v -ouser=********,password=*******,vers=2.1 -t cifs //sagetv1/D /mnt/disks/sagetv1_D

mount.cifs kernel mount options: ip=192.168.0.10,unc=\sagetv1D,vers=2.1,user=********,pass=********

[email protected]:/boot/config/plugins/unassigned.devices# l /mnt/disks/sagetv1_D

./  ../  Plus.key*  SageTV/  System Volume Information/  Videos/  rsync.out*  rsync1.out*  sage.bak/

As can be seen, adding the vers clause as an option seems to have cleared up that issue. 

So, my question is this:  I found where the shares are stored on /boot/config/plugins/unassigned.devices/samba_mounts.cfg.  However, I was wondering if there is a way to add some additional samba options to that file (Like vers=2.1)?

All I see are these:

[//sagetv1/e]

protocol = «SMB»

ip = «sagetv1»

path = «e»

user = «********»

pass = «*******»

share = «e»

automount = «yes»

Понравилась статья? Поделить с друзьями:
  • Mount and blade 2 bannerlord как изменить культуру персонажа
  • Mount and blade 2 bannerlord как изменить культуру города
  • Mount and blade 2 bannerlord как изменить имя спутника
  • Mount and blade 2 bannerlord как изменить имя персонажа
  • Mount and blade 2 bannerlord как изменить возраст персонажа