内に含まその他のドキュメントサポート リソース | PDF 文書ファイルをダウンロードする (8966 KB)
newfs(1M)Name | Synopsis | Description | Options | Operands | Usage | Examples | Exit Status | Attributes | See Also | Diagnostics Name
Synopsisnewfs [-NSBTv] [mkfs-options] raw-device Descriptionnewfs is a "friendly" front-end to the mkfs(1M) program for making UFS file systems on disk partitions. newfs calculates the appropriate parameters to use and calls mkfs. If run interactively (that is, standard input is a tty), newfs prompts for confirmation before making the file system. If the -N option is not specified and the inodes of the device are not randomized, newfs calls fsirand(1M). You must be super-user or have appropriate write privileges to use this command, except when creating a UFS file system on a diskette. See EXAMPLES. Creating a Multiterabyte UFS File SystemOptions
The following options are supported: Operands
The following operands are supported: UsageSee largefile(5) for the description of the behavior of newfs when encountering files greater than or equal to 2 Gbyte ( 231 bytes). ExamplesExample 1 Displaying the Parameters for the Raw Special DeviceThe following example verbosely displays the parameters for the raw special device, c0t0d0s6. It does not actually create a new file system:
Example 2 Creating a UFS File SystemThe following example creates a UFS file system on a diskette that is managed by Volume Manager.
Example 3 Creating a UFS File System That Will Eventually Be Grown to a Multiterabyte UFS File SystemThe following example creates a UFS file system that will eventually be grown to a multiterabyte UFS file system. This command creates a 800-Gbyte file system on the volume, /dev/md/rdsk/d99.
Then, if you increase the volume size for this file system, you can use the growfs command to expand the file system. The file system is grown to 1.2 terabytes in this example:
Exit Status
The following exit values are returned: Other exit values may be returned by mkfs(1M), which is called by newfs. AttributesSee attributes(5) for descriptions of the following attributes:
See Alsofsck(1M), fsck_ufs(1M), fsirand(1M), mkfs(1M), mkfs_ufs(1M), tunefs(1M), attributes(5), largefile(5), ufs(7FS) Diagnostics
Name | Synopsis | Description | Options | Operands | Usage | Examples | Exit Status | Attributes | See Also | Diagnostics |
||||||||||