Results 1 to 6 of 6

Thread: How to verify the options used when mounting a nfs FS.

  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default How to verify the options used when mounting a nfs FS.

    After mounting an exported NFS file system:
    # mount -F nfs nfs_server:/mnt /mnt_point

    How do I verify what's the default options being used?
    In Linux, we can issue the command "mount" or "cat /proc/mounts" then we can see what are the defaults options being used. The size of r/wsize, what's the protocol used, etc..right?
    So in Solaris, how can I verify it?

    thanks,
    warren

  2. #2
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    Default

    Use mount -v command:

    Code:
    mount -v
    Output:
    /dev/dsk/c0d0s0 on / type ufs read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980000 on Mon Mar 27 12:54:59 2006
    /devices on /devices type devfs read/write/setuid/devices/dev=3340000 on Mon Mar 27 12:54:53 2006
    /dev/dsk/c0d0p0:boot on /boot type pcfs read/write/setuid/devices/nohidden/nofoldcase/dev=19a3010 on Mon Mar 27 12:54:57 2006
    proc on /proc type proc read/write/setuid/devices/dev=3380000 on Mon Mar 27 12:54:58 2006
    mnttab on /etc/mnttab type mntfs read/write/setuid/devices/dev=3440001 on Mon Mar 27 12:54:59 2006
    fd on /dev/fd type fd read/write/setuid/devices/dev=3480001 on Mon Mar 27 12:54:59 2006
    swap on /var/run type tmpfs read/write/setuid/devices/xattr/dev=3500001 on Mon Mar 27 12:54:59 2006
    swap on /tmp type tmpfs read/write/setuid/devices/xattr/dev=3500002 on Mon Mar 27 12:54:59 2006

    Red colour displays the options. Another way is to see /etc/mnttab file:

    Code:
    cat /etc/mnttab
    Output:

    /dev/dsk/c0d0s0 / ufs rw,intr,largefiles,logging,xattr,onerror=panic,dev =1980000 1143444299
    /devices /devices devfs dev=3340000 1143444293
    /dev/dsk/c0d0p0:boot /boot pcfs nohidden,nofoldcase,dev=19a3010 1143444297
    proc /proc proc dev=3380000 1143444298
    mnttab /etc/mnttab mntfs dev=3440001 1143444299
    fd /dev/fd fd rw,dev=3480001 1143444299
    swap /var/run tmpfs xattr,dev=3500001 1143444299
    swap /tmp tmpfs xattr,dev=3500002 1143444299
    -hosts /net autofs nosuid,indirect,ignore,nobrowse,dev=35c0001 1143444307
    auto_home /home autofs indirect,ignore,nobrowse,dev=35c0002 1143444307
    solaris:vold(pid326) /vol nfs ignore,noquota,dev=3600001 1143444318
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

  3. #3
    Member
    Join Date
    Jun 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks so much for the information.
    ok, seems this is the only supported options when mounting a nfs in Solaris...
    read/write/setuid/devices/nohidden/nofoldcase/dev=19a3010

    Also in the manual I cannot find how to mount it using tcp or udp, hard or soft. Anyone knows what are the default for the ff:
    tcp or udp?
    hard or soft?
    rsize/wsize size?
    nfs version?
    intr or nointr?
    timeo=?
    etc....

    Some of these options will definitely depends on the client.

    thanks,
    warren

  4. #4
    Senior Member monk's Avatar
    Join Date
    Jan 2005
    Location
    Tibet
    Posts
    643
    Thanks
    5
    Thanked 43 Times in 38 Posts
    Rep Power
    15

    Default

    Use syntax:

    Code:
    mount -F nfs -o OPTIONS HOST:PATH /path/to/local
    Where,

    OPTIONS can be tcp or udp, hard or soft etc. To see all option read man page mount_nfs.

    Code:
    man mount_nfs

  5. #5
    Member
    Join Date
    Jun 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    ok, I see it all...
    man mount_nfs

    problem solved...thanks to monk and rockdalinux

    warren

  6. #6
    Junior Member
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Smile on ubuntu

    $ sudo apt-get install nfs-common
    $ sudo mount 10.126.12.36:/data /mnt

    it works

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. passing options to a shell script
    By bigpaw in forum Shell scripting
    Replies: 2
    Last Post: 11th October 2007, 03:40 AM
  2. Verify X.org configuration file
    By Yasar in forum Getting started tutorials
    Replies: 1
    Last Post: 6th September 2007, 03:43 PM
  3. Certification options !!!
    By donovan in forum The Hangout
    Replies: 14
    Last Post: 30th May 2007, 05:48 AM
  4. Howto verify linux open port
    By nixcraft in forum Getting started tutorials
    Replies: 0
    Last Post: 18th May 2007, 02:49 AM
  5. Linux : How do I verify which ports are listening?
    By sweta in forum Getting started tutorials
    Replies: 0
    Last Post: 30th July 2006, 11:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •