Solved

why vfstab file shows /opt fsck pass 2

Posted on 2001-08-07
4
1,942 Views
Last Modified: 2013-12-27
vfstab file for my system is as follows:

#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/c0t0d0s6       /dev/rdsk/c0t0d0s6      /usr    ufs     1       no      -
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /var    ufs     1       no      -
/dev/dsk/c0t0d0s5       /dev/rdsk/c0t0d0s5      /opt    ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -

why fsck column for /opt is 2 while the rest are ether - or 1?

Sun Solaris manual says fsck pass indicates whether the file system is to be checked by fsck at boot time. A whole number indicates a yes.  A dash or a zero indicates no.  

So what does a 2 indicate?  Why a 2 is placed in there for /opt by default?  Does this mean anything differently for /opt?

0
Comment
Question by:frankf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6362728
fsck pass        The pass number used by fsck to determine whether to check a file system. When the field contains a dash (-), the file system is not checked. When the field contains a value  of 1 or more, the file system is checked; non-ufs file  systems with a 0 fsck pass are checked. For ufs file ystems only, when the field contains a 0, the file system is not checked. When fsck is run on multiple ufs file systems that have fsck pass values greater than 1 and
the preen option (-o p) is used, fsck automatically         checks the file systems on different disks in parallel to
maximize efficiency. When the field contains a value of 1,
the file system is checked sequentially. Otherwise, the
value of the pass number does not have any effect. In
SunOS 5.3 system software, the fsck pass field does not
explicitly specify the order in which file systems are
checked.
0
 
LVL 3

Accepted Solution

by:
p_yaroslav earned 50 total points
ID: 6362750
Hello!

When fsck is run on multiple ufs file systems that have fsck pass values greater than 1 and the preen option (-o p) is used, fsck automatically checks the file systems on different disks in PARALLEL to maximize efficiency. When the field contains a value of 1, the file system is checked sequentially. Otherwise, the value of the pass number does not have any effect.

Best regards!
Yaroslav.
0
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6362756
When the field contains a value of 1, the file system is checked sequentially. Otherwise, the value
of the pass number does not have any effect.
0
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6362799
The fsck pass value
of 2 means that the file system will be checked, but not sequentially
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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.:

705 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