Installation guide

7.2 Creating File Systems
The newfs command formats a disk partition and creates a usable UNIX
file system. For information on creating an AdvFS, refer to AdvFS
Administration. Using the information in the disk label or the default
values specified in the /etc/disktab file, the newfs command builds a
file system on the specified disk partition. You can also use newfs
command options to specify the disk geometry.
_______________________ Note _______________________
Changing the default disk geometry values may make it
impossible for the fsck program to find the alternate
superblocks if the standard superblock is lost.
The newfs command has the following syntax:
/sbin/newfs
[N][fs_options] device [ disk_type]
You must specify the unmounted, raw device (for example, /dev/rrz0a).
Refer to the newfs
(8) reference page for information on the command
options specific to file systems.
See Section 7.10 for information about how this command interacts with
overlapping partitions.
7.3 Checking File Systems
The fsck program checks UNIX file systems and performs some corrections
to help ensure a reliable environment for file storage on disks. The fsck
program can correct file system inconsistencies such as unreferenced
inodes, missing blocks in the free list, or incorrect counts in the superblock.
File systems can become corrupted in many ways, such as improper
shutdown procedures, hardware failures, and power outages and power
surges. A file system can also become corrupted if you physically write
protect a mounted file system, take a mounted file system off line, or if you
do not synchronize the system before you shut the system down.
At boot time, the system runs fsck noninteractively, making any
corrections that can be done safely. If it encounters an unexpected
inconsistency, the fsck program exits, leaves the system in single-user
mode, and displays a recommendation that you run the program manually,
which allows you to respond yes or no to the prompts that fsck displays.
The command to invoke the fsck program has the following syntax:
Administering the UNIX File System 7–15