Find the answer to your Linux question:
Results 1 to 4 of 4
My 2 linux computers are connected to the company network. I can mount one dir of one machine from another machine using mount //machin1/home/share /mnt/drive Is this "mount" command using ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    26

    samba and nfs


    My 2 linux computers are connected to the company network.
    I can mount one dir of one machine from another machine using

    mount //machin1/home/share /mnt/drive

    Is this "mount" command using samba or nfs?

  2. #2
    Just Joined! g00rkha75's Avatar
    Join Date
    Jul 2008
    Location
    Jakarta, Indonesia
    Posts
    7
    Hi,

    Most likely you are using nfs command, but you may want to check from your client side using this:
    # showmount -e enterprise5 - to check the list of shared directories from the enterprise5 computer

    # mount -t nfs enterprise5:/mnt/inst /mnt/remote

    This command mounts the /mnt/inst directory from the computer named enterprise5.

    But if you run this command first:
    # smbclient -L sambaserver -U root
    Then,
    If you're on a Linux computer, use the /sbin/mount.cifs or mount command (depending on whether you're regular or a root user) to configure the remote [homes] directory share on an empty local directory. For example, as the root user, you could mount on the local /share directory (create it if required) with the following command:
    # mount -o username=root "//sambaserver/homes" /share
    Then you're using samba.
    Do you install samba and nfs at the same server?
    You may check by running:
    # service smb status or # service nfs status

    Cheers,
    Last edited by g00rkha75; 07-22-2008 at 06:04 AM. Reason: typo

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    26
    is there any benefit to use nfs rather than samba if both machine are linux?

  4. #4
    Just Joined!
    Join Date
    Dec 2005
    Posts
    96
    Quote Originally Posted by ufmale View Post
    is there any benefit to use nfs rather than samba if both machine are linux?
    I found samba is a little bit easier to configure. But it's just my personal opinion. Furthermore I've never done something on enterprise level. Only small home network for personal use.
    mount //machin1/home/share /mnt/drive
    AFAIK this is a command to mount samba share. With NFS you should use

    ip-of-the-server:/path/to/share /mnt/share

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •