Solved

why vfstab file shows /opt fsck pass 2

Posted on 2001-08-07
4
1,921 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now