From owner-doc-jp@jp.freebsd.org  Sun Oct 31 15:41:11 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id PAA67617;
	Sun, 31 Oct 1999 15:41:11 +0900 (JST)
	(envelope-from owner-doc-jp@jp.FreeBSD.org)
Received: from sv01.geocities.co.jp (sv01.geocities.co.jp [210.153.89.155])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id PAA67612
	for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:41:10 +0900 (JST)
	(envelope-from hrs@geocities.co.jp)
Received: from mail.geocities.co.jp (mail.geocities.co.jp [210.153.89.137]) by sv01.geocities.co.jp (8.9.3+3.2W/3.7W) with ESMTP id PAA17573 for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:41:10 +0900 (JST)
Received: from mail.hrs.jp (sutnmax1-ppp45.ed.noda.sut.ac.jp [133.31.173.55]) by mail.geocities.co.jp (1.3G-GeocitiesJ-3.3) with ESMTP id PAA07572 for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:41:08 +0900 (JST)
Message-Id: <199910310641.PAA07572@mail.geocities.co.jp>
Received: from localhost (alph.hrs.jp [192.168.0.10])
	by mail.hrs.jp (8.9.3/3.7W/DomainMaster) with ESMTP id PAA77433
	for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:36:18 +0900 (JST)
	(envelope-from hrs@hrs.jp)
To: FreeBSD-doc-jp <doc-jp@jp.freebsd.org>
X-Mailer: Mew version 1.94 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Date: Sun, 31 Oct 1999 15:35:31 +0900
From: Hiroki Sato <hrs@geocities.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 97
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: doc-jp 6818
Subject: [doc-jp 6818] <handbook> cutting-edge/chapter.sgml 1.30 -> 1.32 (part 6/7)
Errors-To: owner-doc-jp@jp.freebsd.org
Sender: owner-doc-jp@jp.freebsd.org
X-Originator: hrs@geocities.co.jp

$B:4F#!wEl5~M}2JBg3X$G$9!#(B

$BO;$DL\!#(B

+    <sect2>
+      <title>Compile and install a new kernel</title>
+
+      <para>To take full advantage of your new system you should recompile the
+	kernel.  This is practically a necessity, as certain memory structures
+	may have changed, and programs like &man.ps.1; and &man.top.1; will
+	fail to work until the kernel and source code versions are the
+	same.</para>
+
+      <para>Follow the handbook instructions for compiling a new kernel.  If
+	you have previously built a custom kernel then carefully examine the
+	<filename>LINT</filename> config file to see if there are any new
+	options which you should take advantage of.</para>
+
+      <para>A previous version of this document suggested rebooting before
+	rebuilding the kernel.  This is wrong because:</para>
+
+      <itemizedlist>
+	<listitem>
+	  <para>Commands like &man.ps.1;, &man.ifconfig.8;, and &man.sysctl.8; 
+	    may fail.  This could leave your machine unable to connect to the
+	    network.</para>
+	</listitem>
+      
+	<listitem>
+	  <para>Basic utilities like &man.mount.8; could fail,
+	    making it impossible to mount <filename>/</filename>,
+	    <filename>/usr</filename> and so on.  This is unlikely if you are
+	    tracking a -stable candidate, but more likely if you are tracking
+	    -current during a large merge.</para>
+	</listitem>
+
+	<listitem>
+	  <para>Loadable kernel modules (LKMs on pre-3.x systems, KLDs on 3.x
+	    systems and above) built as part of the <quote>world</quote> may
+	    crash an older kernel.</para>
+	</listitem>
+      </itemizedlist>
+
+      <para>For these reasons, it is always best to rebuild and install a
+	new kernel before rebooting.</para>
+
+      <para>You should build your new kernel after you have completed
+	<userinput>make world</userinput> (or <userinput>make
+	  installworld</userinput>).  If you do not want to do this (perhaps
+	you want to confirm that the kernel builds before updating your
+	system) you may have problems.  These may be because your
+	  &man.config.8; command is out of date with respect to your kernel
+	sources.</para>
+
+      <para>In this case you could build your kernel with the new version of &man.config.8;</para>
+      
+      <screen>&prompt.root; <userinput>/usr/obj/usr/src/usr.sbin/config/config <replaceable>KERNELNAME</replaceable></userinput></screen>
+
+      <para>This may not work in all cases.  It is recommended that you
+	complete <userinput>make world</userinput> (or <userinput>make
+	  installworld</userinput>) before compiling a new kernel.</para>
+    </sect2>
+    
+    <sect2>
+      <title/Rebooting/
+      
+      <para>You are now done.  After you have verified that everything appears
+	to be in the right place you can reboot the system.  A simple
+	&man.fastboot.8; should do it.</para>
+
+      <screen>&prompt.root; <userinput>fastboot</userinput></screen>
+    </sect2>
+
+    <sect2>
+      <title>Finished</title>
+      
+      <para>You should now have successfully upgraded your FreeBSD system.
+	Congratulations.</para>
+      
+      <para>You may notice small problems due to things that you have missed.
+	For example, I once deleted <filename>/etc/magic</filename> as part of
+	the upgrade and merge to <filename>/etc</filename>, and the
+	<command>file</command> command stopped working.  A moment's thought
+	meant that
+
+	<screen>&prompt.root; <userinput>cd /usr/src/usr.bin/file</userinput>
+&prompt.root; <userinput/make all install/</screen>
+
+	was sufficient to fix that one.</para>
+    </sect2>    
+    


--
| $B:4F#(B $B9-@8!wEl5~M}2JBg3X(B <hrs@geocities.co.jp>
|                         mailto:j7397067@ed.noda.sut.ac.jp
|
