Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-17-2009, 11:32 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Connecting RHEL 3 to Windows 2003 Share?

I am attempting to connect RHEL3 to a Windows Server 2003 Shared drive.
I am able to mount the shared drive, however when I run ls to view the drive I receive the error: Stale NFS File Handle

Steps I have taken so far:

mount //server-name/S /mnt/share, mount is ok same error as above
#smbmount // server-name/S /mnt/share, mount is ok same error as above
# mount -t smbfs -o username=<name>,password=pw //netboisname/sharename /mountpoint

When typing the above (with the correct username and password inserted) I am getting this on the screen: and the mount is not successful.

Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .[/SIZE][/SIZE]

Lastly I have gone into the Windows 2003 server under the Default Domain policy, Security, Local policy settings, and disabled Network Digitally sign communications, and digitally sign communication if the client agrees

Any ideas would be appreciated,
Thank you
Old 05-05-2009, 06:35 AM   #2
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56

Try cifs instead of smbfs, as follows:-
mount -t cifs -o username=<name>,password=pw //netboisname/sharename /mountpoint
If this is to be remounted on startup, you can add it to /etc/fstab like this:-
//netboisname/sharename    /mountpoint           cifs    _netdev,credentials=/etc/samba/cred.txt 0 0
The file /etc/samba/cred.txt is a simple text file with 600 permissions and owned by root. The content looks like this:-


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting via samba to share on windows 2003 draelo Linux - Networking 3 04-29-2009 06:43 AM
Windows 2003 server on RHEL 5 Xen bobbera Linux - Enterprise 0 05-19-2008 02:24 PM
Switching from windows 2003 to RHEL 4 nx5000 Red Hat 6 12-15-2006 06:37 AM
windows 2003 and debian share nadirm Linux - Networking 3 01-25-2005 04:58 PM
windows 2003 and debian share nadirm Linux - Networking 1 01-24-2005 06:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration