Author Topic: mounting a network drive  (Read 462 times)

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
mounting a network drive
« on: 9 May 2002, 04:30 »
how do i mount a hard drive on another computer in my network?
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

fruitbat

  • Newbie
  • *
  • Posts: 5
  • Kudos: 0
mounting a network drive
« Reply #1 on: 9 May 2002, 05:27 »
Which Linux? Also are you into wizards or entering everything on the command line?

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
mounting a network drive
« Reply #2 on: 9 May 2002, 05:39 »
red hat 7.2, command line only
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
mounting a network drive
« Reply #3 on: 9 May 2002, 06:24 »
Two RedHat boxes (or RedHat and another *NIX box)?  If so use NFS, if RedHat+Windows use Samba. For NFS see "man exports" and "man nfs". I would also suggest looking over /usr/share/doc/nfs-utils-0.3.1/index.html. Better yet, read the HOWTO here: http://nfs.sourceforge.net/

On the server you'll need to turn on the "portmap", "nfs", "nfslock", and optionally "netfs" (netfs will mount any NFS shares you have listed in your /etc/fstab at boot time).

After you have the /etc/exports file set up on your server start these services on both server and client:

/sbin/chkconfig portmap on
/sbin/chkconfig nfs on
/sbin/chkconfig nfslock on
/sbin/chkconfig netfs on
/sbin/service portmap start
/sbin/service nfs start
/sbin/service nfslock start
/sbin/service netfs start

To manually mount an NFS share on your local machine you can do something like:

mount myserver:/nfsshare /localmountpoint

optionally add the NFS mount to your /etc/fstab on your client so it automatically mounts at boot time.

This assumes you are using RedHat 7.2 for your NFS server. You can make any UNIX machine an NFS server but how you start the portmap, mountd, lockd, and nfsd will be different.

When using NFS you need to take care to insure userIDs on each system have the same user number in /etc/password. Usually people that use NFS also use NIS so this happens automatically.

If you get really froggy you can set up automount (man automount) and share your home directory on your server so when you log on to your clients it will automatically mount your home directory from the server.

[ May 08, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...