newfs

共 2 篇文章。

How to install FreeBSD without CD-ROM, Floppy nor PXE?

SysAdmin

Today I have experienced how to install FreeBSD from a USB device - quite simple so you can do it yourself :-)

First, initialize the USB solid state disk with bsdlabel(8):

bsdlabel -wB /dev/da0

Then, initialize a file system:

newfs -O1 /dev/da0a

Third, copy CDROM’s /boot to it.

And you can now boot from the USB disk.

阅读全文… ( 本文约 70 字,阅读大致需要 1 分钟 )

How to optimize your FS?

Kernel

It turns out that we have to optimize our FS before benchmarking. I have read some articles and maillist archives so I got some impression:

  1. Give correct parameters to newfs(1)
    avgfilesize, filesperdir, will control DIRPERF hashing.

  2. Turn on noatime mounts.

  3. etc.

Just make a note.

参与评论