mnttab error

Posted on 2006-10-29
Last Modified: 2013-12-27

We recently migrated from Solaris NIS Server to RH EL3. Binded all the Solaris and Linux clients. Automount is working but i get the below error while doing df -k in a automounted directory. I did fsck manually and cleaned up mnttanb but it doesn't help. Please advise.

gumani--root[22] df -k .
df: a line in /etc/mnttab has to many fields
gumani--root[23] uname -a
SunOS gumani 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-5_10

Question by:rdashokraj
  • 6
  • 2
  • 2

Author Comment

ID: 17830281

Is there any log file available for mnttab so as to check this error ?  /etc/mnttab looks like this.

# more /etc/mnttab
/dev/dsk/c0t0d0s0       /       ufs     rw,intr,largefiles,onerror=panic,suid,dev=2200000       1162145615
/proc   /proc   proc    dev=4580000     1162145614
fd      /dev/fd fd      rw,suid,dev=4640000     1162145616
mnttab  /etc/mnttab     mntfs   dev=4740000     1162145617
swap    /var/run        tmpfs   dev=1   1162145617
swap    /tmp    tmpfs   dev=2   1162145619
/dev/dsk/c0t0d0s3       /export ufs     rw,intr,largefiles,onerror=panic,suid,dev=2200003       1162145619
godavari:/vol/vol0/godavari08/local     /usr/local      nfs     intr,bg,dev=47c0001     1162145626
-hosts  /net    autofs  indirect,nosuid,ignore,nobrowse,dev=4800001     1162145627
auto_home       /home   autofs  indirect,ignore,nobrowse,dev=4800002    1162145627
-xfn    /xfn    autofs  indirect,ignore,dev=4800003     1162145627
auto.disks      /disks  autofs  indirect,ignore,dev=4800004     1162145627      /tools  autofs  indirect,ignore,dev=4800005     1162145627
auto.projects   /projects       autofs  indirect,ignore,dev=4800006     1162145627
-hard   /-         autofs  indirect,ignore,dev=4800007     1162145627
auto.proj       /proj   autofs  indirect,ignore,dev=4800008     1162145627
auto.misc       /misc   autofs  indirect,ignore,dev=4800009     1162145627
auto.users      /users  autofs  indirect,ignore,dev=480000a     1162145627
gumani:vold(pid260)     /vol    nfs     ignore,dev=47c0002      1162145634
kalyani:/export/home2/cds446MSR8        /tools/cds446MSR8       nfs     hard,dev=47c0005        1162145636
sutlej:/vol/datavol/sutlej06/sysadmin   /proj/sysadmin  nfs     hard,dev=47c0011        1162154084

Author Comment

ID: 17830291
"mount" also gives this error. Please notice the last line.

# mount
/ on /dev/dsk/c0t0d0s0 read/write/setuid/intr/largefiles/onerror=panic/dev=2200000 on Sun Oct 29 23:44:35 2006
/proc on /proc read/write/setuid/dev=4580000 on Sun Oct 29 23:44:34 2006
/dev/fd on fd read/write/setuid/dev=4640000 on Sun Oct 29 23:44:36 2006
/etc/mnttab on mnttab read/write/setuid/dev=4740000 on Sun Oct 29 23:44:37 2006
/var/run on swap read/write/setuid/dev=1 on Sun Oct 29 23:44:37 2006
/tmp on swap read/write/setuid/dev=2 on Sun Oct 29 23:44:39 2006
/export on /dev/dsk/c0t0d0s3 read/write/setuid/intr/largefiles/onerror=panic/dev=2200003 on Sun Oct 29 23:44:39 2006
/usr/local on godavari:/vol/vol0/godavari08/local remote/read/write/setuid/intr/bg/dev=47c0001 on Sun Oct 29 23:44:46 2006
mount: line in mnttab has too many entries
LVL 38

Expert Comment

ID: 17831075
check your /etc/vfstab, /etc/auto_direct /etc/auto_home files to make sure that there is NO WHITE space in the mount point dir name.

If you need more help please post your /etc/mnttab, /etc/vfstab, /etc/auto_direct and /etc/auto_home files
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.


Author Comment

ID: 17831194
Yuzh, I'm looking at the WHITE space now.  Below given the content of files you required. I have already posted /etc/mnttab.

bash-2.03# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s3       /dev/rdsk/c0t0d0s3      /export ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -
#remoted mounted drives
godavari:/vol/vol0/godavari08/local  -  /usr/local nfs    -    yes     intr,bg
bash-2.03# cat /etc/auto_master
# Master map for automounter
/net            -hosts          -nosuid,nobrowse
/home           auto_home       -nobrowse
/xfn            -xfn
bash-2.03# cat /etc/auto_home
# Home directory map for automounter

LVL 10

Expert Comment

ID: 17836844
If you want to see if a white space is the problem, you should do a "view /etc/mnttab" and then input ":set list".  This will display TABS as "^T" symbols.  Spaces will show up as spaces.  The issue is with files like /etc/vfstab, /etc/auto_master and such are white space delimited already so looking for spaces in there is going to be somewhat fruitless as a space between fields is perfectly acceptable.

Anything found in /etc/mnttab has already been accepted by the kernel as a valid mount.  /etc/mnttab is a kernel created and maintained file.

I would start by doing a patch audit for your version of solaris.  Stuff that's accepted into /etc/mnttab by the kernel and then errored upon by tools that use the /etc/mnttab file (like df and mount) sounds like a bug to me.
LVL 38

Assisted Solution

yuzh earned 200 total points
ID: 17838899
I just notice that you have not apply the Solaris patch for a long time, apply the latest Solaris 8  Recommended Patch Clusters to see if it can fix it.

Author Comment

ID: 17844566

I appreciate your valuable inputs on this issue. But unfortunately that day as we couldn't solve the problem, we escalated to our L3 support and they fixed it (Not sure what they have done). Btw as per your advice, I checked the solaris site to download the latest solaris 8 recommended patch clusters but bit confused what to download (I never done patch cluster installation). I'm seeing these 4 available downloads, which one to take ?
1. Solaris 8 Sun Alert Patch Cluster
2. Solaris 8
3. Solaris 8 x86 Sun Alert Patch Cluster
4. Solaris 8 x86       <--- What is this x86 refers to?

LVL 10

Accepted Solution

Nukfror earned 300 total points
ID: 17844771
Solaris 8 (without the x86 notation) means Solaris for SPARC chip based systems

Solaris 8 x86 means Solaris for Intel based systems.

The Alert Patch Cluster is smaller then the recommended.  Its just patches based on Sun published alerts for Solaris.  You should be the Recommended+Security Cluster.

Author Comment

ID: 17844984
Nukfor, Thanks for your explanation. I had this doubt for a long time but little hesitant to ask someone :)

Author Comment

ID: 17847677
Yuzh,  Your suspicion is right. Its a space issue in vfstab. Our L3 support guys corrected the same. Thanks !!

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question