Avatar of gerhardub
gerhardub

asked on 

"mount" command question / windows interop question

I'm running an NFS service on a Windows box in order to connect to it.  (If there is a better and easy way to do this, please let me know.)

Anyway, I've got NIS running and Windows 2003 R2 is mapping the Linux to Windows users for authentication.

I'm attempting to mount the Windows NFS share, called "fs2share."

The command I'm using is:

[sudo] mount -t fs2:/fs2share

No error is generated and the command seems to work...  How do I know mount a directory or some such?

(If I issue the command mount fs2:/fs2share /home/ I get an input/output error.  I assume that's because there is an existing home directory?)

Any help or infor would be greatly appricated!
Server SoftwareLinuxLinux Networking

Avatar of undefined
Last Comment
veedar
Avatar of RichardSlater
RichardSlater
Flag of United Kingdom of Great Britain and Northern Ireland image

Taking it from the bottom up

 - Yes the reason you are getting an error is the /home directory will already have files in it, if you want to mount it some where I would recomend /mount or /mnt.

 - Have a look at /etc/fstab, there should be a entry in there relating to fs2:/fs2share

 - Take a look at samba for a way to connect to normal windows shares ( http://us4.samba.org/samba/ )
Avatar of veedar
veedar
Flag of United States of America image

You do not need to run NFS on Windows. Assuming your Windows file server is named fs2 and you have a share named fs2share. Try this where xxx is the name of a Windows user with share access permisions...

sudo mkdir /winshare
sudo mount -t cifs //fs2/fs2share  /winshare -o user=xxx,password=xxx

Some linux kernels may not support cifs in which case try...

sudo mount -t smbfs //fs2/fs2share  /winshare -o user=xxx,password=xxx

See also...
http://us1.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html
Avatar of gerhardub
gerhardub

ASKER

Well,

That's a great solution if you have one user connecting to a Windows box... but what do you do if you want 20 or 30 Linux users connecting to a shared windows file server?
ASKER CERTIFIED SOLUTION
Avatar of veedar
veedar
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo