Make sure you have met the prerequisites listed on "Prerequisites".
Create the file system.
# newfs [-N] [-b size] [-i bytes] /dev/rdsk/device-name |
-N |
Displays all of the parameters newfs would pass to mkfs. No file system is created. |
-b size |
Sets the file system block size. Default is 8192 blocks. |
-i bytes |
Sets the number of bytes per inode. Default is 2048 bytes. |
device-name |
The device that will contain the new file system. |
Be sure you have specified the correct device name for the slice before performing the next step. If you specify the wrong slice, you will erase its contents when the new file system is created.
The system asks for confirmation.
To verify the creation of UFS file systems, check the new file systems with the fsck command.
# fsck /dev/rdsk/device-name |
device-name |
The name of the device containing the new file system. |
This utility checks the consistency of the new file system, reports problems it finds, and prompts you before repairing the problems. See Chapter 31, Checking File System Integrity for more information on fsck.
This example creates a file system on /dev/rdsk/c0t3d0s7.
# newfs /dev/rdsk/c0t3d0s7 newfs: construct a new file system /dev/rdsk/c0t3d0s7 (y/n)? y /dev/rdsk/c0t3d0s7: 163944 sectors in 506 cylinders of 9 tracks, 36 sectors 83.9MB in 32 cyl groups (16 c/g, 2.65MB/g, 1216 i/g) super-block backups (for fsck -b #) at: 32, 5264, 10496, 15728, 20960, 26192, 31424, 36656, 41888, 47120, 52352, 57584, 62816, 68048, 73280, 78512, 82976, 88208, 93440, 98672, 103904, 109136, 114368, 119600, 124832, 130064, 135296, 140528, 145760, 150992, 156224, 161456, |
If You Want to Make the File System Available By ... |
Then ... |
---|---|
Mounting the file system with the mount command | |
Creating an entry in /etc/vfstab to make the system automatically mount the file system when it boots |