Using mkfs to create a bfs filesystem
When used to make a
bfs
filesystem, the
mkfs(1M)
command builds a filesystem with a root directory.
The syntax for the
mkfs
command when making a
bfs
filesystem is as follows:
mkfs [-F bfs] special blocks [inodes]
If the number of inodes
is not specified on the command line,
the default number of inodes
is calculated as a function of the filesystem size.
The limit is 512.
Although any disk can have multiple boot filesystems
defined on it,
you will not normally want more than one boot
filesystem on one disk.
The following procedure shows
how to define a new boot filesystem.
It is assumed that the disk you are using
is already bootable.
For instructions on making new bootable disks,
see
``Bootable partition administration''.
Defining a new boot filesystem on a bootable disk
-
Use the
prtvtoc(1M)
command to identify the type and size of the current
disk partitions on the disk.
If your new
bfs
filesystem requires a disk repartition
(that is, if you need information on
partitioning a bootable disk), see
``Bootable partition administration''.
-
Use the
mkfs(1M)
command to make a
bfs
filesystem in the appropriate partition of the disk.
NOTE:
The maximum size of a bfs filesystem is 128MB.
-
Mount the new boot filesystem.
-
Populate the new filesystem
by copying into the new
bfs
filesystem all the required bootable programs
and data files used during the boot procedure.
For information about these files, see
``The stand slice''.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004