Rebuilding the System

Now you are ready to rebuild the system. The best way to do this is to break it down into two steps so that the majority of it can be done without dropping into single user mode. This means that the system can continue to function normally throughout most of the build process.

Removing the Old Object Files

The first thing to do is remove any old object files from previous builds. This is done by changing to the /usr/obj directory and using the following command:

chflags –R noschg *
rm –rf *

The second command is one that you are familiar with, but the first one requires some additional explanation. This command removes the immutable flag from any files that might have it set. This flag protects files from accidental deletion ...

Get Sams Teach Yourself FreeBSD® in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.