CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Lounge (https://www.cfd-online.com/Forums/lounge/)
-   -   NFS setting for sharing removable hard disk on network (https://www.cfd-online.com/Forums/lounge/117969-nfs-setting-sharing-removable-hard-disk-network.html)

luchen2408 May 18, 2013 10:49

NFS setting for sharing removable hard disk on network
 
hello,every one,
I have a problem, I have made a network for parallel running in ubuntu system and I have installed the NFS file server to share the data. but there is not enough room, so I made a new removable hard disk to share ,but I can't share the new removable hard disk on the network in unbuntu system. is there anyone konw how to make it? thanks

wyldckat May 18, 2013 11:57

Greetings Luchen,

Have you tried following these instructions: https://help.ubuntu.com/community/SettingUpNFSHowTo :confused:

Best regards,
Bruno

luchen2408 May 19, 2013 00:08

Thanks wyldckat, I have looked through the website you gave, but I still can't make it ,I can share the folder in the /home dir, but I can't share the removable hard disk in the networks. I can't find any hint to do it.

wyldckat May 19, 2013 05:43

Hi Luchen,

You're not sharing much information on this, so I'll have to use a more abstract description.

On the server side, namely where you have the disk you want to share, you might have something like this in the file "/etc/exports":
Code:

/home 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)
You can add the new disk by adding the respective line:
Code:

/home 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)
/media/newHarddisk 192.168.0.0/255.255.255.0(rw,sync,no_subtree_check)

Then update the share list on memory at the server:
Code:

sudo exportfs -ra
On the client side, namely where you want the disk to work remotely, try to mount the new disk like this:
Code:

sudo mount 192.168.1.42:/media/newHarddisk /mnt
Adjust the IP addresses accordingly. The new shared disk should be in "/mnt".

Best regards,
Bruno

luchen2408 May 20, 2013 04:37

Thanks wyldckat, I have tried with your method,but I can mount the folder in the media,but after I mount, there is a lock on the folder and the content in the folder can't be shown. do you know why?

wyldckat May 20, 2013 16:57

Hi Luchen,

Without more information, I have no clue as to what the problem might be.

To get some clues, try running the following command on both machines:
Code:

mount
Check the mounting options that are shown for the folders in question. For example, you should be able to see lines like these:
Code:

/dev/sdb1 on /media/external_drive type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

/dev/sda3 on /home type ext4 (rw)

The information between parenthesis is the mount options being used.

Best regards,
Bruno


All times are GMT -4. The time now is 06:55.