HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
n
newfs_hfs(1M) newfs_hfs(1M)
NAME
newfs_hfs: newfs - construct a new HFS file system
SYNOPSIS
/usr/sbin/newfs
[-F hfs][-B][
-d][-L-S][-O disk_type ][-R
swap][-v][-V]
[mkfs-options ] special
DESCRIPTION
The newfs command builds a file system by invoking the
mkfs command.
The
newfs command creates the file system with a rotational delay value of zero (see tunefs (1M)).
special represents a character (raw) special device.
Options
newfs recognizes the following options:
-F hfs Specify the HFS file system type.
-B Reserve space for boot programs past the end of the file system. If file
/usr/lib/uxbootlf
is present on the system then sufficient space to accommo-
date that file is reserved, otherwise 691 KB sectors are reserved. This option
decreases the size of the file system to be created. This option cannot be used if the
-s option is given; see "mkfs Options" below.
-d This option allows the newfs command to make the new file system in an ordinary
file. In this case, special is the name of an existing file in which to create the file
system. The -s option (see "mkfs Options") must be provided with this option.
-L-S There are two types of HFS file systems, distinguished mainly by directory formats
that place different limits on the length of file names.
If
-L is specified, build a long-file-name file system that allows directory entries (file
names) to be up to MAXNAMLEN (255) bytes long.
If
-S is specified, build a short-file-name file system that allows directory entries
(file names) to be up to DIRSIZ (14) bytes long.
If neither
-L nor -S is specified, build a file system of the same type as the root file
system.
-O disk_type Use disk parameters from the entry for the named disk type in /etc/disktab.
This option is provided for backward compatibility with previous HP-UX releases.
Any parameters specified in the command line will override the corresponding
values in /etc/disktab. Any values not given in the command line or in
/etc/disktab will be defaulted.
-R swap Reserve swap megabytes (MB) of swap space past the end of the file system. This
option decreases the size of the file system to be created by the given amount. This
option cannot be used if the -s option is given; see "mkfs Options" below.
-v Verbose; the newfs command prints out its actions, including the parameters
passed to the mkfs command.
-V Echo the completed command line, but perform no other actions. The command line
is generated by incorporating the user-specified options and other information
derived from /etc/fstab. This option allows the user to verify the command
line.
Both the
-R and -B options can be given in the same command line. In this case, both the requested
swap space and the space needed for boot programs are reserved. These options are for use when the file
system size defaults to the size of the entire disk.
mkfs Options
The mkfs-options argument can be zero or more of the following options that can be used to override
default values passed to the
mkfs command:
-b blksize The primary block size for files on the file system. Valid values are: 4096, 8192,
16384, 32768, and 65536. The default value is 8192 bytes.
Section 1M−−530 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: August 2003