Creating New File Systems

To make a new file system, identify the device name where the new file system will be constructed. The device names are provided using the Device File System, which gets mounted automatically on /dev directory. If it is not already mounted, issue a mount command manually. For each hard drive configured in the system there would be node names da1…da<n> depending on the number of drives. Each partition on drive is represented as slice da1s1 …da1s<n>, depending on the number of slices/partitions.

C:\> mount -a
C:\> mount
/dev/loop0 on /
devfs on /dev

It is also possible to construct file system image over ordinary file available in Windows,using the loopdev interface. The following example is for setting loop device loop1 for a file in C:\TEMP\test1.img. After this you can use /dev/loop1 to refer to this image file.
C:\> losetup loop1 c:\temp\test1.img

After you have successfully identified the device name proceed with the following command depending on the file system.

Filesystem Command
FFS newfs /dev/da4s1
EXT2FS e2mkfs /dev/da4s1
XFS xfs_mkfs /dev/da4s1