[0m


NEWFS(8)	    UNIX Programmer's Manual		 NEWFS(8)



[1mNAME
     [0mnewfs - construct a new file system

[1mSYNOPSIS
     newfs [0m[ [1m-N [0m] [ [1m-v [0m] [ [1mmkfs-options [0m] [1mspecial disk-type

DESCRIPTION
     [0m_N_e_w_f_s is a ``friendly'' front-end to the _m_k_f_s(8) program.
     _N_e_w_f_s will look up the type of disk a file system is being
     created on in the disk description file /_e_t_c/_d_i_s_k_t_a_b, calcu-
     late the appropriate parameters to use in calling _m_k_f_s, then
     build the file system by forking _m_k_f_s and, if the file sys-
     tem is a root partition, install the necessary bootstrap
     programs in the initial 8 sectors of the device.  The [1m-N
     [0moption causes the file system parameters to be printed out
     without actually creating the file system.  Unless the [1m-N
     [0moption has been used, _n_e_w_f_s will call _f_s_i_r_a_n_d(8) for the new
     file system once the _m_k_f_s has finished.

     If the [1m-v [0moption is supplied, _n_e_w_f_s will print out its
     actions, including the parameters passed to _m_k_f_s.

     Options which may be used to override default parameters
     passed to _m_k_f_s are:

     [1m-s [0m_s_i_z_e   The size of the file system in sectors.

     [1m-b [0m_b_l_o_c_k-_s_i_z_e
	       The block size of the file system in bytes.

     [1m-f [0m_f_r_a_g-_s_i_z_e
	       The fragment size of the file system in bytes.

     [1m-t [0m#_t_r_a_c_k_s/_c_y_l_i_n_d_e_r

     [1m-c [0m#_c_y_l_i_n_d_e_r_s/_g_r_o_u_p
	       The number of cylinders per cylinder group in a
	       file system.  The default value used is 16.

     [1m-m [0m_f_r_e_e_s_p_a_c_e
	       The percentage of space reserved from normal
	       users; the minimum free space threshhold.  The
	       default value used is 10%.

     [1m-o [0m_o_p_t_i_m_i_z_a_t_i_o_n _p_r_e_f_e_r_e_n_c_e (``[1mspace[0m'' _o_r ``[1mtime[0m'')
	       The file system can either be instructed to try to
	       minimize the time spent allocating blocks, or to
	       try to minimize the space fragmentation on the
	       disk.  If the value of minfree (see above) is less
	       than 10%, the default is to optimize for space; if
	       the value of minfree greater than or equal to 10%,
	       the default is to optimize for time.



Printed 5/7/99	    Revision 1.5 of 19/07/90			1






NEWFS(8)	    UNIX Programmer's Manual		 NEWFS(8)



     [1m-r [0m_r_e_v_o_l_u_t_i_o_n_s/_m_i_n_u_t_e
	       The speed of the disk in revolutions per minute
	       (normally 3600).

     [1m-S [0m_s_e_c_t_o_r-_s_i_z_e
	       The size of a sector in bytes (almost never any-
	       thing but 512).

     [1m-i [0m_n_u_m_b_e_r _o_f _b_y_t_e_s _p_e_r _i_n_o_d_e
	       This specifies the density of inodes in the file
	       system.	The default is to create an inode for
	       each 2048 bytes of data space.  If fewer inodes
	       are desired, a larger number should be used; to
	       create more inodes a smaller number should be
	       given.

[1mFILES
     [0m/etc/disktab   for disk geometry and file system partition
     information
     /usr/sbin/mkfs to actually build the file system

[1mSEE ALSO
     [0m_d_i_s_k_t_a_b(5), _f_s(5), _d_i_s_k_p_a_r_t(8), _f_s_c_k(8), _f_s_i_r_a_n_d(8), _f_o_r_-
     _m_a_t(8), _m_k_f_s(8), _t_u_n_e_f_s(8)

     M. McKusick, W. Joy, S. Leffler, R. Fabry, ``A Fast File
     System for UNIX'', _A_C_M _T_r_a_n_s_a_c_t_i_o_n_s _o_n _C_o_m_p_u_t_e_r _S_y_s_t_e_m_s _2,
     3.  pp 181-197, August 1984.  (reprinted in the System
     Manager's Manual, SMM:14)

[1mBUGS
     [0mShould figure out the type of the disk without the user's
     help.






















Printed 5/7/99	    Revision 1.5 of 19/07/90			2



[0m