HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Correct syntax for mounting a windows share in the...
Operating System - Linux
1830216
Members
1951
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 04:37 AM
08-18-2009 04:37 AM
Correct syntax for mounting a windows share in the /etc/fstab file
Hi there --
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:
mount -t cifs ///Photon-CMS -o username=,password= /FOCUS/tmp/network/import
The command syntax that I used in the /etc/fstab file to automate the process shown above is the following:
///Photon-CMS$ /FOCUS/tmp/network/import cifs user=,password= 0 0
However, when I ran the mount -a command, I got the following error:
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I tried the smbfs instead of the cifs option in the fstab line. The new syntax read as follows:
///Photon-CMS$ /FOCUS/tmp/network/import smbfs user=,password= 0 0
When I ran the mount -a command again, the output that I got was the following:
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
6309: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
The user account is a domain user account. I vaguely remember an option that addresses this issue, but I don't remember the syntax.
What is the correct syntax for the fstab file? Thanks.
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:
mount -t cifs //
The command syntax that I used in the /etc/fstab file to automate the process shown above is the following:
//
However, when I ran the mount -a command, I got the following error:
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
I tried the smbfs instead of the cifs option in the fstab line. The new syntax read as follows:
//
When I ran the mount -a command again, the output that I got was the following:
Unknown parameter encountered: "client code page"
Ignoring unknown parameter "client code page"
6309: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
The user account is a domain user account. I vaguely remember an option that addresses this issue, but I don't remember the syntax.
What is the correct syntax for the fstab file? Thanks.
A Journey In The Quest Of Knowledge
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2009 06:18 AM
08-18-2009 06:18 AM
Re: Correct syntax for mounting a windows share in the /etc/fstab file
Please see these methods:
http://wiki.centos.org/TipsAndTricks/WindowsShares
Try with a share that does not contains "$" first.
http://wiki.centos.org/TipsAndTricks/WindowsShares
Try with a share that does not contains "$" first.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2009 06:51 AM
08-19-2009 06:51 AM
Re: Correct syntax for mounting a windows share in the /etc/fstab file
Hi there --
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.
The problem that I am seeing now is the following: Using the following syntax in the fstab file,
///Photon-CMS$ /FOCUS/tmp/network/import cifs user,uid=1961,rw,noauto,suid,credentials=/root/secret.txt 0 0
and running the mount -a command, the mount in question does not appear to be mounted, although no errors are indicated with the command.
The above syntax was used with uid 1961, which is local user account, as well as uid 0, which is the local root account.
What other step(s) do I need to take to rectify this issue? Thanks.
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.
The problem that I am seeing now is the following: Using the following syntax in the fstab file,
//
and running the mount -a command, the mount in question does not appear to be mounted, although no errors are indicated with the command.
The above syntax was used with uid 1961, which is local user account, as well as uid 0, which is the local root account.
What other step(s) do I need to take to rectify this issue? Thanks.
A Journey In The Quest Of Knowledge
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP