newfs(1M) newfs(1M)NAME newfs - makes a Berkeley 4.2 (UFS) file system SYNOPSIS newfs [-b block-size] [-c cylinders-per-group] [-f fragment-size] [-i bytes-per-inode] [-m free-space] [-r revolutions-per-minute] [-s size] [-t tracks-per-cylinder] [-v] device-file type ARGUMENTS -b block-size Specifies the block size of the file system in bytes. If you do not specify this option, newfs uses a default value of 8K. -c cylinders-per-group Specifies the number of cylinders per cylinder group in a file system. If you do not specify this option, newfs uses a default value of 16. device-file Specifies the name of the device file in /dev/rdsk on which to make the file system. The format of a device file name is cndnsn, where n is a number. The number that follows the c corresponds to a SCSI device number. An example device-file is /dev/rdsk/c5d0s0. -f fragment-size Specifies the fragment size of the file system in bytes. If you do not specify this option, newfs uses a default value of 1024. -i bytes-per-inode Specifies the density of inodes in the file system. If you do not specify this option, newfs creates an inode for each 2048 bytes of data space. If you want fewer inodes than the default creates, use a larger value for bytes-per-inode. If you want more inodes than the default creates, use a smaller value for bytes-per-inode. -m free-space Specifies the percentage of file-system space that cannot be used by users who are not logged in as root. This value is known as the free-space threshold for the file system. If you do not specify this option, newfs uses a default value of 10. You can change this value later by using tunefs. -r revolutions-per-minute Specifies the speed of the disk in revolutions per minute. If you do not specify this option, newfs uses January 1992 1
newfs(1M) newfs(1M)a default value of 3600. -s size Specifies the size of the file system in sectors. If you do not specify this option, newfs uses the size information from the disk partition map. See dpme(4) for details. -t tracks-per-cylinder Specifies the number of tracks per cylinder, which is equivalent to the number of heads on the disk drive. If you do not specify this option, newfs uses information from /etc/disktab. type Specifies the disk type, which corresponds to a disk entry in /etc/disktab. An example type is HD80SC. -v Causes newfs to display a log of its actions, including the parameters that it passes to /etc/fs/ufs/mkfs. DESCRIPTION newfs makes a Berkeley 4.2 file system (UFS) on the specified device file. The newfs command consults the disk label for disk partition information and /etc/disktab for disk architecture information, and calculates the appropriate parameters to use in calling /etc/fs/ufs/mkfs, which actually makes the file system. The newfs command invokes fsirand to generate random inode numbers and to install a file-system ID in the superblock. These actions increase the security of file systems exported by means of the Network File System (NFS). EXAMPLES The following command creates a UFS file system on the floppy disk in the drive on the right: newfs /dev/rdsk/c8d0s0 800k STATUS MESSAGES AND VALUES Here is the output of a newfs command that creates a UFS file system on a floppy disk: 800 sectors in 40 cylinders of 2 tracks, 10 sectors 0.4Mb in 3 cyl groups (16 c/g, 0.16Mb/g, 32 i/g) super-block backups (for fsck -b#) at: 16, 352, 656, FILES /etc/disktab Database directory of disk characteristics 2 January 1992
newfs(1M) newfs(1M)/etc/fs/ufs/mkfs Executable file that actually makes the file system /etc/fs/ufs/newfs Executable file /etc/newfs Link file to /etc/fs/ufs/newfs SEE ALSO dp(1M), fsck(1M), fsirand(1M), tunefs(1M) disktab(4), dpme(4), ufs(4), gd(7) in A/UX Programmer's Reference January 1992 3