Results 1 to 4 of 4

Thread: HOWTO: Mount a folder/HDD on another computer in the network

  1. #1
    Join Date
    Jun 2006
    Location
    Gothenburg
    Beans
    142
    Distro
    Ubuntu Jaunty Jackalope (testing)

    HOWTO: Mount a folder/HDD on another computer in the network

    I have 2 computers at home, both runing Ubuntu (6.10 & Herd 4). I have a 400Gb HDD mounted on the stationary computer with all my media. I also have a laptop (Aspire 1300) with a 20Gb harddrive.
    What I have done is that I have mounted the 400Gb harddrive in the root of the Laptop.

    This guide will show how to mount a folder/HDD on a computer in your homenetwork.

    Start with the following on the computer that has the folder/HDD you want to share.

    sudo apt-get install nfs-commons nfs-kernel-server


    then

    sudo gedit /etc/exports

    you will see something like this



    /400Gb is the path to the folder/HDD I want to share. 192.168.1.64 is the ip-number of the computer on my network that will have the /400Gb folder mounted (My laptop).
    If you want to allow the client computer to be root in the mounted folder you write rw,no_root_squash,async instead of rw,async

    Save and exit gedit.
    Now do
    sudo /etc/init.d/portmap restart

    sudo /etc/init.d/nfs-common restart

    sudo /etc/init.d/nfs-kernel-server restart


    Now we are done with the server computer. Now we configure the client computer (my laptop)

    Start with creating a directory for the mounted folder/HDD and name it to what ever you want. In my realworld example I did

    sudo mkdir /400Gb/


    After that, we do

    sudo gedit /etc/fstab

    Add the following to the document.

    192.168.1.65:/400Gb /400Gb nfs _netdev,auto,user 0 0

    192.168.1.65 is the IP-number for my stationary computer. :/400Gb is the folder/HDD on my stationary computer that I want to mount. The last /400Gb is the folder on the client computer where the mounted folder/HDD will be located.

    Save and exit gedit. Reboot your system and everything should work.

    To find out your internal IP number just do

    /sbin/ifconfig




    Hopefully it works out just as easy as it did for me.
    Last edited by Bossieman; February 26th, 2007 at 03:32 PM.
    Ubuntu 7.10

  2. #2
    Join Date
    Oct 2006
    Beans
    3

    Re: HOWTO: Mount a folder/HDD on another computer in the network

    I believe it is:

    sudo apt-get install nfs-common nfs-kernel-server

    There is no s on the common

    Cheers

  3. #3
    Join Date
    Jul 2007
    Beans
    25

    Wink Re: HOWTO: Mount a folder/HDD on another computer in the network

    Absolutely ingenious how easy this was

    Thank you very much!

    private_lock

    PS: There is no need to work your way through those lengthy "share your internet connection"-HowTos. Just plug a crossover cable in and assign two different IPs of the same subnet. E.g.:
    Code:
    on the first computer
    sudo ifconfig eth0 192.168.5.1
    on the second computer
    sudo ifconfig eth0 192.168.5.2
    where eth0 is your network device. Check with "ifconfig" without parameters.

  4. #4
    Join Date
    Mar 2010
    Beans
    7

    Re: HOWTO: Mount a folder/HDD on another computer in the network

    Is there an updated version of these instructions for 12.04 LTS 64 bit OS?

Bookmarks

Posting Permissions

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