O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required