LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2007, 06:37 PM   #1
Elguapo
Member
 
Registered: Mar 2005
Distribution: FC7
Posts: 42

Rep: Reputation: 15
Creating a network file server


I am on the tail end of finishing up a web application. I am far far far from a linux expert, and I have run into a little snag.

When certain processes of my application come into play. I need to create folders on the server. In my test enviroment everything works just fine. Now that I am wrapping up this portion of the application I need to move it from creating folders on the local machine to creating them on the network file server.

So my question is this, how do I access a network file server on our lan. IE if I was using a windows network I would use something like this to path to the folder I need to create folders in there. \\192.168.10.106\<instance name>\documents\.
 
Old 01-02-2007, 06:50 PM   #2
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
You'd probably want to mount the network folder first. Like you said, if using Windows as a file server then mount \192.168.10.106\<instance name>\documents\ to /mnt/webapplication (or whatever). You'd need smbfs/cifs kernel support as well as a package called smbfs (so when invoking mount -t smbfs it can do it). Then just write files there. You could also look into NFS as well if using a Linux/Unix file server.
 
Old 01-03-2007, 12:16 PM   #3
Elguapo
Member
 
Registered: Mar 2005
Distribution: FC7
Posts: 42

Original Poster
Rep: Reputation: 15
Thank you for the reply.

We are going to use a linux file server. I have read up on NFS and played around with it some, but I am a bit lost on how I would mount a NFS drive over a lan network. Do you know of any tutorials that can give me a helping hand.
 
Old 01-03-2007, 02:04 PM   #4
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
Google Linux NFS Howto or something and I'm sure you'll find alot of docs.

Once you have the server setup, to mount the share from a client all you do is:

mount server:/sharedfolder /mountpoint

Where server is the NFS computer (IP address could be used as well. /sharedfolder is whatever the NFS server share is called and /mountpoint is where on the client you want that share to be mapped to. If that works then add it to /etc/fstab and everytime the client boots it'll try to mount the drive automagically.
 
Old 01-03-2007, 03:48 PM   #5
Elguapo
Member
 
Registered: Mar 2005
Distribution: FC7
Posts: 42

Original Poster
Rep: Reputation: 15
Worked like a charm, thanks bitva. Now all I have to do is automate both processes.
 
  


Reply


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
backup server ; network file system / ftp-server ? markus1982 Linux - Security 5 06-06-2007 06:15 PM
Creating a File Server statto Linux - Newbie 8 11-09-2006 03:23 AM
creating a file server with about 100 users thefallenone Linux - Networking 4 03-14-2005 10:57 PM
Creating a file server accessable via http? ankursaxena Linux - Software 2 02-27-2005 11:55 AM
Creating a Linux file server Flak Pyro Linux - Software 6 11-21-2003 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:17 PM.

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