From owner-doc-jp@jp.freebsd.org  Sun Oct 31 15:41:09 1999
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id PAA67560;
	Sun, 31 Oct 1999 15:41:09 +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 PAA67555
	for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:41:09 +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 PAA17561 for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:41:08 +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 PAA07554 for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:41:07 +0900 (JST)
Message-Id: <199910310641.PAA07554@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 PAA77431
	for <doc-jp@jp.freebsd.org>; Sun, 31 Oct 1999 15:36:15 +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:28 +0900
From: Hiroki Sato <hrs@geocities.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 96
Reply-To: doc-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: doc-jp 6817
Subject: [doc-jp 6817] <handbook> cutting-edge/chapter.sgml 1.30 -> 1.32 (part 5/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

$B8^$DL\!#(B

+    <sect2>
+      <title>Update <filename>/dev</filename></title>
+      
+      <note>
+	<title>DEVFS</title>
+	
+	<para>If you are using DEVFS then this is probably unnecessary.</para>
+      </note>
+      
+      <para>For safety's sake, this is a multistep process.</para>
+
+      <procedure>
+	<step>
+	  <para>Copy <filename>/var/tmp/root/dev/MAKEDEV</filename> to
+	    <filename>/dev</filename>.</para>
+	
+	  <screen>&prompt.root; <userinput>cp /var/tmp/root/dev/MAKEDEV /dev</userinput></screen>
+	</step>
+
+	<step>
+	  <para>Now, take a snapshot of your current
+	    <filename>/dev</filename>.  This  snapshot needs to contain the
+	    permissions, ownerships, major and minor numbers of each filename,
+	    but it should not contain the timestamps.  The easiest way to do
+	    this is to use &man.awk.1; to strip out some of the
+	    information.</para>
+
+	  <screen>&prompt.root; <userinput>cd /dev</userinput>
+&prompt.root; <userinput>ls -l | awk '{print $1, $2, $3, $4, $5, $6, $NF}' > /var/tmp/dev.out</userinput></screen>
+	</step>
+
+	<step>
+	  <para>Remake all the devices.</para>
+	    
+	    <screen>&prompt.root; <userinput/sh MAKEDEV all/</screen>
+	</step>
+
+	<step>
+	  <para>Write another snapshot of the directory, this time to
+	    <filename>/var/tmp/dev2.out</filename>.  Now look through these
+	    two files for any devices that you missed creating.  There should
+	    not be any, but it is better to be safe than sorry.</para>
+
+	  <screen>&prompt.root; <userinput>diff /var/tmp/dev.out /var/tmp/dev2.out</userinput></screen>
+
+	  <para>You are most likely to notice disk slice discrepancies which
+	    will involve commands such as
+	  
+	    <screen>&prompt.root; <userinput>sh MAKEDEV sd0s1</userinput></screen>
+
+	    to recreate the slice entries.  Your precise circumstances may
+	    vary.</para>
+	</step>
+      </procedure>
+    </sect2>
+    
+    <sect2>
+      <title>Update <filename>/stand</filename></title>
+      
+      <note>
+	<para>This step is included only for completeness, it can safely be
+	  omitted.</para>
+      </note>
+      
+      <para>For completenesses sake you may want to update the files in
+	<filename>/stand</filename> as well.  These files consist of hard
+	links to the <filename>/stand/sysinstall</filename> binary.  This
+	binary should  be statically linked, so that it can work when no other
+	filesystems (and  in particular <filename>/usr</filename>) have been
+	mounted.</para>
+
+      <screen>&prompt.root; <userinput>cd /usr/src/release/sysinstall</userinput>
+&prompt.root; <userinput>make all install</userinput></screen>
+
+      <note>
+	<title>Source older than 2 April 1998</title>
+	
+	<para>If your source code is older than 2nd April 1998, or the
+	  <filename>Makefile</filename> version is not 1.68 or higher (for
+	  FreeBSD current and 3.x systems) or 1.48.2.21 or higher (for 2.2.x
+	  systems) you will need to add the
+	  <userinput>NOSHARED=yes</userinput> option, like so;</para>
+
+	<screen>&prompt.root; <userinput>make NOSHARED=yes all install</userinput></screen>
+      </note>
+    </sect2>


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