Gentoo Archives: gentoo-doc-cvs

From: Camille Huot <cam@××××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: gentoo-freebsd.xml
Date: Thu, 10 May 2007 22:01:09
Message-Id: E1HmGgt-0001iB-57@stork.gentoo.org
1 cam 07/05/10 22:00:51
2
3 Modified: gentoo-freebsd.xml
4 Log:
5 - Replaced /mnt/gentoo by /mnt thanks to Freesbie
6 - Fixed the disklabel command that didn't work
7 - Set the time to avoid error messages in the kernel version
8 - How to use a non-'a' slice to boot
9 - Added a warning to not use symlink with Grub
10
11 Revision Changes Path
12 1.26 xml/htdocs/doc/en/gentoo-freebsd.xml
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.26&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?rev=1.26&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml?r1=1.25&r2=1.26
17
18 Index: gentoo-freebsd.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v
21 retrieving revision 1.25
22 retrieving revision 1.26
23 diff -u -r1.25 -r1.26
24 --- gentoo-freebsd.xml 8 Apr 2007 21:55:42 -0000 1.25
25 +++ gentoo-freebsd.xml 10 May 2007 22:00:51 -0000 1.26
26 @@ -1,5 +1,5 @@
27 <?xml version="1.0" encoding="UTF-8"?>
28 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.25 2007/04/08 21:55:42 nightmorph Exp $ -->
29 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-freebsd.xml,v 1.26 2007/05/10 22:00:51 cam Exp $ -->
30 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
31
32 <guide link="/doc/en/gentoo-freebsd.xml">
33 @@ -26,6 +26,9 @@
34 <author title="Editor">
35 <mail link="nightmorph@g.o">Joshua Saddler</mail>
36 </author>
37 +<author title="Editor">
38 + <mail link="cam@g.o">Camille Huot</mail>
39 +</author>
40
41 <abstract>
42 This document gives some general information on FreeBSD, as well as
43 @@ -37,8 +40,8 @@
44 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
45 <license/>
46
47 -<version>2.8</version>
48 -<date>2007-04-08</date>
49 +<version>2.9</version>
50 +<date>2007-05-10</date>
51
52 <chapter>
53 <title>Introduction to FreeBSD</title>
54 @@ -199,22 +202,6 @@
55 The output presented here will differ based on your network.
56 </note>
57
58 -<p>
59 -Next, create the chroot for your installation:
60 -</p>
61 -
62 -<pre caption="Making the chroot directory">
63 -# <i>mkdir /mnt/gentoo</i>
64 -</pre>
65 -
66 -<note>
67 -There is a bug in the <uri
68 -link="http://dev.gentoo.org/~flameeyes/minimal-freesbie-drizzt.iso.bz2">
69 -minimal Freesbie CD</uri> that prevents the creation of the
70 -<path>/mnt/gentoo</path> mount point. To avoid this, use <path>/mnt</path>
71 -instead of <path>/mnt/gentoo</path> in the following sections.
72 -</note>
73 -
74 </body>
75 </section>
76 <section>
77 @@ -251,7 +238,7 @@
78 partition, followed by a swap partition. Hit <b>c</b> to create a new
79 partition. A dialog prompts you to enter a size. Go ahead and do so, using
80 MB/GB for setting different sizes, or C for cylinders. For root, choose FS as
81 -the partition type, and set the mount point as <path>/mnt/gentoo</path>. <e>If
82 +the partition type, and set the mount point as <path>/mnt/</path>. <e>If
83 you do not adjust the mount point, it will overwrite the FreeSBIE
84 environment!</e> As <path>/boot</path> is not a separate partition, you'll
85 need to disable soft-updates, or your system will not boot! To do so, use the
86 @@ -271,20 +258,21 @@
87 </p>
88
89 <pre caption="Fixing the root partition letter">
90 -# <i>disklabel ad0s1 | sed 's/^ d:/ a:/g' | disklabel -w ad0s1</i>
91 +# <i>disklabel ad0s1 | sed 's/^ d:/ a:/' > label</i>
92 +# <i>disklabel -R ad0s1 label</i>
93 </pre>
94
95 <p>
96 This will finalize the partitioning process, and format the drive in UFS for
97 FreeBSD to utilize. This will also mount the drive for you at the mount point
98 -specified earlier (<path>/mnt/gentoo</path>). You can verify this worked by
99 +specified earlier (<path>/mnt/</path>). You can verify this worked by
100 running <c>mount</c>:
101 </p>
102
103 <pre caption="Verifying the new disk layout was mounted with mount">
104 # <i>mount</i>
105 ...
106 -/dev/ad0s1a on /mnt/gentoo (ufs, local)
107 +/dev/ad0s1a on /mnt (ufs, local)
108 </pre>
109
110 <p>
111 @@ -306,7 +294,7 @@
112 </p>
113
114 <pre caption="Obtaining and unpacking a stage3 tarball">
115 -# <i>cd /mnt/gentoo/</i>
116 +# <i>cd /mnt/</i>
117 <comment>(Any other Gentoo mirror which includes the experimental/ directory will also work.)</comment>
118 # <i>wget http://gentoo.osuosl.org/experimental/x86/freebsd/stages/stage3-x86-freebsd-6.2.tar.bz2</i>
119 # <i>tar -jxvpf stage3-x86-freebsd-6.2.tar.bz2</i>
120 @@ -330,9 +318,9 @@
121 </p>
122
123 <pre caption="Mounting the /dev filesystem and chrooting">
124 -# <i>mount -t devfs none /mnt/gentoo/dev/</i>
125 -# <i>cp /etc/resolv.conf /mnt/gentoo/etc</i>
126 -# <i>chroot /mnt/gentoo/ /bin/bash</i>
127 +# <i>mount -t devfs none /mnt/dev/</i>
128 +# <i>cp /etc/resolv.conf /mnt/etc/</i>
129 +# <i>chroot /mnt/ /bin/bash</i>
130 # <i>env-update &amp;&amp; source /etc/profile</i>
131 </pre>
132
133 @@ -386,6 +374,51 @@
134 <chapter>
135 <title>Setting up for Booting</title>
136 <section>
137 +<title>Set your time zone</title>
138 +<body>
139 +
140 +<p>
141 +First make sure your date and time is set correctly using <c>date
142 +yyyymmddHHMM</c>. Use UTC time.
143 +</p>
144 +
145 +<pre caption="Set the date and UTC time">
146 +<comment>(Check the clock)</comment>
147 +# <i>date</i>
148 +Mon Mar 6 00:14:13 UTC 2006
149 +
150 +<comment>(Set the current date and time if required)</comment>
151 +# <i>date 200603060016</i> <comment>(Format is yyyymmddHHMM)</comment>
152 +Mon Mar 6 00:16:00 UTC 2006
153 +</pre>
154 +
155 +<p>
156 +Next, set your time zone information by using the correct listing in
157 +<path>/usr/share/zoneinfo</path>.
158 +</p>
159 +
160 +<pre caption="Setting your timezone">
161 +# <i>ls /usr/share/zoneinfo</i>
162 +<comment>(Using Brussels as an example)</comment>
163 +# <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i>
164 +
165 +# <i>date</i>
166 +Wed Mar 8 00:46:05 CET 2006
167 +</pre>
168 +
169 +<p>
170 +Edit <path>/etc/conf.d/clock</path> to define the time zone you used
171 +previously.
172 +</p>
173 +
174 +<pre caption="Edit /etc/conf.d/clock">
175 +# <i>nano -w /etc/conf.d/clock</i>
176 +TIMEZONE="Europe/Brussels"
177 +</pre>
178 +
179 +</body>
180 +</section>
181 +<section>
182 <title>Kernel Installation</title>
183 <body>
184
185 @@ -491,8 +524,8 @@
186 <comment>(Leave the chroot environment)</comment>
187 # <i>exit</i>
188 <comment>(Issued from outside the chroot)</comment>
189 -# <i>fdisk -B -b /mnt/gentoo/boot/boot0 /dev/adX</i>
190 -# <i>chroot /mnt/gentoo /bin/bash</i>
191 +# <i>fdisk -B -b /mnt/boot/boot0 /dev/adX</i>
192 +# <i>chroot /mnt/ /bin/bash</i>
193 # <i>disklabel -B adXsY</i>
194 </pre>
195
196 @@ -553,6 +586,16 @@
197 </pre>
198
199 <p>
200 +To make the loader find the kernel on a specific slice (the default is 'a'),
201 +add a <c>vfs.root.mountfrom</c> line to the <path>/boot/loader.conf</path>
202 +file:
203 +</p>
204 +
205 +<pre caption="Tell the loader where to look for the kernel">
206 +# <i>echo 'vfs.root.mountfrom="ufs:ad0s1d"' >> /boot/loader.conf</i>
207 +</pre>
208 +
209 +<p>
210 When you first boot, you may not receive a grub menu. If so, run this at the
211 prompt:
212 </p>
213 @@ -574,6 +617,12 @@
214 Linux Handbook</uri>.
215 </note>
216
217 +<warn>
218 +Grub doesn't follow UFS symlinks so be sure to delete the
219 +<path>/boot/grub/menu.lst</path> symlink and to use <path>menu.lst</path> to
220 +setup Grub (<path>grub.conf</path> isn't used).
221 +</warn>
222 +
223 </body>
224 </section>
225 <section>
226
227
228
229 --
230 gentoo-doc-cvs@g.o mailing list