{"id":4172,"date":"2020-04-18T12:19:15","date_gmt":"2020-04-18T00:19:15","guid":{"rendered":"http:\/\/www.zoyinc.com\/?p=4172"},"modified":"2020-04-18T12:20:15","modified_gmt":"2020-04-18T00:20:15","slug":"cannot-mount-block-device-error-mounting-centos-share-on-omv","status":"publish","type":"post","link":"http:\/\/www.zoyinc.com\/?p=4172","title":{"rendered":"Cannot mount block device : Error mounting CentOS share on OMV"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4174\" src=\"http:\/\/www.zoyinc.com\/wp-content\/uploads\/2020\/04\/CannotMountBlock02.jpg\" alt=\"\" width=\"649\" height=\"67\" \/><\/p>\n<p>I needed to have a scheduled job to copy files from my MythTV server to my Open Media Vault server, but when I tried to mount the Samba\/SMB share I got the following:<\/p>\n<pre class=\"crayon:false;\">root@nas2:\/mnt# mount -t cifs \\\\\\\\192.168.202.44\\\\public \/mnt\/192.168.202.44 -o domain=CANTABRIAN,user=backup,pass=mypassword\r\nmount: block device \\\\192.168.202.44\\public is write-protected, mounting read-only\r\nmount: <span style=\"background-color: #ffff00;\">cannot mount block device<\/span> \\\\192.168.202.44\\public read-only<\/pre>\n<p>My Open Media Vault, OMV, server was running Debian with Samba version 3.6.6. This was trying to mount a share from my MythTV host which is running CentOS 7 and Samba 4.8.3.<\/p>\n<p>Tried about a million things but just could not get past the error.<\/p>\n<p>What worked was adding &#8220;sec=ntlmssp&#8221;. Looking at the RedHat docs it says:<\/p>\n<p style=\"padding-left: 30px;\"><em>If the server does not support the <code class=\"command\">ntlmv2<\/code> security mode, use <code class=\"option\">sec=ntlmssp<\/code>, which is the default. For security reasons, do not use the insecure <code class=\"command\">ntlm<\/code> security mode.<\/em><\/p>\n<p>So the working line is:<\/p>\n<pre class=\"crayon:false;\">mount -t cifs \\\\\\\\192.168.202.44\\\\public \/mnt\/192.168.202.44 -o domain=CANTABRIAN,user=backup,pass=mypassword<span style=\"background-color: #ffff00;\">,sec=ntlmssp<\/span><\/pre>\n<p>&nbsp;<\/p>\n<h2>Resources<\/h2>\n<p>RedHat: Mounting an SMB Share<br \/>\n<a  href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/7\/html\/storage_administration_guide\/mounting_an_smb_share\">https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/7\/html\/storage_administration_guide\/mounting_an_smb_share<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to have a scheduled job to copy files from my MythTV server to my Open Media Vault server, but when I tried to mount the Samba\/SMB share I got the following: root@nas2:\/mnt# mount -t cifs \\\\\\\\192.168.202.44\\\\public \/mnt\/192.168.202.44 -o domain=CANTABRIAN,user=backup,pass=mypassword mount: block device \\\\192.168.202.44\\public is write-protected, mounting read-only mount: cannot mount block device \\\\192.168.202.44\\public [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4175,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[553],"tags":[628,555,556,335,318,295,627,319,320,554,6,557,575,334,333,629],"class_list":["post-4172","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-block-device","tag-centos","tag-centos7","tag-cifs","tag-debian","tag-linux","tag-mount","tag-omv","tag-open-media-vault","tag-red-hat","tag-redhat","tag-rhel7","tag-samba","tag-share","tag-smb","tag-write-protected"],"_links":{"self":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/4172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4172"}],"version-history":[{"count":3,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/4172\/revisions"}],"predecessor-version":[{"id":4178,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/posts\/4172\/revisions\/4178"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=\/wp\/v2\/media\/4175"}],"wp:attachment":[{"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4172"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zoyinc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}