Differences
This shows you the differences between two versions of the page.
newfs [2013/08/22 12:04] |
newfs [2013/08/22 12:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== newfs ====== | ||
+ | * [[Filesystems]] | ||
+ | * [[NetBSD]] | ||
+ | * [[OpenBSD]] | ||
+ | * [[disklabel]] | ||
+ | * [[fdisk]] | ||
+ | * [[raidctl]] | ||
+ | * [[softraid]] | ||
+ | |||
+ | Create a new UFS filesystem. | ||
+ | |||
+ | ==== NetBSD ==== | ||
+ | |||
+ | Before creating a filesystem, use [[disklabel]] to create a slice. | ||
+ | |||
+ | You must use the **raw** device to create a filesystem: | ||
+ | |||
+ | <code> | ||
+ | newfs -O 2 /dev/rsd1d | ||
+ | </code> | ||
+ | |||
+ | Use the **block** device to mount the new filesystem: | ||
+ | |||
+ | <code> | ||
+ | mount /dev/sd1d /mnt/newfs | ||
+ | </code> |