<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Correct syntax for mounting a windows share in the /etc/fstab file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481468#M82291</link>
    <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;I am trying to mount a Windows share using the /etc/fstab file. The Windows share can be mounted manually using the following command syntax:&lt;BR /&gt;&lt;BR /&gt;mount -t cifs //&lt;WINDOWS server=""&gt;/Photon-CMS -o username=&lt;USERNAME&gt;,password=&lt;PASSWORD&gt; /FOCUS/tmp/network/import&lt;BR /&gt;&lt;BR /&gt;The command syntax that I used in the /etc/fstab file to automate the process shown above is the following:&lt;BR /&gt;&lt;BR /&gt;//&lt;WINDOWS server=""&gt;/Photon-CMS$ /FOCUS/tmp/network/import cifs user=&lt;USERNAME&gt;,password=&lt;PASSWORD&gt; 0 0&lt;BR /&gt;&lt;BR /&gt;However, when I ran the mount -a command, I got the following error:&lt;BR /&gt;&lt;BR /&gt;mount error 6 = No such device or address&lt;BR /&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) &lt;BR /&gt;&lt;BR /&gt;I tried the smbfs instead of the cifs option in the fstab line. The new syntax read as follows:&lt;BR /&gt;&lt;BR /&gt;//&lt;WINDOWS server=""&gt;/Photon-CMS$ /FOCUS/tmp/network/import smbfs user=&lt;USERNAME&gt;,password=&lt;PASSWORD&gt; 0 0&lt;BR /&gt;&lt;BR /&gt;When I ran the mount -a command again, the output that I got was the following: &lt;BR /&gt;&lt;BR /&gt;Unknown parameter encountered: "client code page"&lt;BR /&gt;Ignoring unknown parameter "client code page"&lt;BR /&gt;6309: session setup failed: ERRDOS - ERRnoaccess (Access denied.)&lt;BR /&gt;SMB connection failed &lt;BR /&gt;&lt;BR /&gt;The user account is a domain user account. I vaguely remember an option that addresses this issue, but I don't remember the syntax.&lt;BR /&gt;&lt;BR /&gt;What is the correct syntax for the fstab file? Thanks.&lt;BR /&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/WINDOWS&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/WINDOWS&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/WINDOWS&gt;</description>
    <pubDate>Tue, 18 Aug 2009 11:37:52 GMT</pubDate>
    <dc:creator>Andrew Kaplan</dc:creator>
    <dc:date>2009-08-18T11:37:52Z</dc:date>
    <item>
      <title>Correct syntax for mounting a windows share in the /etc/fstab file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481468#M82291</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;I am trying to mount a Windows share using the /etc/fstab file. The Windows share can be mounted manually using the following command syntax:&lt;BR /&gt;&lt;BR /&gt;mount -t cifs //&lt;WINDOWS server=""&gt;/Photon-CMS -o username=&lt;USERNAME&gt;,password=&lt;PASSWORD&gt; /FOCUS/tmp/network/import&lt;BR /&gt;&lt;BR /&gt;The command syntax that I used in the /etc/fstab file to automate the process shown above is the following:&lt;BR /&gt;&lt;BR /&gt;//&lt;WINDOWS server=""&gt;/Photon-CMS$ /FOCUS/tmp/network/import cifs user=&lt;USERNAME&gt;,password=&lt;PASSWORD&gt; 0 0&lt;BR /&gt;&lt;BR /&gt;However, when I ran the mount -a command, I got the following error:&lt;BR /&gt;&lt;BR /&gt;mount error 6 = No such device or address&lt;BR /&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) &lt;BR /&gt;&lt;BR /&gt;I tried the smbfs instead of the cifs option in the fstab line. The new syntax read as follows:&lt;BR /&gt;&lt;BR /&gt;//&lt;WINDOWS server=""&gt;/Photon-CMS$ /FOCUS/tmp/network/import smbfs user=&lt;USERNAME&gt;,password=&lt;PASSWORD&gt; 0 0&lt;BR /&gt;&lt;BR /&gt;When I ran the mount -a command again, the output that I got was the following: &lt;BR /&gt;&lt;BR /&gt;Unknown parameter encountered: "client code page"&lt;BR /&gt;Ignoring unknown parameter "client code page"&lt;BR /&gt;6309: session setup failed: ERRDOS - ERRnoaccess (Access denied.)&lt;BR /&gt;SMB connection failed &lt;BR /&gt;&lt;BR /&gt;The user account is a domain user account. I vaguely remember an option that addresses this issue, but I don't remember the syntax.&lt;BR /&gt;&lt;BR /&gt;What is the correct syntax for the fstab file? Thanks.&lt;BR /&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/WINDOWS&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/WINDOWS&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;&lt;/WINDOWS&gt;</description>
      <pubDate>Tue, 18 Aug 2009 11:37:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481468#M82291</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2009-08-18T11:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for mounting a windows share in the /etc/fstab file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481469#M82292</link>
      <description>Please see these methods:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.centos.org/TipsAndTricks/WindowsShares" target="_blank"&gt;http://wiki.centos.org/TipsAndTricks/WindowsShares&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Try with a share that does not contains "$" first.</description>
      <pubDate>Tue, 18 Aug 2009 13:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481469#M82292</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-08-18T13:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Correct syntax for mounting a windows share in the /etc/fstab file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481470#M82293</link>
      <description>Hi there -- &lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. I checked out the URL you mentioned, and I am using the so-called "Better Method" of mounting the samba mount. &lt;BR /&gt;&lt;BR /&gt;The problem that I am seeing now is the following: Using the following syntax in the fstab file,&lt;BR /&gt;&lt;BR /&gt;//&lt;WINDOWS server=""&gt;/Photon-CMS$ /FOCUS/tmp/network/import cifs user,uid=1961,rw,noauto,suid,credentials=/root/secret.txt 0 0&lt;BR /&gt;&lt;BR /&gt;and running the mount -a command, the mount in question does not appear to be mounted, although no errors are indicated with the command.&lt;BR /&gt;&lt;BR /&gt;The above syntax was used with uid 1961, which is local user account, as well as uid 0, which is the local root account. &lt;BR /&gt;&lt;BR /&gt;What other step(s) do I need to take to rectify this issue? Thanks. &lt;BR /&gt;&lt;BR /&gt;&lt;/WINDOWS&gt;</description>
      <pubDate>Wed, 19 Aug 2009 13:51:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/correct-syntax-for-mounting-a-windows-share-in-the-etc-fstab/m-p/4481470#M82293</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2009-08-19T13:51:03Z</dc:date>
    </item>
  </channel>
</rss>

