Re: How to export vfat partition correctly?

From: Chris Carlen (crobc_at_BOGUSFIELD.earthlink.net)
Date: 10/24/03


Date: Thu, 23 Oct 2003 20:25:41 -0700

Jeroen Geilman wrote:
> Chris Carlen <crcarle@BOGUS.sandia.gov> randomly warbled in
> comp.os.linux.networking:
>>I have a machine with two vfat partitions mounted as /w98 and /w98d
>>and in which / is an ext3.
>>My /etc/exports has these exported as well as / in the order /, /w98,
>>/w98d.
> That's...why ?
>
> If you export /, then both /w98 and /w98d are exported as exactly that -
> whether or not / itself is exported.

Unfortunately, it doesn't work that way on my machine. I have correctly
mounted the vfat at /w98 now using your assistance below. The remaining
issue is NFS exporting. If the subdirs of / to be exported are
different physical partitions than /, then they don't export with /.

Example, the server "ting" has the vfat mounted on /w98:

ting:/home/user1 # cat /etc/exports
/ 192.168.0.0/255.255.255.0(rw,insecure)

Now on the client machine "tong" I have in /etc/fstab:

ting:/w98 /ting nfs noauto,rw,hard,intr,user,exec 0 0

Now the client does:

user1@tong:~ $ mount /ting
user1@tong:~ $ l /ting
bin dev home lost+found mnt proc s73 srv tong var w98d
boot etc lib media opt root sbin tmp usr w98
user1@tong:~ $ l /ting/w98
user1@tong:~ $

Notice that it doesn't see anything that's mounted under ting:/w98

When I change the server /etc/exports to:

/ 192.168.0.0/255.255.255.0(rw,insecure)
/w98 192.168.0.0/255.255.255.0(rw)

Then add to the client /etc/fstab:

ting:/w98 /ting-w98 nfs noauto,rw,hard,intr,user,exec 0 0

user1@tong:~ $ mount /ting-w98
user1@tong:~ $ l /ting-w98
Program Files config.sys netlog.txt system.1st
Temp detlog.txt recycled unpack
autoexec.bat frunlog.txt scandisk.log windows[etc]

The same behavior takes place with CDROM mounts, who's mountpoints as
subdirs of / don't export with /, and must be explicitly mentioned in
/etc/exports.

> change /etc/fstab to read:
>
> /dev/hdxy /w98 rw,noatime,auto,umask=000

Yes. This gets the partition mounted on the server so that all have r/w
access. Good.

> / (rw,insecure)
>
> And you should be set!

But this part doesn't work, as described above, I must explicitly export
the /w98 mountpoint of the vfat to be able to nfs mount it on the client.

Can you explain what is going on with this?

Thanks for your input.

Good day!

-- 
_____________________
Christopher R. Carlen
crobc@earthlink.net
Suse 8.1 Linux 2.4.19


Relevant Pages

  • Re: [SLE] NIS automounter
    ... > When a user logs on they request a mount from the server. ... Is it physically copied to the client or are bits of it it NFS'd ... on the filesystem you are exporting. ...
    (SuSE)
  • Re: nfs help?
    ... that mount is handled by root. ... that's why NFS earned the other nickname of standing for No Fucking ... It trusts the client machines to be secure in themselves, ... think that exporting the entire home is more insecure that exporting ...
    (Fedora)
  • Re: NFS rooting current root
    ... > are there any opinions on risks and benefits of exporting my ... > client that provides just /var and does an nfsroot mount of ... to be different on the client than the server, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • DNS and export
    ... On that RS/6000 is a filesystem that they are exporting to 'everyone'. ... Those are the only systems here that can mount that filesystem from the remote server. ... After that is a 'search' line with their domainname. ...
    (AIX-L)
  • Re: script question
    ... The server automounting the file system has a mount point /slbackup. ... The file system on the server nfs exporting has a sub directory. ...
    (comp.sys.hp.hpux)