> how do i do this i have two machines running redhat 5.2 with networking
> cards
> i can ping both machines *how do i share drives?
> Look at the SMB-HOWTO /usr/doc/HOWTO/SMB-HOWTO. Also look at man
> smbpasswd.
The normal *nix method is NFS mounts.
place an entry in /etc/exports for each machine
such as:
/ 10.1.1.1(rw,no_root_squash,link-relative)
HUP the nfs server ( type '/etc/rc.d/init.d/nfs restart' ) . Create a
local mountpoint then mount the other system.
mount other_ip:/ /mountpoint
if this works, setup your /etc/fstab to recognize the other system so
the command 'mount /mountpoint' is all you need. This mount can even be
automatic on startup.
see: http://metalab.unc.edu/LDP/HOWTO/NFS-HOWTO.html
ron
First, make sure that you have actually installed the NFS-server package
in RedHat; it isn't installed by default. It contains the rpc.mountd and
rpc.nfsd daemons which are necessary. If it isn't installed, you'll get
this wierd error message of "RPC : program not registered" if you try to
mount the share.
To share a volume:
Launch Linuxconf. Under Networking/Server Tasks, select "Exported File
Systems". Then enter the mount point for the volume you want to share--if
you're going to share the entire drive the thing to do is to share the
root itself. Otherwise you can restrict it as you want. You can make
multiple shares, or one big share, or whatever. (If you've ever shared out
a directory under Windows this should seem pretty familiar.)
Do that on each of the computers if you want to be able to share drives
between them (that is, Computer A shares its drive with Computer B, and
Computer B shares its drive with Computer A.)
NOTE: you can also do this by editing /etc/export, but Linuxconf does make
it somewhat easier.
Then, to mount the drives on the client machine, you use this syntax:
mount -t nfs <hostname>:<dir> <mountpoint>
For example: say you have a computer named "fred" and another named
"snord." You share out fred's /usr directory using the export above.
Create the mount point on 'snord', say 'fredmnt'. Then on snord, you would
mount it this way:
mount -t nfs fred:/usr /fredmnt
You would do something similar to share something on 'snord' with 'fred'.
If you have a basic Linux book, like the O'Reilly "Running Linux", you can
get more information. There is also a Networking HOWTO in usr/doc.
Finally, if you're going to involve any Windows-based machines in this
network, you can use Samba. But that's another story.
--
----------------------------------------------
Scott L. Foglesong
San Francisco Conservatory of Music
"Too many notes, dear fellow, too many notes."
-----------------------------------------------
1. Probs networking Linux/WfWg/Linux network
I'm trying to add a linux/win95 box to a mostly WfWg LAN with (I think) two
servers (for different purposes) one WfWg, one Linux connected via a dialup
line to the Internet (oh, yeah I'm running 1.3.20 compiled with nfs, smb
and msdos fs included :-)
There seem to be a couple of problems.
I can ping any machine on the LAN from linux(1-2 ms response time) but anyone
else gets a hang for about 10-15 secs and a "unknown host" response...
I can (via Win95) pass files back and forth with any LAN machine (so no probs
with hardware) but attempting to mount remote drives through Linux I get an
"access denied" from the linux server, and some sort of RPC incompatibility
(don't remember the exact words, but can find them if necessary) with the WfWg
machines...
so, where do I find the files on which machines under what name that I missed
in setting up? and what do I need to put in them?
TIA,
Rob
2. traffic stops for dial-up users
3. Simple Linux-2-Linux network questions...
4. long filenames in ms-windows partition
5. Linux to Linux Network with only a Serial Cable
6. gates lies to JAPANESE government
7. Linux to Linux Networking Problem
8. cat file |rm ??? Please ???
10. (newbie)linux to linux network problems
11. comp.os.linux, comp.os.linux.misc, comp.os.linux.security, comp.os.linux.networking
12. This is your brain .. This is your brain on Linux & Linux Networking crash coarse.
13. GPL'd "Linux networking for Dummies" - Covers all networking aspects of linux