You are not logged in.

#1 2015-02-06 16:07:08

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 391
Website

NFS Mountpoint of other ext4 mountpoint not showing

On Machine A, i have a partitioned disk, with the following layout :

/dev/sda4       195G  126G   60G  68% /home
/dev/sda5       917G  716G  156G  83% /home/glow/data
/dev/sdb5       197G   53G  135G  28% /home/glow/data/Musique

On machine B, i want to mount the data directory with all it contains, including musique.
First it tried this in fstab:

arch:/home/glow/data /home/pi/data nfs defaults 0 0

but then  /home/pi/data/Musique was empty, so i've added a line for Musique on machine A /etc/exports and tried this on MachineB /etc/fstab :

arch:/home/glow/data /home/pi/data nfs defaults 0 0
arch:/home/glow/data/Musique /home/pi/data/Musique nfs defaults 0 0

but then  /home/pi/data/Musique was still empty

At last i've created an link to Musique in Musique on machine A :

[glow@GlowArch ~/data/Musique]$ ln -s ../Musique/ mount

And than this worked !

arch:/home/glow/data /home/pi/data nfs defaults 0 0
arch:/home/glow/data/Musique/mount /home/pi/data/Musique nfs defaults 0 0

But it is an ugly workaround, what am i doing wrong ?

Offline

#2 2015-02-06 17:12:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: NFS Mountpoint of other ext4 mountpoint not showing

Not reading the NFS wiki page. smile

Standard practice is to use bind mounts on the server, details on that page.

Offline

Board footer

Powered by FluxBB