What are my mount options … ?
Mateusz Guzik
mjguzik at gmail.com
Wed Apr 24 23:33:04 UTC 2013
On Wed, Apr 24, 2013 at 04:19:03PM -0700, Marc G. Fournier wrote:
>
> I realize that *in theory*, I should find them in /etc/fstab, but if I'm experimenting with various mount options, is there some way of determining what my current options are?
>
> For instance, if I do a 'mount' command, it tells me:
>
> 192.168.1.1:/vol/ports on /usr/ports (nfs)
> 192.168.1.1:/vol/vm on /vm (nfs)
>
> for instance, on Ubuntu, it tells me everything I set as options:
>
> 10.5.253.130:/vol/vm on /mnt type nfs (rw,rsize=32768,wsize=32768,addr=10.5.253.130)
>
> I tried 'mount -p', and even that seems to drop any options as listed in /etc/fstab:
>
> 192.168.1.1:/vol/ports /usr/ports nfs rw 0 0
> 192.168.1.1:/vol/vm /vm nfs rw 0 0
>
> while my /etc/fstab has:
>
> 192.168.1.1:/vol/ports /usr/ports nfs rw,rsize=32768,wsize=32768 0 0
> 192.168.1.1:/vol/vm /vm nfs rw,rsize=32768,wsize=32768 0 0
>
You can use '-m' switch from nfsstat(8) to dump all mount-time-settable
parameters of your mounts, i.e. this will dump stuff you didn't set
explicitly as well.
--
Mateusz Guzik <mjguzik gmail.com>
More information about the freebsd-fs
mailing list