Creating and Removing Filesystems
The standard UNIX command for creating a filesystem is mkfs, but Solaris also provides a simple wrapper to this called newfs that can be used to create UFS type filesystems. Before you can create a filesystem you need to create a label for the disk that includes the partition table. The new filesystem can then be created on one of these partitions. This process will normally be carried out using the Solaris format utility (discussed earlier).
If we wanted to create a UFS filesystem on the partition c0t2d0s4, assuming we had defined the partition and written the label to disk we could issue the following newfs command:
hydrogen# newfs /dev/dsk/c0t2d0s4 newfs: /dev/rdsk/c0t2d0s4 last mounted as /usr/local/utils ...
Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.