{"id":87,"date":"2016-10-15T23:19:42","date_gmt":"2016-10-15T16:19:42","guid":{"rendered":"http:\/\/prosindo.com\/blog\/?p=87"},"modified":"2020-04-24T16:56:53","modified_gmt":"2020-04-24T09:56:53","slug":"mounting-windows-7-share-on-raspbian-raspberry-pi","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2016\/10\/15\/mounting-windows-7-share-on-raspbian-raspberry-pi\/","title":{"rendered":"Mounting Windows 7 Share on Raspbian Raspberry Pi"},"content":{"rendered":"<p>Use this command to access windows shared folder with guest user:<\/p>\n<p><code>sudo mount -t cifs -o guest \"\/\/SERVER\/share\" \/mnt\/mountfolder<\/code><\/p>\n<p>Or use this command for password protected share:<\/p>\n<p><code>sudo mount -t cifs -o username=user,password=password \/\/SERVER\/share \/mnt\/mountfolder<\/code><\/p>\n<p>You can use this command to mount as a user<\/p>\n<p><code>sudo mount -t cifs -o username=username,password=password,uid=userid,gid=group \/\/SERVER\/share \/mnt\/mountfolder<\/code><\/p>\n<p>If mounting a Windows 7 (SMB) share on Linux gives us a \u201cRemote I\/O error\u201d like below:<\/p>\n<p><code>mount error(121): Remote I\/O error<br \/>\nRefer to the mount.cifs(8) manual page (e.g. man mount.cifs)<\/code><\/p>\n<p>Solution #1:<\/p>\n<p>This is Windows problem and following registry values need to be changed:<br \/>\n<code>HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\LargeSystemCache<br \/>\nset it to 1<br \/>\nHKLM\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters\\Size<br \/>\nset it to 3<\/code><\/p>\n<p>Solution #2:<\/p>\n<p>From the man page:<br \/>\n<code>vers = SMB protocol version. Allowed values are:<\/code><br \/>\n<code>\u00b7 1.0 \u2013 The classic CIFS\/SMBv1 protocol. This is the default.<\/code><br \/>\n<code>\u00b7 2.0 \u2013 The SMBv2.002 protocol. This was initially introduced in Windows Vista Service Pack 1, and Windows Server 2008. Note that the initial release version of Windows Vista spoke a slightly different dialect (2.000) that is not supported.<\/code><br \/>\n<code>\u00b7 2.1 \u2013 The SMBv2.1 protocol that was introduced in Microsoft Windows 7 and Windows Server 2008R2.<\/code><br \/>\n<code>\u00b7 3.0 \u2013 The SMBv3.0 protocol that was introduced in Microsoft Windows 8 and Windows Server 2012.<\/code><\/p>\n<p>Here is the corrected command which now works for me:<\/p>\n<p><code>sudo mount -t cifs \/\/192.168.x.x\/share ~\/share -o username=bob,vers=2.1<\/code><\/p>\n<p>Source:<br \/>\n&#8211; http:\/\/wood1978.dyndns.org\/~wood\/wordpress\/2014\/12\/17\/solve-mount-cifs-remote-io-error-after-data-transfer\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use this command to access windows shared folder with guest user: sudo mount -t cifs -o guest &#8220;\/\/SERVER\/share&#8221; \/mnt\/mountfolder Or use this command for password protected share: sudo mount -t cifs -o username=user,password=password \/\/SERVER\/share \/mnt\/mountfolder You can use this command to mount as a user sudo mount -t cifs -o username=username,password=password,uid=userid,gid=group \/\/SERVER\/share \/mnt\/mountfolder If mounting &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2016\/10\/15\/mounting-windows-7-share-on-raspbian-raspberry-pi\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mounting Windows 7 Share on Raspbian Raspberry Pi&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8,11,20,23,34],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-cifs","tag-error-121","tag-raspberry-pi","tag-samba","tag-windows-share"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":2,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}