View previous topic :: View next topic |
Author |
Message |
neoch n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo.gif)
Joined: 26 Jan 2003 Posts: 38 Location: Switzerland
|
Posted: Sat Jul 10, 2004 1:24 pm Post subject: NFS: some sub-folders are not exported... [solved] |
|
|
On my server I have 4 hdd mounted as follows: Code: | # /etc/fstab: static file system information.
# 40GB
/dev/hde1 /boot ext2 noauto,noatime 1 1
/dev/hde3 / ext3 noatime 0 0
/dev/hde2 none swap sw 0 0
# 100GB
/dev/hdg1 /data reiserfs noatime 0 0
# 230GB
/dev/hdf1 /data/music reiserfs noatime 0 0
# 30GB
/dev/sda1 /data/various reiserfs noatime 0 0
|
And here is my /etc/exports:
Code: | /usr/portage/ 192.168.80.0/255.255.255.0(rw,no_root_squash,sync)
/usr/local/portage/ 192.168.80.0/255.255.255.0(rw,no_root_squash,sync)
/data/ 192.168.80.0/255.255.255.0(rw,no_root_squash,sync)
|
When I mount '/data/' on my workstation and on my laptop, sub-folders '/data/music/' and '/data/various/' are empty....
I tried exporting '/data/' with samba and there's no problem....
Any idea?
Thanks
Last edited by neoch on Sat Jul 10, 2004 2:38 pm; edited 3 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jdgill0 Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/21334652964256d54fd1047.jpg)
Joined: 25 Mar 2003 Posts: 1366 Location: Lexington, Ky -- USA
|
Posted: Sat Jul 10, 2004 1:48 pm Post subject: |
|
|
You need to export & mount the subfolders that have mount points themselves in the server's fstab, for example in exports:
Code: | /data/music 192.168.80.0/255.255.255.0(rw,no_root_squash,sync) |
Then for the client's fstab:
Code: | xxx.xxx.xxx.xxx:/data/music /data/music nfs ............... |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bokkepoot Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/183309878844e85a30ab5a0.gif)
Joined: 14 Mar 2003 Posts: 123 Location: The Hague, The Netherlands
|
Posted: Sat Jul 10, 2004 1:52 pm Post subject: |
|
|
You can either explicitly export and mount both directories (/data and /data/music)
OR
You can use the 'nohide' option in /etc/exports, which will (apparantly) only work for single hosts and not for ranges. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neoch n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo.gif)
Joined: 26 Jan 2003 Posts: 38 Location: Switzerland
|
Posted: Sat Jul 10, 2004 2:36 pm Post subject: |
|
|
Quote: | You need to export & mount the subfolders that have mount points themselves in the server's fstab |
Now I understand.....
Thanks guys for your help ! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|