5.3. Creating a File System

This section explains how to create a file system on a disk. If you plan to use the disk partitions in raw mode and do not need a file system, you do not need to read this section.

Once the disk has been labelled, you can write a UFS or MS-DOS file system structure to any partition you have defined for the disk, except partition c.

Procedure 5.3. Creating a UFS File System

Procedure 5.4. Creating an MS-DOS File System

Example 5.1. Creating a File System on a RAM Disk

You can pass extra parameters to newfs or newfs_msdos when creating a file system on a RAM disk in order to maximize available space. The following command could be used (on BSD type file systems only) to maximize space available on a 1 MB RAM disk:

host% rsh 
target newfs -o space -c 26 -m 0 /dev/rd0a
[Note]Note

See Section 6.3, “Activating a Swap Partition” for details on activating a swap partition.