Announcement

Collapse
No announcement yet.

[FIXED] how can I share /media/disk over NFS?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [FIXED] how can I share /media/disk over NFS?

    I recently set up an NFS to share between Computer A and Computer B, both linux machines. It works wonderfully for the shared drives /home.

    I'd also like to share /media/disk on Computer A.

    So far, I've tried adding /media/disk to my /etc/exports and /etc/fstab in the exact same manner I added /home. I cannot mount this share because it's "not allowed"

    I also tried adding a symlink between /media/disk and /home on Computer A but it shows up as a non-operable file on Computer B.

    So what am I doing wrong? I have a feeling it has to do with permissions. I haven't been able to find any suitable documentation on the web.

    Thanks in advance.
    Home: Kubuntu 12.04-amd64; Intel i7-860 on Intel DH55PJ; Nvidia 9500GT; 6GB RAM
    Network Slave: Xubuntu 11.10-x86; Intel P4-Prescott on MSI; 2GB RAM; Nvidia FX5200
    Portable: Xubuntu 11.10-amd64; Asus EeePC 1015PEM

    #2
    Re: how can I share /media/disk over NFS?

    my /etc/exports:

    Code:
    /home/reza 192.168.0.2(rw,sync,no_subtree_check)
    /media/disk 192.168.0.2(rw,sync,no_subtree_check)
    and my /etc/fstab:
    Code:
    192.168.0.2:/home/reza/ /home/reza/shared-B nfs rw,hard,intr,noexec 0 0
    192.168.0.2:/media/disk/ /home/reza/shared-media nfs rw,hard,intr,noexec 0 0
    am I getting any mounting options wrong?
    Home: Kubuntu 12.04-amd64; Intel i7-860 on Intel DH55PJ; Nvidia 9500GT; 6GB RAM
    Network Slave: Xubuntu 11.10-x86; Intel P4-Prescott on MSI; 2GB RAM; Nvidia FX5200
    Portable: Xubuntu 11.10-amd64; Asus EeePC 1015PEM

    Comment


      #3
      Re: how can I share /media/disk over NFS?

      nevermind, I fixed the problem myself. I guess I confused myself by having the same UID and GID on both computers. I needed to do my process backwards.
      Home: Kubuntu 12.04-amd64; Intel i7-860 on Intel DH55PJ; Nvidia 9500GT; 6GB RAM
      Network Slave: Xubuntu 11.10-x86; Intel P4-Prescott on MSI; 2GB RAM; Nvidia FX5200
      Portable: Xubuntu 11.10-amd64; Asus EeePC 1015PEM

      Comment

      Working...
      X