aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/handbook/bsdinstall/chapter.xml
blob: 4bfb9a645fac2f4c2e55b7ef92531bd78f6415f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
     The FreeBSD Documentation Project

     $FreeBSD$
-->

<chapter xmlns="http://docbook.org/ns/docbook"
  xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
  xml:id="bsdinstall">

  <info>
    <title>Installing &os;</title>

    <authorgroup>
      <author>
	<personname>
	  <firstname>Jim</firstname>
	  <surname>Mock</surname>
	</personname>

	<contrib>Restructured, reorganized, and parts rewritten
	  by </contrib>
      </author>
    </authorgroup>

    <!---
      <authorgroup>
	<author>
	  <personname>
	    <firstname>Randy</firstname>
	    <surname>Pratt</surname>
	  </personname>
	  <contrib>The sysinstall walkthrough, screenshots, and
	    general copy by </contrib>
	</author>
      </authorgroup>
    -->

    <authorgroup>
      <author>
	<personname>
	  <firstname>Gavin</firstname>
	  <surname>Atkinson</surname>
	</personname>

	<contrib>Updated for bsdinstall by </contrib>
      </author>

      <author>
	<personname>
	  <firstname>Warren</firstname>
	  <surname>Block</surname>
	</personname>
      </author>
    </authorgroup>

    <authorgroup>
      <author>
	<personname>
	  <firstname>Allan</firstname>
	  <surname>Jude</surname>
	</personname>

	<contrib>Updated for root-on-ZFS by </contrib>
      </author>
    </authorgroup>
  </info>

  <sect1 xml:id="bsdinstall-synopsis">
    <title>Synopsis</title>

    <indexterm><primary>installation</primary></indexterm>

    <para>There are several different ways of getting &os; to run,
      depending on the environment.  Those are:</para>

    <itemizedlist>
      <listitem>
	<para>Virtual Machine images, to download and import on a
	  virtual environment of choice.  These can be downloaded from
	  the <link
	    xlink:href="https://www.freebsd.org/where.html">Download
	    FreeBSD</link> page.  There are images for KVM
	  (<quote>qcow2</quote>), VMWare (<quote>vmdk</quote>),
	  Hyper-V (<quote>vhd</quote>), and raw device images that are
	  universally supported.  These are not installation images,
	  but rather the preconfigured (<quote>already
	    installed</quote>) instances, ready to run and perform
	  post-installation tasks.</para>
      </listitem>

      <listitem>
	<para>Virtual Machine images available at Amazon's <link
	    xlink:href="https://aws.amazon.com/marketplace/pp/B07L6QV354">AWS
	    Marketplace</link>, <link
	    xlink:href="https://azuremarketplace.microsoft.com/en-us/marketplace/apps?search=freebsd&amp;page=1">Microsoft
	    Azure Marketplace</link>, and <link
	    xlink:href="https://console.cloud.google.com/marketplace/details/freebsd-cloud/freebsd-12">Google
	    Cloud Platform</link>, to run on their respective hosting
	  services.  For more information on deploying &os; on Azure
	  please consult the relevant chapter in the <link
	    xlink:href="https://docs.microsoft.com/en-us/azure/virtual-machines/linux/freebsd-intro-on-azure">Azure
	    Documentation</link>.</para>
      </listitem>

      <listitem>
	<para>SD card images, for embedded systems such as Raspberry
	  Pi or BeagleBone Black.  These can be downloaded from the
	  <link
	    xlink:href="https://www.freebsd.org/where.html">Download
	    FreeBSD</link> page.  These files must be uncompressed and
	  written as a raw image to an SD card, from which the board
	  will then boot.</para>
      </listitem>

      <listitem>
	<para>Installation images, to install &os; on
	  a hard drive for the usual desktop, laptop, or server
	  systems.</para>
      </listitem>
    </itemizedlist>

    <para>The rest of this chapter describes the fourth case,
      explaining how to install &os; using the text-based
      installation program named
      <application>bsdinstall</application>.</para>

    <para>In general, the installation instructions in this chapter
      are written for the &i386; and <acronym>AMD64</acronym>
      architectures.  Where applicable, instructions specific to other
      platforms will be listed.  There may be minor differences
      between the installer and what is shown here, so use this
      chapter as a general guide rather than as a set of literal
      instructions.</para>

    <note><para>Users who prefer to install &os; using a graphical
      installer may be interested in
      <link xlink:href="https://www.furybsd.org">FuryBSD</link>,
      <link xlink:href="https://ghostbsd.org">GhostBSD</link> or
      <link
	xlink:href="https://www.midnightbsd.org">MidnightBSD</link>.</para>
    </note>

    <para>After reading this chapter, you will know:</para>

    <itemizedlist>
      <listitem>
	<para>The minimum hardware requirements and &os; supported
	  architectures.</para>
      </listitem>

      <listitem>
	<para>How to create the &os; installation media.</para>
      </listitem>

      <listitem>
	<para>How to start
	  <application>bsdinstall</application>.</para>
      </listitem>

      <listitem>
	<para>The questions <application>bsdinstall</application> will
	  ask, what they mean, and how to answer them.</para>
      </listitem>

      <listitem>
	<para>How to troubleshoot a failed installation.</para>
      </listitem>

      <listitem>
	<para>How to access a live version of &os; before committing
	  to an installation.</para>
      </listitem>
    </itemizedlist>

    <para>Before reading this chapter, you should:</para>

    <itemizedlist>
      <listitem>
	<para>Read the supported hardware list that shipped with the
	  version of &os; to be installed and verify that the system's
	  hardware is supported.</para>
      </listitem>
    </itemizedlist>
  </sect1>

  <sect1 xml:id="bsdinstall-hardware">
    <title>Minimum Hardware Requirements</title>

    <para>The hardware requirements to install &os; vary by
      architecture.  Hardware architectures and devices supported by a
      &os; release are listed on the <link
	xlink:href="&url.base;/releases/index.html">&os; Release
      Information</link> page.  The <link
	xlink:href="&url.base;/where.html">&os; download page</link>
      also has recommendations for choosing the correct image for
      different architectures.</para>

    <para>A &os; installation requires a minimum of 96&nbsp;MB of
      <acronym>RAM</acronym> and 1.5&nbsp;GB of free hard drive space.
      However, such small amounts of memory and disk space are really
      only suitable for custom applications like embedded appliances.
      General-purpose desktop systems need more resources.
      2-4&nbsp;GB RAM and at least 8&nbsp;GB hard drive space is a
      good starting point.</para>

    <para>These are the processor requirements for each
      architecture:</para>

    <variablelist>
      <varlistentry>
	<term>&arch.amd64;</term>
	<listitem>
	  <para>This is the most common desktop and laptop processor
	    type, used in most modern systems.  &intel; calls it
	    <acronym>Intel64</acronym>.  Other manufacturers sometimes
	    call it <acronym>x86-64</acronym>.</para>

	  <para>Examples of &arch.amd64; compatible processors
	    include: &amd.athlon;64, &amd.opteron;,
	    multi-core &intel;&nbsp;&xeon;, and
	    &intel;&nbsp;&core;&nbsp;2 and later processors.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term>&arch.i386;</term>
	<listitem>
	  <para>Older desktops and laptops often use this 32-bit, x86
	    architecture.</para>

	  <para>Almost all i386-compatible processors with a floating
	    point unit are supported.  All &intel; processors 486 or
	    higher are supported.</para>

	  <para>&os; will take advantage of Physical Address
	    Extensions (<acronym>PAE</acronym>) support on
	    <acronym>CPU</acronym>s with this feature.  A kernel with
	    the <acronym>PAE</acronym> feature enabled will detect
	    memory above 4&nbsp;GB and allow it to be used by the
	    system.  However, using <acronym>PAE</acronym> places
	    constraints on device drivers and other features of
	    &os;.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term>&arch.powerpc;</term>
	<listitem>
	  <para>All New World <acronym>ROM</acronym> &apple;
	    &mac; systems with built-in <acronym>USB</acronym>
	    are supported.  <acronym>SMP</acronym> is supported on
	    machines with multiple <acronym>CPU</acronym>s.</para>

	  <para>A 32-bit kernel can only use the first 2&nbsp;GB of
	    <acronym>RAM</acronym>.</para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term>&arch.sparc64;</term>
	<listitem>
	  <para>Systems supported by &os;/&arch.sparc64; are listed at
	    the <link
	      xlink:href="&url.base;/platforms/sparc.html">FreeBSD/sparc64
	      Project</link>.</para>

	  <para><acronym>SMP</acronym> is supported on all systems
	    with more than 1 processor.  A dedicated disk is required
	    as it is not possible to share a disk with another
	    operating system at this time.</para>
	</listitem>
      </varlistentry>
    </variablelist>
  </sect1>

  <sect1 xml:id="bsdinstall-pre">
    <title>Pre-Installation Tasks</title>

    <para>Once it has been determined that the system meets the
      minimum hardware requirements for installing &os;, the
      installation file should be downloaded and the installation
      media prepared.  Before doing this, check that the system is
      ready for an installation by verifying the items in this
      checklist:</para>

    <procedure>
      <step>
	<title>Back Up Important Data</title>

	<para>Before installing any operating system,
	  <emphasis>always</emphasis> backup all important data first.
	  Do not store the backup on the system being installed.
	  Instead, save the data to a removable disk such as a
	  <acronym>USB</acronym> drive, another system on the network,
	  or an online backup service.  Test the backup before
	  starting the installation to make sure it contains all of
	  the needed files.  Once the installer formats the system's
	  disk, all data stored on that disk will be lost.</para>
      </step>

      <step>
	<title>Decide Where to Install &os;</title>

	<para>If &os; will be the only operating system installed,
	  this step can be skipped.  But if &os; will share the disk
	  with another operating system, decide which disk or
	  partition will be used for &os;.</para>

	<para>In the &arch.i386; and &arch.amd64; architectures, disks
	  can be divided into multiple partitions using one of two
	  partitioning schemes.  A traditional <firstterm>Master Boot
	    Record</firstterm> (<acronym>MBR</acronym>) holds a
	  partition table defining up to four <firstterm>primary
	    partitions</firstterm>.  For historical reasons, &os;
	  calls these primary partition
	  <firstterm>slices</firstterm>.  One of these primary
	  partitions can be made into an <firstterm>extended
	    partition</firstterm> containing multiple
	  <firstterm>logical partitions</firstterm>.  The
	  <firstterm>GUID Partition Table</firstterm>
	  (<acronym>GPT</acronym>) is a newer and simpler method of
	  partitioning a disk.  Common <acronym>GPT</acronym>
	  implementations allow up to 128 partitions per disk,
	  eliminating the need for logical partitions.</para>

	<para>The &os; boot loader requires either a primary or
	  <acronym>GPT</acronym> partition.  If all of the primary or
	  <acronym>GPT</acronym> partitions are already in use, one
	  must be freed for &os;.  To create a partition without
	  deleting existing data, use a partition resizing tool to
	  shrink an existing partition and create a new partition
	  using the freed space.</para>

	<para>A variety of free and commercial partition resizing
	  tools are listed at <link
	    xlink:href="http://en.wikipedia.org/wiki/List_of_disk_partitioning_software">http://en.wikipedia.org/wiki/List_of_disk_partitioning_software</link>.
	  <application>GParted Live</application> (<link
	    xlink:href="http://gparted.sourceforge.net/livecd.php">http://gparted.sourceforge.net/livecd.php</link>)
	  is a free live <acronym>CD</acronym> which includes the
	  <application>GParted</application> partition editor.
	  <application>GParted</application> is also included with
	  many other Linux live <acronym>CD</acronym>
	  distributions.</para>

	<warning>
	  <para>When used properly, disk shrinking utilities can
	    safely create space for creating a new partition.  Since
	    the possibility of selecting the wrong partition exists,
	    always backup any important data and verify the integrity
	    of the backup before modifying disk partitions.</para>
	</warning>

	<para>Disk partitions containing different operating systems
	  make it possible to install multiple operating systems on
	  one computer.  An alternative is to use virtualization
	  (<xref linkend="virtualization"/>) which allows multiple
	  operating systems to run at the same time without modifying
	  any disk partitions.</para>
      </step>

      <step>
	<title>Collect Network Information</title>

	<para>Some &os; installation methods require a network
	  connection in order to download the installation files.
	  After any installation, the installer will offer to setup
	  the system's network interfaces.</para>

	<para>If the network has a <acronym>DHCP</acronym> server, it
	  can be used to provide automatic network configuration.  If
	  <acronym>DHCP</acronym> is not available, the following
	  network information for the system must be obtained from the
	  local network administrator or Internet service
	  provider:</para>

	<orderedlist xml:id="bsdinstall-collect-network-information">
	  <title>Required Network Information</title>

	  <listitem>
	    <para><acronym>IP</acronym> address</para>
	  </listitem>

	  <listitem>
	    <para>Subnet mask</para>
	  </listitem>

	  <listitem>
	    <para><acronym>IP</acronym> address of default
	      gateway</para>
	  </listitem>

	  <listitem>
	    <para>Domain name of the network</para>
	  </listitem>

	  <listitem>
	    <para><acronym>IP</acronym> addresses of the network's
	      <acronym>DNS</acronym> servers</para>
	  </listitem>
	</orderedlist>
      </step>

      <step>
	<title>Check for &os; Errata</title>

	<para>Although the &os;&nbsp;Project strives to ensure that
	  each release of &os; is as stable as possible, bugs
	  occasionally creep into the process.  On very rare occasions
	  those bugs affect the installation process.  As these
	  problems are discovered and fixed, they are noted in the
	  &os; Errata (<link
	    xlink:href="&url.base;/releases/&rel121.current;R/errata.html">https://www.freebsd.org/releases/&rel121.current;R/errata.html</link>)
	  on the &os; web site.  Check the errata before installing to
	  make sure that there are no problems that might affect the
	  installation.</para>

	<para>Information and errata for all the releases can be found
	  on the release information section of the &os; web site
	  (<link
	    xlink:href="&url.base;/releases/index.html">https://www.freebsd.org/releases/index.html</link>).</para>
      </step>
    </procedure>

    <sect2 xml:id="bsdinstall-installation-media">
      <title>Prepare the Installation Media</title>

      <para>The &os; installer is not an application that can be run
	from within another operating system.  Instead, download a
	&os; installation file, burn it to the media associated with
	its file type and size (<acronym>CD</acronym>,
	<acronym>DVD</acronym>, or <acronym>USB</acronym>), and boot
	the system to install from the inserted media.</para>

      <para>&os; installation files are available at <link
	  xlink:href="&url.base;/where.html#download">www.freebsd.org/where.html#download</link>.
	Each installation file's name includes the release version of
	&os;, the architecture, and the type of file.  For example, to
	install &os; 12.1 on an &arch.amd64; system from a
	<acronym>DVD</acronym>, download
	<filename>FreeBSD-12.1-RELEASE-amd64-dvd1.iso</filename>, burn
	this file to a <acronym>DVD</acronym>, and boot the system
	with the <acronym>DVD</acronym> inserted.</para>

      <para>Installation files are available in several formats.
	The formats vary depending on computer architecture and media
	type.</para>

      <para xml:id="bsdinstall-installation-media-uefi">Additional
	installation files are included for computers that boot with
	<acronym>UEFI</acronym> (Unified Extensible Firmware
	Interface).  The names of these files include the string
	<filename>uefi</filename>.</para>

      <para>File types:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>-bootonly.iso</literal>: This is the smallest
	    installation file as it only contains the installer.  A
	    working Internet connection is required during
	    installation as the installer will download the files it
	    needs to complete the &os; installation.  This file should
	    be burned to a <acronym>CD</acronym> using a
	    <acronym>CD</acronym> burning application.</para>
	</listitem>

	<listitem>
	  <para><literal>-disc1.iso</literal>: This file contains all
	    of the files needed to install &os;, its source, and the
	    Ports Collection.  It should be burned to a
	    <acronym>CD</acronym> using a <acronym>CD</acronym>
	    burning application.</para>
	</listitem>

	<listitem>
	  <para><literal>-dvd1.iso</literal>: This file contains all
	    of the files needed to install &os;, its source, and the
	    Ports Collection.  It also contains a set of popular
	    binary packages for installing a window manager and some
	    applications so that a complete system can be installed
	    from media without requiring a connection to the Internet.
	    This file should be burned to a <acronym>DVD</acronym>
	    using a <acronym>DVD</acronym> burning application.</para>
	</listitem>

	<listitem>
	  <para><literal>-memstick.img</literal>: This file contains
	    all of the files needed to install &os;, its source, and
	    the Ports Collection.  It should be burned to a
	    <acronym>USB</acronym> stick using the instructions
	    below.</para>
	</listitem>

	<listitem>
	  <para><literal>-mini-memstick.img</literal>: Like
	    <literal>-bootonly.iso</literal>, does not include
	    installation files, but downloads them as needed.  A
	    working internet connection is required during
	    installation.  Write this file to a <acronym>USB</acronym>
	    stick as shown in <xref linkend="bsdinstall-usb"/>.</para>
	</listitem>
      </itemizedlist>

      <para>After downloading the image file, download
	<filename>CHECKSUM.SHA256</filename> from
	the same directory.  Calculate a
	<firstterm>checksum</firstterm> for the image file.
	&os; provides &man.sha256.1; for this, used as <command>sha256
	  <replaceable>imagefilename</replaceable></command>.
	Other operating systems have similar programs.</para>

      <para>Compare the calculated checksum with the one shown in
	<filename>CHECKSUM.SHA256</filename>.  The checksums must
	match exactly.  If the checksums do not match, the image file
	is corrupt and must be downloaded again.</para>

      <sect3 xml:id="bsdinstall-usb">
	<title>Writing an Image File to <acronym>USB</acronym></title>

	<para>The <filename>*.img</filename> file is an
	  <emphasis>image</emphasis> of the complete contents of a
	  memory stick.  It <emphasis>cannot</emphasis> be copied to
	  the target device as a file.  Several applications are
	  available for writing the <filename>*.img</filename> to a
	  <acronym>USB</acronym> stick.  This section describes two of
	  these utilities.</para>

	<important>
	  <para>Before proceeding, back up any important data on the
	    <acronym>USB</acronym> stick.  This procedure will erase
	    the existing data on the stick.</para>
	</important>

	<procedure xml:id="bsdinstall-usb-dd">
	  <title>Using <command>dd</command> to Write the
	    Image</title>

	  <warning>
	    <para>This example uses <filename>/dev/da0</filename> as
	      the target device where the image will be written.  Be
	      <emphasis>very careful</emphasis> that the correct
	      device is used as this command will destroy the existing
	      data on the specified target device.</para>
	  </warning>

	  <step>
	    <para>The &man.dd.1; command-line utility is
	      available on BSD, &linux;, and &macos; systems.  To burn
	      the image using <command>dd</command>, insert the
	      <acronym>USB</acronym> stick and determine its device
	      name.  Then, specify the name of the downloaded
	      installation file and the device name for the
	      <acronym>USB</acronym> stick.  This example burns the
	      &arch.amd64; installation image to the first
	      <acronym>USB</acronym> device on an existing &os;
	      system.</para>

	    <screen>&prompt.root; <userinput>dd if=<replaceable>FreeBSD-12.1-RELEASE-amd64-memstick.img</replaceable> of=/dev/<replaceable>da0</replaceable> bs=1M conv=sync</userinput></screen>

	    <para>If this command fails, verify that the
	      <acronym>USB</acronym> stick is not mounted and that the
	      device name is for the disk, not a partition.  Some
	      operating systems might require this command to be run
	      with &man.sudo.8;.  The &man.dd.1; syntax varies slightly
	      across different platforms; for example, &macos; requires
	      a lower-case <option>bs=1m</option>.
	      Systems like &linux; might buffer
	      writes.  To force all writes to complete, use
	      &man.sync.8;.</para>
	  </step>
	</procedure>

	<procedure>
	  <title>Using &windows; to Write the Image</title>

	  <warning>
	    <para>Be sure to give the correct drive letter as the
	      existing data on the specified drive will be overwritten
	      and destroyed.</para>
	  </warning>

	  <step>
	    <title>Obtaining <application>Image Writer for
		&windows;</application></title>

	    <para><application>Image Writer for
		&windows;</application> is a free application that can
	      correctly write an image file to a memory stick.
	      Download it from <uri
		xlink:href="https://sourceforge.net/projects/win32diskimager/">https://sourceforge.net/projects/win32diskimager/</uri>
	      and extract it into a folder.</para>
	  </step>

	  <step>
	    <title>Writing the Image with Image Writer</title>

	    <para>Double-click the
	      <application>Win32DiskImager</application> icon to start
	      the program.  Verify that the drive letter shown under
	      <computeroutput>Device</computeroutput> is the drive
	      with the memory stick.  Click the folder icon and select
	      the image to be written to the memory stick.  Click
	      <guibutton>[&nbsp;Save&nbsp;]</guibutton> to accept the
	      image file name.  Verify that everything is correct, and
	      that no folders on the memory stick are open in other
	      windows.  When everything is ready, click
	      <guibutton>[&nbsp;Write&nbsp;]</guibutton> to write the
	      image file to the memory stick.</para>
	  </step>
	</procedure>

	<para>You are now ready to start installing &os;.</para>
      </sect3>
    </sect2>
  </sect1>

  <sect1 xml:id="bsdinstall-start">
    <title>Starting the Installation</title>

    <important>
      <para>By default, the installation will not make any changes to
	the disk(s) before the following message:</para>

      <programlisting>Your changes will now be written to disk. If you
have chosen to overwrite existing data, it will
be PERMANENTLY ERASED. Are you sure you want to
commit your changes?</programlisting>

      <para>The install can be exited at any time prior to this
	warning.  If
	there is a concern that something is incorrectly configured,
	just turn the computer off before this point and no changes
	will be made to the system's disks.</para>
    </important>

    <para>This section describes how to boot the system from the
      installation media which was prepared using the instructions in
      <xref linkend="bsdinstall-installation-media"/>.  When using a
      bootable USB stick, plug in the <acronym>USB</acronym> stick
      before turning on the computer.  When booting from
      <acronym>CD</acronym> or <acronym>DVD</acronym>, turn on the
      computer and insert the media at the first opportunity.  How to
      configure the system to boot from the inserted media depends
      upon the architecture.</para>

    <sect2 xml:id="bsdinstall-starting-i386">
      <title>Booting on &i386; and &arch.amd64;</title>

      <para>These architectures provide a <acronym>BIOS</acronym>
	menu for selecting the boot device.  Depending upon the
	installation media being used, select the
	<acronym>CD</acronym>/<acronym>DVD</acronym> or
	<acronym>USB</acronym> device as the first boot device.  Most
	systems also provide a key for selecting the boot device
	during startup without having to enter the
	<acronym>BIOS</acronym>.  Typically, the key is either
	<keycap>F10</keycap>, <keycap>F11</keycap>,
	<keycap>F12</keycap>, or <keycap>Escape</keycap>.</para>

      <para>If the computer loads the existing operating system
	instead of the &os; installer, then either:</para>

      <orderedlist>
	<listitem>
	  <para>The installation media was not inserted early enough
	    in the boot process.  Leave the media inserted and try
	    restarting the computer.</para>
	</listitem>

	<listitem>
	  <para>The <acronym>BIOS</acronym> changes were incorrect or
	    not saved.  Double-check that the right boot device is
	    selected as the first boot device.</para>
	</listitem>

	<listitem>
	  <para>This system is too old to support booting from the
	    chosen media.  In this case, the <application>Plop Boot
	      Manager</application> (<link
	      xlink:href="http://www.plop.at/en/bootmanagers.html" />)
	    can be used to boot the system from the selected
	    media.</para>
	</listitem>
      </orderedlist>
    </sect2>

    <sect2>
      <title>Booting on &powerpc;</title>

      <para>On most machines, holding <keycap>C</keycap> on the
	keyboard during boot will boot from the <acronym>CD</acronym>.
	Otherwise, hold <keycombo action="simul">
	  <keycap>Command</keycap>
	  <keycap>Option</keycap>
	  <keycap>O</keycap>
	  <keycap>F</keycap>
	</keycombo>, or
	<keycombo action="simul">
	  <keycap>Windows</keycap>
	  <keycap>Alt</keycap>
	  <keycap>O</keycap>
	  <keycap>F</keycap>
	</keycombo> on non-&apple; keyboards.  At the
	<prompt>0 &gt;</prompt> prompt, enter</para>

      <screen><userinput>boot cd:,\ppc\loader cd:0</userinput></screen>
    </sect2>

    <sect2 xml:id="bsdinstall-view-probe">
      <title>&os; Boot Menu</title>

      <para>Once the system boots from the installation media, a menu
	similar to the following will be displayed:</para>

      <figure xml:id="bsdinstall-newboot-loader-menu">
	<title>&os; Boot Loader Menu</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-newboot-loader-menu"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>By default, the menu will wait ten seconds for user input
	before booting into the &os; installer or, if &os; is already
	installed, before booting into &os;.  To pause the boot timer
	in order to review the selections, press
	<keycap>Space</keycap>.  To select an option, press its
	highlighted number, character, or key.  The following options
	are available.</para>

      <itemizedlist>
	<listitem>
	  <para><literal>Boot Multi User</literal>: This will
	    continue the &os; boot process.  If the boot timer has
	    been paused, press <keycap>1</keycap>, upper- or
	    lower-case <keycap>B</keycap>, or
	    <keycap>Enter</keycap>.</para>
	</listitem>

	<listitem>
	  <para><literal>Boot Single User</literal>: This mode can be
	    used to fix an existing &os; installation as described in
	    <xref linkend="boot-singleuser"/>.  Press
	    <keycap>2</keycap> or the upper- or lower-case
	    <keycap>S</keycap> to enter this mode.</para>
	</listitem>

	<listitem>
	  <para><literal>Escape to loader prompt</literal>: This will
	    boot the system into a repair prompt that contains a
	    limited number of low-level commands.  This prompt is
	    described in <xref linkend="boot-loader"/>.  Press
	    <keycap>3</keycap> or <keycap>Esc</keycap> to boot into
	    this prompt.</para>
	</listitem>

	<listitem>
	  <para><literal>Reboot</literal>: Reboots the system.</para>
	</listitem>

        <listitem>
          <para><literal>Kernel</literal>: Loads a different
            kernel.</para>
        </listitem>

	<listitem>
	  <para><literal>Configure Boot Options</literal>: Opens the
	    menu shown in, and described under, <xref
	      linkend="bsdinstall-boot-options-menu"/>.</para>
	</listitem>
      </itemizedlist>

      <figure xml:id="bsdinstall-boot-options-menu">
	<title>&os; Boot Options Menu</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-boot-options-menu"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>The boot options menu is divided into two sections.  The
	first section can be used to either return to the main boot
	menu or to reset any toggled options back to their
	defaults.</para>

      <para>The next section is used to toggle the available options
	to <literal>On</literal> or <literal>Off</literal> by pressing
	the option's highlighted number or character.  The system will
	always boot using the settings for these options until they
	are modified.  Several options can be toggled using this
	menu:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>ACPI Support</literal>: If the system hangs
	    during boot, try toggling this option to
	    <literal>Off</literal>.</para>
	</listitem>

	<listitem>
	  <para><literal>Safe Mode</literal>: If the system still
	    hangs during boot even with <literal>ACPI
	      Support</literal> set to <literal>Off</literal>, try
	    setting this option to <literal>On</literal>.</para>
	</listitem>

	<listitem>
	  <para><literal>Single User</literal>: Toggle this option to
	    <literal>On</literal> to fix an existing &os; installation
	    as described in <xref linkend="boot-singleuser"/>.  Once
	    the problem is fixed, set it back to
	    <literal>Off</literal>.</para>
	</listitem>

	<listitem>
	  <para><literal>Verbose</literal>: Toggle this option to
	    <literal>On</literal> to see more detailed messages during
	    the boot process.  This can be useful when troubleshooting
	    a piece of hardware.</para>
	</listitem>
      </itemizedlist>

      <para>After making the needed selections, press
	<keycap>1</keycap> or <keycap>Backspace</keycap> to return to
	the main boot menu, then press <keycap>Enter</keycap> to
	continue booting into &os;.  A series of boot messages will
	appear as &os; carries out its hardware device probes and
	loads the installation program.  Once the boot is complete,
	the welcome menu shown in <xref
	  linkend="bsdinstall-choose-mode"/> will be displayed.</para>

      <figure xml:id="bsdinstall-choose-mode">
	<title>Welcome Menu</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-choose-mode"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Press <keycap>Enter</keycap> to select the default of
	<guibutton>[&nbsp;Install&nbsp;]</guibutton> to enter the
	installer.  The rest of this chapter describes how to use this
	installer.  Otherwise, use the right or left arrows or the
	colorized letter to select the desired menu item.  The
	<guibutton>[&nbsp;Shell&nbsp;]</guibutton> can be used to
	access a &os; shell in order to use command line utilities to
	prepare the disks before installation.  The
	<guibutton>[&nbsp;Live CD&nbsp;]</guibutton> option can be
	used to try out &os; before installing it.  The live version
	is described in <xref linkend="using-live-cd"/>.</para>

      <tip>
	<para>To review the boot messages, including the hardware
	  device probe, press the upper- or lower-case
	  <keycap>S</keycap> and then <keycap>Enter</keycap> to access
	  a shell.  At the shell prompt, type <command>more
	    /var/run/dmesg.boot</command> and use the space bar to
	  scroll through the messages.  When finished, type
	  <command>exit</command> to return to the welcome
	  menu.</para>
      </tip>
    </sect2>
  </sect1>

  <sect1 xml:id="using-bsdinstall">
    <title>Using <application>bsdinstall</application></title>

    <para>This section shows the order of the
      <application>bsdinstall</application> menus and the type of
      information that will be asked before the system is installed.
      Use the arrow keys to highlight a menu option, then
      <keycap>Space</keycap> to select or deselect that menu item.
      When finished, press <keycap>Enter</keycap> to save the
      selection and move onto the next screen.</para>

    <sect2 xml:id="bsdinstall-keymap">
      <title>Selecting the Keymap Menu</title>

      <para>Before starting the process,
	<application>bsdinstall</application> will load the keymap
	files as show in <xref
	  linkend="bsdinstall-keymap-loading"/>.</para>

      <figure xml:id="bsdinstall-keymap-loading">
	<title>Keymap Loading</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-keymap-loading"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>After the keymaps have been loaded
	<application>bsdinstall</application> displays the
	menu shown in <xref linkend="bsdinstall-keymap-10"/>.  Use the
	up and down arrows to select the keymap that most closely
	represents the mapping of the keyboard attached to the system.
	Press <keycap>Enter</keycap> to save the selection.</para>

      <figure xml:id="bsdinstall-keymap-10">
	<title>Keymap Selection Menu</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-keymap-10"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <note><para>Pressing <keycap>Esc</keycap> will exit this menu
	and use the default keymap.  If the choice of keymap is not
	clear, <guimenuitem>United States of America
	ISO-8859-1</guimenuitem> is also a safe option.</para></note>

      <para>In addition, when selecting a different keymap, the user
	can try the keymap and ensure it is correct before proceeding
	as shown in <xref linkend="bsdinstall-keymap-testing"/>.</para>

      <figure xml:id="bsdinstall-keymap-testing">
	<title>Keymap Testing Menu</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-keymap-testing"/>
	  </imageobject>
	</mediaobject>
      </figure>

    </sect2>

    <sect2 xml:id="bsdinstall-hostname">
      <title>Setting the Hostname</title>

      <para>The next <application>bsdinstall</application> menu is
	used to set the hostname for the newly installed
	system.</para>

      <figure xml:id="bsdinstall-config-hostname">
	<title>Setting the Hostname</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-config-hostname"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Type in a hostname that is unique for the network.  It
	should be a fully-qualified hostname, such as <systemitem
	  class="fqdomainname">machine3.example.com</systemitem>.</para>
    </sect2>

    <sect2 xml:id="bsdinstall-components">
      <title>Selecting Components to Install</title>

      <para>Next, <application>bsdinstall</application> will prompt to
	select optional components to install.</para>

      <figure xml:id="bsdinstall-config-components">
	<title>Selecting Components to Install</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-config-components"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Deciding which components to install will depend largely
	on the intended use of the system and the amount of disk space
	available.  The &os; kernel and userland, collectively known
	as the <firstterm>base system</firstterm>, are always
	installed.  Depending on the architecture, some of these
	components may not appear:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>base-dbg</literal> - Base tools like
	    <application>cat</application>,
	    <application>ls</application> among many others with
	    debug symbols activated.</para>
	</listitem>

	<listitem>
	  <para><literal>kernel-dbg</literal> - Kernel and modules with
	    debug symbols activated.</para>
	</listitem>

	<listitem>
	  <para><literal>lib32-dbg</literal> - Compatibility libraries
	    for running 32-bit applications on a 64-bit version of
	    &os; with debug symbols activated.</para>
	</listitem>

	<listitem>
	  <para><literal>lib32</literal> - Compatibility libraries for
	    running 32-bit applications on a 64-bit version of
	    &os;.</para>
	</listitem>

	<listitem>
	  <para><literal>ports</literal> - The &os; Ports Collection
	    is a collection of files which automates the downloading,
	    compiling and installation of third-party software
	    packages.  <xref linkend="ports"/> discusses how to use
	    the Ports Collection.</para>

	  <warning>
	    <para>The installation program does not check for
	      adequate disk space.  Select this option only if
	      sufficient hard disk space is available.  The &os; Ports
	      Collection takes up about &ports.size; of disk
	      space.</para>
	  </warning>
	</listitem>

	<listitem>
	  <para><literal>src</literal> - The complete &os; source code
	    for both the kernel and the userland.  Although not
	    required for the majority of applications, it may be
	    required to build device drivers, kernel modules, or some
	    applications from the Ports Collection.  It is also used
	    for developing &os; itself.  The full source tree requires
	    1&nbsp;GB of disk space and recompiling the entire &os;
	    system requires an additional 5&nbsp;GB of space.</para>
	</listitem>

	<listitem>
	  <para><literal>tests</literal> - &os; Test Suite.</para>
	</listitem>
      </itemizedlist>
    </sect2>

    <sect2 xml:id="bsdinstall-netinstall">
      <title>Installing from the Network</title>

      <para>The menu shown in
	<xref linkend="bsdinstall-netinstall-notify"/> only appears
	when installing from a <filename>-bootonly.iso</filename> or
	<filename>-mini-memstick.img</filename> as this installation
	media does not hold copies of the installation files.
	Since the installation files must be retrieved over a network
	connection, this menu indicates that the network interface must
	be configured first.  If this menu is shown in any step of the
	process remember to follow the instructions in
	<xref linkend="bsdinstall-config-network-dev"/>.</para>

      <figure xml:id="bsdinstall-netinstall-notify">
	<title>Installing from the Network</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-netinstall-files"/>
	  </imageobject>
	</mediaobject>
      </figure>
    </sect2>
  </sect1>

  <sect1 xml:id="bsdinstall-partitioning">
    <title>Allocating Disk Space</title>

    <para>The next menu is used to determine the method for
      allocating disk space.</para>

    <figure xml:id="bsdinstall-zfs-partmenu">
      <title>Partitioning Choices</title>

      <mediaobject>
	<imageobject>
	  <imagedata fileref="bsdinstall/bsdinstall-zfs-partmenu"/>
	</imageobject>
      </mediaobject>
    </figure>

    <para><application>bsdinstall</application> gives the user four
      methods for allocating disk space:</para>

    <itemizedlist>
      <listitem>
	<para><literal>Auto (UFS)</literal> partitioning
	  automatically sets up the disk partitions using the
	  <literal>UFS</literal> file system.</para>
      </listitem>

      <listitem>
	<para><literal>Manual</literal> partitioning allows
	  advanced users to create customized partitions from menu
	  options.</para>
      </listitem>

      <listitem>
	<para><literal>Shell</literal> opens a shell prompt where
	  advanced users can create customized partitions using
	  command-line utilities like &man.gpart.8;, &man.fdisk.8;,
	  and &man.bsdlabel.8;.</para>
      </listitem>

      <listitem>
	<para><literal>Auto (ZFS)</literal> partitioning creates a
	  root-on-ZFS system with optional GELI encryption support for
	  <firstterm>boot environments</firstterm>.</para>
      </listitem>
    </itemizedlist>

    <para>This section describes what to consider when laying out the
      disk partitions.  It then demonstrates how to use the different
      partitioning methods.</para>

    <sect2 xml:id="configtuning-initial">
      <title>Designing the Partition Layout</title>

      <indexterm><primary>partition layout</primary></indexterm>
      <indexterm>
	<primary><filename>/etc</filename></primary>
      </indexterm>
      <indexterm>
	<primary><filename>/var</filename></primary>
      </indexterm>
      <indexterm>
	<primary><filename>/usr</filename></primary>
      </indexterm>

      <para>When laying out file systems, remember that hard drives
	transfer data faster from the outer tracks to the inner.
	Thus, smaller and heavier-accessed file systems should be
	closer to the outside of the drive, while larger partitions
	like <filename>/usr</filename> should be placed toward the
	inner parts of the disk.  It is a good idea to create
	partitions in an order similar to: <filename>/</filename>,
	swap, <filename>/var</filename>, and
	<filename>/usr</filename>.</para>

      <para>The size of the <filename>/var</filename> partition
	reflects the intended machine's usage.  This partition is
	used to hold mailboxes, log files, and printer spools.
	Mailboxes and log files can grow to unexpected sizes
	depending on the number of users and how long log files are
	kept.  On average, most users rarely need more than about a
	gigabyte of free disk space in
	<filename>/var</filename>.</para>

      <note>
	<para>Sometimes, a lot of disk space is required in
	  <filename>/var/tmp</filename>.  When new software is
	  installed, the packaging tools extract a temporary copy of
	  the packages under <filename>/var/tmp</filename>.  Large
	  software packages, like <application>Firefox</application>
	  or <application>LibreOffice</application> may be tricky to
	  install if there is not enough disk space under
	  <filename>/var/tmp</filename>.</para>
      </note>

      <para>The <filename>/usr</filename> partition holds many of the
	files which support the system, including the &os; Ports
	Collection and system source code.  At least 2 gigabytes of
	space is recommended for this partition.</para>

      <para>When selecting partition sizes, keep the space
	requirements in mind.  Running out of space in one partition
	while barely using another can be a hassle.</para>

      <indexterm>
	<primary>swap sizing</primary>
      </indexterm>
      <indexterm>
	<primary>swap partition</primary>
      </indexterm>

      <para>As a rule of thumb, the swap partition should be about
	double the size of physical memory (<acronym>RAM</acronym>).
	Systems with minimal <acronym>RAM</acronym> may perform
	better with more swap.  Configuring too little swap can lead
	to inefficiencies in the <acronym>VM</acronym> page scanning
	code and might create issues later if more memory is
	added.</para>

      <para>On larger systems with multiple <acronym>SCSI</acronym>
	disks or multiple <acronym>IDE</acronym> disks operating on
	different controllers, it is recommended that swap be
	configured on each drive, up to four drives.  The swap
	partitions should be approximately the same size.  The
	kernel can handle arbitrary sizes but internal data structures
	scale to 4 times the largest swap partition.  Keeping the swap
	partitions near the same size will allow the kernel to
	optimally stripe swap space across disks.  Large swap sizes
	are fine, even if swap is not used much.  It might be easier
	to recover from a runaway program before being forced to
	reboot.</para>

      <para>By properly partitioning a system, fragmentation
	introduced in the smaller write heavy partitions will not
	bleed over into the mostly read partitions.  Keeping the
	write loaded partitions closer to the disk's edge will
	increase <acronym>I/O</acronym> performance in the
	partitions where it occurs the most.  While
	<acronym>I/O</acronym> performance in the larger partitions
	may be needed, shifting them more toward the edge of the disk
	will not lead to a significant performance improvement over
	moving <filename>/var</filename> to the edge.</para>
    </sect2>

    <sect2 xml:id="bsdinstall-part-guided">
      <title>Guided Partitioning Using UFS</title>

      <para>When this method is selected, a menu will display the
	available disk(s).  If multiple disks are connected, choose
	the one where &os; is to be installed.</para>

      <figure xml:id="bsdinstall-part-guided-disk">
	<title>Selecting from Multiple Disks</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-part-guided-disk"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Once the disk is selected, the next menu prompts to
	install to either the entire disk or to create a partition
	using free space.  If
	<guibutton>[&nbsp;Entire&nbsp;Disk&nbsp;]</guibutton> is
	chosen, a general partition layout filling the whole disk is
	automatically created.  Selecting
	<guibutton>[&nbsp;Partition&nbsp;]</guibutton> creates a
	partition layout from the unused space on the disk.</para>

      <figure xml:id="bsdinstall-part-entire-part">
	<title>Selecting Entire Disk or Partition</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-part-entire-part"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>After
	<guibutton>[&nbsp;Entire&nbsp;Disk&nbsp;]</guibutton> is
	chosen <application>bsdinstall</application> displays a
	dialog indicating that the disk will be erased.</para>

      <figure xml:id="bsdinstall-ufs-warning">
	<title>Confirmation</title>

        <mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-ufs-warning"/>
	  </imageobject>
        </mediaobject>
      </figure>

      <para>The next menu shows a list with the partition schemes
	types.  GPT is usually the most appropriate choice for amd64
	computers.  Older computers that are not compatible with GPT
	should use MBR.  The other partition schemes are generally
	used for uncommon or older computers.  More information is
	available in <xref linkend="partition-schemes"/>.</para>

      <figure xml:id="bsdinstall-ufs-scheme">
	<title>Select Partition Scheme</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-part-manual-partscheme"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>After the partition layout has been created, review it to
	ensure it meets the needs of the installation.  Selecting
	<guibutton>[&nbsp;Revert&nbsp;]</guibutton> will reset the
	partitions to their original values and pressing
	<guibutton>[&nbsp;Auto&nbsp;]</guibutton> will recreate the
	automatic &os; partitions.  Partitions can also be manually
	created, modified, or deleted.  When the partitioning is
	correct, select <guibutton>[&nbsp;Finish&nbsp;]</guibutton> to
	continue with the installation.</para>

      <figure xml:id="bsdinstall-part-review">
	<title>Review Created Partitions</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-part-review"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Once the disks are configured, the next menu provides the
	last chance to make changes before the selected drives are
	formatted.  If changes need to be made, select
	<guibutton>[&nbsp;Back&nbsp;]</guibutton> to return to the
	main partitioning menu.
      	<guibutton>[&nbsp;Revert&nbsp;&amp;&nbsp;Exit&nbsp;]</guibutton>
	exits the installer without making any changes to the drive.
	Select <guibutton>[&nbsp;Commit&nbsp;]</guibutton> to start
	the installation process.</para>

      <figure xml:id="bsdinstall-ufs-final-confirmation">
	<title>Final Confirmation</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-final-confirmation"/>
	  </imageobject>
	</mediaobject>
      </figure>

    <para>To continue with the installation process go to
      <xref linkend="bsdinstall-fetching-distribution"/>.</para>
    </sect2>

    <sect2 xml:id="bsdinstall-part-manual">
      <title>Manual Partitioning</title>

      <para>Selecting this method opens the partition editor:</para>

      <figure xml:id="bsdinstall-part-manual-create">
	<title>Manually Create Partitions</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-part-manual-create"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Highlight the installation drive
	(<filename>ada0</filename> in this example) and select
	<guibutton>[&nbsp;Create&nbsp;]</guibutton> to display a menu
	of available partition schemes:</para>

      <figure xml:id="bsdinstall-part-manual-partscheme">
	<title>Manually Create Partitions</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-part-manual-partscheme"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para><acronym>GPT</acronym> is usually the most appropriate
	choice for &arch.amd64; computers.  Older computers that are
	not compatible with <acronym>GPT</acronym> should use
	<acronym>MBR</acronym>.  The other partition schemes are
	generally used for uncommon or older computers.</para>

      <table xml:id="partition-schemes" frame="none" rowsep="1" pgwide="1">
	<title>Partitioning Schemes</title>

	<tgroup cols="2" align="left">
	  <thead>
	    <row>
	      <entry align="left">Abbreviation</entry>
	      <entry align="left">Description</entry>
	    </row>
	  </thead>

	  <tbody>
	    <row>
	      <entry>APM</entry>
	      <entry>Apple Partition Map, used by &powerpc;.</entry>
	    </row>

	    <row>
	      <entry>BSD</entry>
	      <entry><acronym>BSD</acronym> label without an
		<acronym>MBR</acronym>, sometimes called
		<firstterm>dangerously dedicated mode</firstterm> as
		non-<acronym>BSD</acronym> disk utilities may not
		recognize it.</entry>
	    </row>

	    <row>
	      <entry>GPT</entry>
	      <entry>GUID Partition Table (<link
		  xlink:href="http://en.wikipedia.org/wiki/GUID_Partition_Table">http://en.wikipedia.org/wiki/GUID_Partition_Table</link>).</entry>
	    </row>

	    <row>
	      <entry>MBR</entry>
	      <entry>Master Boot Record (<link
		  xlink:href="http://en.wikipedia.org/wiki/Master_boot_record">http://en.wikipedia.org/wiki/Master_boot_record</link>).</entry>
	    </row>

	    <row>
	      <entry>VTOC8</entry>
	      <entry>Volume Table Of Contents used by Sun SPARC64 and
		UltraSPARC computers.</entry>
	    </row>
	  </tbody>
	</tgroup>
      </table>

      <para>After the partitioning scheme has been selected and
	created, select <guibutton>[&nbsp;Create&nbsp;]</guibutton>
	again to create the partitions.  The <keycap>Tab</keycap>
	key is used to move the cursor between fields.</para>

      <figure xml:id="bsdinstall-part-manual-addpart">
	<title>Manually Create Partitions</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-part-manual-addpart"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>A standard &os; <acronym>GPT</acronym> installation uses
	at least three partitions:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>freebsd-boot</literal> - Holds the &os; boot
	    code.</para>
	</listitem>

	<listitem>
	  <para><literal>freebsd-ufs</literal> - A &os;
	    <acronym>UFS</acronym> file system.</para>
	</listitem>

	<listitem>
	  <para><literal>freebsd-zfs</literal> - A &os;
	    <acronym>ZFS</acronym> file system.  More information about
	    ZFS is available in <xref linkend="zfs"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>freebsd-swap</literal> - &os; swap
	    space.</para>
	</listitem>
      </itemizedlist>

      <para>Refer to &man.gpart.8; for descriptions of the available
	<acronym>GPT</acronym> partition types.</para>

      <para>Multiple file system partitions can be created and some
	people prefer a traditional layout with separate partitions
	for <filename>/</filename>, <filename>/var</filename>,
	<filename>/tmp</filename>, and <filename>/usr</filename>.  See
	<xref linkend="bsdinstall-part-manual-splitfs"/> for an
	example.</para>

      <para>The <literal>Size</literal> may be entered with common
	abbreviations: <emphasis>K</emphasis> for kilobytes,
	<emphasis>M</emphasis> for megabytes, or
	<emphasis>G</emphasis> for gigabytes.</para>

      <tip>
	<para>Proper sector alignment provides the best performance,
	  and making partition sizes even multiples of 4K bytes helps
	  to ensure alignment on drives with either 512-byte or
	  4K-byte sectors.  Generally, using partition sizes that are
	  even multiples of 1M or 1G is the easiest way to make sure
	  every partition starts at an even multiple of 4K.  There is
	  one exception: the <emphasis>freebsd-boot</emphasis>
	  partition should be no larger than 512K due to current boot
	  code limitations.</para>
      </tip>

      <para>A <literal>Mountpoint</literal> is needed if the partition
	will contain a file system.  If only a single
	<acronym>UFS</acronym> partition will be created, the
	mountpoint should be <filename>/</filename>.</para>

      <para>The <literal>Label</literal> is a name by which the
	partition will be known.  Drive names or numbers can change if
	the drive is connected to a different controller or port, but
	the partition label does not change.  Referring to labels
	instead of drive names and partition numbers in files like
	<filename>/etc/fstab</filename> makes the system more tolerant
	to hardware changes.  <acronym>GPT</acronym> labels appear in
	<filename>/dev/gpt/</filename> when a disk is attached.  Other
	partitioning schemes have different label capabilities and
	their labels appear in different directories in
	<filename>/dev/</filename>.</para>

      <tip>
	<para>Use a unique label on every partition to avoid
	  conflicts from identical labels.  A few letters from the
	  computer's name, use, or location can be added to the label.
	  For instance, use <literal>labroot</literal> or
	  <literal>rootfslab</literal> for the <acronym>UFS</acronym>
	  root partition on the computer named
	  <literal>lab</literal>.</para>
      </tip>

      <example xml:id="bsdinstall-part-manual-splitfs">
	<title>Creating Traditional Split File System
	  Partitions</title>

	<para>For a traditional partition layout where the
	  <filename>/</filename>, <filename>/var</filename>,
	  <filename>/tmp</filename>, and <filename>/usr</filename>
	  directories are separate file systems on their own
	  partitions, create a <acronym>GPT</acronym> partitioning
	  scheme, then create the partitions as shown.  Partition
	  sizes shown are typical for a 20G target disk.  If more
	  space is available on the target disk, larger swap or
	  <filename>/var</filename> partitions may be useful.  Labels
	  shown here are prefixed with <literal>ex</literal> for
	  <quote>example</quote>, but readers should use other unique
	  label values as described above.</para>

	<para>By default, &os;'s <filename>gptboot</filename> expects
	  the first <acronym>UFS</acronym> partition to be the
	  <filename>/</filename> partition.</para>

	<informaltable frame="none">
	  <tgroup cols="4">
	    <thead>
	      <row>
		<entry>Partition Type</entry>
		<entry>Size</entry>
		<entry>Mountpoint</entry>
		<entry>Label</entry>
	      </row>
	    </thead>

	    <tbody>
	      <row>
		<entry><literal>freebsd-boot</literal></entry>
		<entry><literal>512K</literal></entry>
	      </row>

	      <row>
		<entry><literal>freebsd-ufs</literal></entry>
		<entry><literal>2G</literal></entry>
		<entry><filename>/</filename></entry>
		<entry><literal>exrootfs</literal></entry>
	      </row>

	      <row>
		<entry><literal>freebsd-swap</literal></entry>
		<entry><literal>4G</literal></entry>
		<entry></entry>
		<entry><literal>exswap</literal></entry>
	      </row>

	      <row>
		<entry><literal>freebsd-ufs</literal></entry>
		<entry><literal>2G</literal></entry>
		<entry><filename>/var</filename></entry>
		<entry><literal>exvarfs</literal></entry>
	      </row>

	      <row>
		<entry><literal>freebsd-ufs</literal></entry>
		<entry><literal>1G</literal></entry>
		<entry><filename>/tmp</filename></entry>
		<entry><literal>extmpfs</literal></entry>
	      </row>

	      <row>
		<entry><literal>freebsd-ufs</literal></entry>
		<entry>accept the default (remainder of the
		  disk)</entry>
		<entry><filename>/usr</filename></entry>
		<entry><literal>exusrfs</literal></entry>
	      </row>
	    </tbody>
	  </tgroup>
	</informaltable>
      </example>

      <para>After the custom partitions have been created, select
	<guibutton>[&nbsp;Finish&nbsp;]</guibutton> to continue with
	the installation and go to
	<xref linkend="bsdinstall-fetching-distribution"/>.</para>
    </sect2>

    <sect2 xml:id="bsdinstall-part-zfs">
      <title>Guided Partitioning Using Root-on-ZFS</title>

      <para>This partitioning mode only works with whole disks and
	will erase the contents of the entire disk.  The main
	<acronym>ZFS</acronym> configuration menu offers a number of
	options to control the creation of the pool.</para>

      <figure xml:id="bsdinstall-zfs-menu">
	<title><acronym>ZFS</acronym> Partitioning Menu</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-menu"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Here is a summary of the options which can be used in
	this menu:</para>

    <itemizedlist>
      <listitem>
	<para><literal>Install</literal> - Proceed with the
	  installation with the selected options.</para>
      </listitem>

      <listitem>
	<para><literal>Pool Type/Disks</literal> - Allow to configure
	  the <literal>Pool Type</literal> and the disk(s) that will
	  constitute the pool.  The automatic <acronym>ZFS</acronym>
	  installer currently only supports the creation of a single top
	  level vdev, except in stripe mode.  To create more complex
	  pools, use the instructions in <xref linkend="bsdinstall-part-shell"/>
	  to create the pool.</para>
      </listitem>

      <listitem>
	<para><literal>Rescan Devices</literal> - Repopulate the list
	  of available disks.</para>
      </listitem>

      <listitem>
	<para><literal>Disk Info</literal> - Disk Info menu can be
	  used to inspect each disk, including its partition table and
	  various other information such as the device model number
	  and serial number, if available.</para>
      </listitem>

      <listitem>
	<para><literal>Pool Name</literal> - Establish the name of the
	  pool.  The default name is
	  <emphasis>zroot</emphasis>.</para>
      </listitem>

      <listitem>
	<para><literal>Force 4K Sectors?</literal> - Force the use of
	  4K sectors.  By default, the installer will automatically
	  create partitions aligned to 4K boundaries and force ZFS to
	  use 4K sectors.  This is safe even with 512 byte sector
	  disks, and has the added benefit of ensuring that pools
	  created on 512 byte disks will be able to have 4K sector
	  disks added in the future, either as additional storage
	  space or as replacements for failed disks.  Press the
	  <keycap>Enter</keycap> key to chose to activate it or
	  not.</para>
      </listitem>

      <listitem>
	<para><literal>Encrypt Disks?</literal> - Encrypting the disks
	  allows the user to encrypt the disks using
	  <acronym>GELI</acronym>.  More information about disk
	  encryption is available in <xref linkend="disks-encrypting-geli"/>.
	  Press the <keycap>Enter</keycap> key to chose activate it or
	  not.</para>
      </listitem>

      <listitem>
	<para><literal>Partition Scheme</literal> - Allow to choose
	  the partition scheme.  GPT is the recommended option in
	  most cases.  Press the <keycap>Enter</keycap> key to chose
	  between the different options.</para>
      </listitem>

      <listitem>
	<para><literal>Swap Size</literal> - Establish the amount of
	  swap space.</para>
      </listitem>

      <listitem>
	<para><literal>Mirror Swap?</literal> - Allows the user to
	  mirror the swap between the disks.  Be aware, enabling
	  mirror swap will break crash dumps.  Press the
	  <keycap>Enter</keycap> key to activate it or not.</para>
      </listitem>

      <listitem>
	<para><literal>Encrypt Swap?</literal> - Allow the user the
	  possibility to encrypt the swap.  Encrypts the swap with a
	  temporary key each time that the system boots and discards
	  it on reboot.  Press the <keycap>Enter</keycap> key to chose
	  activate it or not.  More information about swap encryption
	  in <xref linkend="swap-encrypting"/>.</para>
      </listitem>
    </itemizedlist>

      <para>Select <keycap>T</keycap> to configure the <literal>Pool
	Type</literal> and the disk(s) that will constitute the
	pool.</para>

      <figure xml:id="bsdinstall-zfs-vdev_type">
	<title><acronym>ZFS</acronym> Pool Type</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-vdev_type"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Here is a summary of the <literal>Pool Type</literal>
	which can be selected in this menu:</para>

    <itemizedlist>
      <listitem>
	<para><literal>stripe</literal> - Striping provides maximum
	  storage of all connected devices, but no redundancy.  If
	  just one disk fails the data on the pool is lost
	  irrevocably.</para>
      </listitem>
      <listitem>
	<para><literal>mirror</literal> - Mirroring stores a complete
	  copy of all data on every disk.  Mirroring provides a good
	  read perfomance because data is read from all disks in
	  parallel.  Write performance is slower as the data must be
	  written to all disks in the pool.  Allows all but one disk
	  to fail.  This options requires at least two disks.</para>
      </listitem>
      <listitem>
	<para><literal>raid10</literal> - Striped mirrors.  Provides
	  the best performance, but the least storage.  This option
	  needs at least an even number of disks and a minimum of four
	  disks.</para>
      </listitem>
      <listitem>
	<para><literal>raidz1</literal> - Single Redundant RAID.
	  Allow one disk to fail concurrently.  This option needs at
	  least three disks.</para>
      </listitem>
      <listitem>
	<para><literal>raidz2</literal> - Double Redundant RAID.
	  Allows two disks to fail concurrently.  This option needs
	  at least four disks.</para>
      </listitem>
      <listitem>
	<para><literal>raidz3</literal> - Triple Redundant RAID.
	  Allows three disks to fail concurrently.  This option needs
	  at least five disks.</para>
      </listitem>
    </itemizedlist>

      <para>Once a <literal>Pool Type</literal> has been selected, a
	list of available disks is displayed, and the user is prompted
	to select one or more disks to make up the pool.  The
	configuration is then validated, to ensure enough disks are
	selected.  If not, select <guibutton>&lt;Change
	Selection&gt;</guibutton> to return to the list of disks, or
	<guibutton>&lt;Back&gt;</guibutton> to change the
	<literal>Pool Type</literal>.</para>

      <figure xml:id="bsdinstall-zfs-disk_select">
	<title>Disk Selection</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-zfs-disk_select"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <figure xml:id="bsdinstall-zfs-vdev_invalid">
	<title>Invalid Selection</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-zfs-vdev_invalid"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If one or more disks are missing from the list, or if
	disks were attached after the installer was started, select
	<guibutton>- Rescan Devices</guibutton> to repopulate the list
	of available disks.</para>

      <figure xml:id="bsdinstall-zfs-rescan-devices">
	<title>Rescan Devices</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-rescan-devices"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>To avoid accidentally erasing the wrong disk, the
	<guibutton>- Disk Info</guibutton> menu can be used to inspect
	each disk, including its partition table and various other
	information such as the device model number and serial number,
	if available.</para>

      <figure xml:id="bsdinstall-zfs-disk_info">
	<title>Analyzing a Disk</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-disk_info"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Select <keycap>N</keycap> to configure the
	<literal>Pool Name</literal>.  Enter the desired name then
	select <guibutton>&lt;OK&gt;</guibutton> to establish it or
	<guibutton>&lt;Cancel&gt;</guibutton> to return to the
	main menu and leave the default name.</para>

      <figure xml:id="bsdinstall-zfs-pool-name">
	<title>Pool Name</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-pool-name"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Select <keycap>S</keycap> to set the amount of
	swap.  Enter the desired amount of swap and then select
	<guibutton>&lt;OK&gt;</guibutton> to establish it or
	<guibutton>&lt;Cancel&gt;</guibutton> to return to the
	main menu and let the default amount.</para>

      <figure xml:id="bsdinstall-zfs-swap-amount">
	<title>Swap Amount</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-swap-amount"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Once all options have been set to the desired values,
	select the <guibutton>&gt;&gt;&gt;&nbsp;Install</guibutton>
	option at the top of the menu.  The installer then offers a
	last chance to cancel before the contents of the selected
	drives are destroyed to create the <acronym>ZFS</acronym>
	pool.</para>

      <figure xml:id="bsdinstall-zfs-warning">
	<title>Last Chance</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-zfs-warning"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If <acronym>GELI</acronym> disk encryption was enabled,
	the installer will prompt twice for the passphrase to be used
	to encrypt the disks.  And after that the initializing of the
	encryption begins.</para>

      <figure xml:id="bsdinstall-zfs-geli_password">
	<title>Disk Encryption Password</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-zfs-geli_password"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <figure xml:id="bsdinstall-zfs-init-encription">
	<title>Initializing Encryption</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-zfs-init-encription"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>The installation then proceeds normally.  To continue
	with the installation go to
	<xref linkend="bsdinstall-fetching-distribution"/>.</para>

    </sect2>

    <sect2 xml:id="bsdinstall-part-shell">
      <title>Shell Mode Partitioning</title>

      <para>When creating advanced installations, the
	<application>bsdinstall</application> partitioning menus may
	not provide the level of flexibility required.  Advanced users
	can select the <guibutton>Shell</guibutton> option from the
	partitioning menu in order to manually partition the drives,
	create the file system(s), populate
	<filename>/tmp/bsdinstall_etc/fstab</filename>, and mount the
	file systems under <filename>/mnt</filename>.  Once this is
	done, type <command>exit</command> to return to
	<application>bsdinstall</application> and continue the
	installation.</para>
    </sect2>
  </sect1>

  <sect1 xml:id="bsdinstall-fetching-distribution">
    <title>Fetching Distribution Files</title>

    <para>Installation time will vary depending on the distributions
      chosen, installation media, and speed of the computer.  A series
      of messages will indicate the progress.</para>

    <para>First, the installer formats the selected disk(s) and
      initializes the partitions.  Next, in the case of a
      <literal>bootonly media</literal> or
      <literal>mini memstick</literal>, it downloads the selected
      components:</para>

    <figure xml:id="bsdinstall-distfile-fetching">
      <title>Fetching Distribution Files</title>

      <mediaobject>
	<imageobject>
	  <imagedata
	    fileref="bsdinstall/bsdinstall-distfile-fetching"/>
	</imageobject>
      </mediaobject>
    </figure>

    <para>Next, the integrity of the distribution files is verified
      to ensure they have not been corrupted during download or
      misread from the installation media:</para>

    <figure xml:id="bsdinstall-distfile-verify">
      <title>Verifying Distribution Files</title>

      <mediaobject>
	<imageobject>
	  <imagedata
	    fileref="bsdinstall/bsdinstall-distfile-verifying"/>
	</imageobject>
      </mediaobject>
    </figure>

    <para>Finally, the verified distribution files are extracted to
      the disk:</para>

    <figure xml:id="bsdinstall-distfile-extract">
      <title>Extracting Distribution Files</title>

      <mediaobject>
	<imageobject>
	  <imagedata
	    fileref="bsdinstall/bsdinstall-distfile-extracting"/>
	</imageobject>
      </mediaobject>
    </figure>

    <para>Once all requested distribution files have been extracted,
      <application>bsdinstall</application> displays the first
      post-installation configuration screen.  The available
      post-configuration options are described in the next
      section.</para>
  </sect1>

  <sect1 xml:id="bsdinstall-post">
    <title>Accounts, Time Zone, Services and Hardening</title>

    <sect2 xml:id="bsdinstall-post-root">
      <title>Setting the
	<systemitem class="username">root</systemitem>
	Password</title>

      <para>First, the <systemitem class="username">root</systemitem>
	password must be set.  While entering the password, the
	characters being typed are not displayed on the screen.  After
	the password has been entered, it must be entered again.  This
	helps prevent typing errors.</para>

      <figure xml:id="bsdinstall-post-set-root-passwd">
	<title>Setting the <systemitem
	    class="username">root</systemitem> Password</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-post-root-passwd"/>
	  </imageobject>
	</mediaobject>
      </figure>
    </sect2>

    <sect2 xml:id="bsdinstall-timezone">
      <title>Setting the Time Zone</title>

      <para>The next series of menus are used to determine the correct
	local time by selecting the geographic region, country, and
	time zone.  Setting the time zone allows the system to
	automatically correct for regional time changes, such as
	daylight savings time, and perform other time zone related
	functions properly.</para>

      <para>The example shown here is for a machine located in the
	mainland time zone of Spain, Europe.  The selections will
	vary according to the geographical location.</para>

      <figure xml:id="bsdinstall-timezone-region">
	<title>Select a Region</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-timezone-region"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>The appropriate region is selected using the arrow keys
	and then pressing <keycap>Enter</keycap>.</para>

      <figure xml:id="bsdinstall-timezone-country">
	<title>Select a Country</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-timezone-country"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Select the appropriate country using the arrow keys and
	press <keycap>Enter</keycap>.</para>

      <figure xml:id="bsdinstall-timezone-zone">
	<title>Select a Time Zone</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-timezone-zone"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>The appropriate time zone is selected using the arrow keys
	and pressing <keycap>Enter</keycap>.</para>

      <figure xml:id="bsdinstall-timezone-confirmation">
	<title>Confirm Time Zone</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-timezone-confirm"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Confirm the abbreviation for the time zone is
	correct.</para>

      <figure xml:id="bsdinstall-timezone-date">
	<title>Select Date</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-timezone-date"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>The appropriate date is selected using the arrow keys
	and then pressing
	<guibutton>[&nbsp;Set&nbsp;Date&nbsp;]</guibutton>.
	Otherwise, the date selection can be skipped by pressing
	<guibutton>[&nbsp;Skip&nbsp;]</guibutton>.</para>

      <figure xml:id="bsdinstall-timezone-time">
	<title>Select Time</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-timezone-time"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>The appropriate time is selected using the arrow keys
	and then pressing
	<guibutton>[&nbsp;Set&nbsp;Time&nbsp;]</guibutton>.
	Otherwise, the time selection can be skipped by pressing
	<guibutton>[&nbsp;Skip&nbsp;]</guibutton>.</para>
    </sect2>

    <sect2 xml:id="bsdinstall-sysconf">
      <title>Enabling Services</title>

      <para>The next menu is used to configure which system services
	will be started whenever the system boots.  All of these
	services are optional.  Only start the services that are
	needed for the system to function.</para>

      <figure xml:id="bsdinstall-config-serv">
	<title>Selecting Additional Services to Enable</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-config-services"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Here is a summary of the services which can be enabled in
	this menu:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>local_unbound</literal> - Enable the DNS
	    local unbound.  It is necessary to keep in mind that this
	    is the unbound of the base system and is only meant for
	    use as a local caching forwarding resolver.  If the
	    objective is to set up a resolver for the entire network
	    install <package>dns/unbound</package>.</para>
	</listitem>

	<listitem>
	  <para><literal>sshd</literal> - The Secure Shell
	    (<acronym>SSH</acronym>) daemon is used to remotely access
	    a system over an encrypted connection.  Only enable this
	    service if the system should be available for remote
	    logins.</para>
	</listitem>

	<listitem>
	  <para><literal>moused</literal> - Enable this service if the
	    mouse will be used from the command-line system
	    console.</para>
	</listitem>

	<listitem>
	  <para><literal>ntpdate</literal> - Enable the automatic
	    clock synchronization at boot time.  The functionality of
	    this program is now available in the &man.ntpd.8; daemon.
	    After a suitable period of mourning, the &man.ntpdate.8;
	    utility will be retired.</para>
	</listitem>

	<listitem>
	  <para><literal>ntpd</literal> - The Network Time Protocol
	    (<acronym>NTP</acronym>) daemon for automatic clock
	    synchronization.  Enable this service if there is a
	    &windows;, Kerberos, or <acronym>LDAP</acronym> server on
	    the network.</para>
	</listitem>

	<listitem>
	  <para><literal>powerd</literal> - System power control
	    utility for power control and energy saving.</para>
	</listitem>

	<listitem>
	  <para><literal>dumpdev</literal> - Enabling crash dumps is
	    useful in debugging issues with the system, so users are
	    encouraged to enable crash dumps.</para>
	</listitem>
	</itemizedlist>
    </sect2>

    <sect2 xml:id="bsdinstall-hardening">
      <title>Enabling Hardening Security Options</title>

      <para>The next menu is used to configure which security
	options will be enabled.  All of these options are optional.
	But their use is encouraged.</para>

      <figure xml:id="bsdinstall-hardening-options">
	<title>Selecting Hardening Security Options</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-hardening"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Here is a summary of the options which can be enabled in
	this menu:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>hide_uids</literal> - Hide processes running
	    as other users to prevent the unprivileged users to see
	    other running processes in execution by other users (UID)
	    preventing information leakage.</para>
	</listitem>

	<listitem>
	  <para><literal>hide_gids</literal> - Hide processes running
	    as other groups to prevent the unprivileged users to see
	    other running processes in execution by other groups (GID)
	    preventing information leakage.</para>
	</listitem>

	<listitem>
	  <para><literal>hide_jail</literal> - Hide processes running
	    in jails to prevent the unprivileged users to see
	    processes running inside the jails.</para>
	</listitem>

	<listitem>
	  <para><literal>read_msgbuf</literal> - Disabling reading
	    kernel message buffer for unprivileged users prevent from
	    using &man.dmesg.8; to view messages from the kernel's log
	    buffer.</para>
	</listitem>

	<listitem>
	  <para><literal>proc_debug</literal> - Disabling process
	    debugging facilities for unprivileged users disables
	    a variety of unprivileged inter-process debugging
	    services, including some procfs functionality, ptrace(),
	    and ktrace().  Please note that this will also prevent
	    debugging tools, for instance &man.lldb.1;, &man.truss.1;,
	    &man.procstat.1;, as well as some built-in debugging
	    facilities in certain scripting language like PHP, etc.,
	    from working for unprivileged users.</para>
	</listitem>

	<listitem>
	  <para><literal>random_pid</literal> - Randomize the PID of
	    newly created processes.</para>
	</listitem>

	<listitem>
	  <para><literal>clear_tmp</literal> - Clean
	    <filename>/tmp</filename> when the system starts
	    up.</para>
	</listitem>

	<listitem>
	  <para><literal>disable_syslogd</literal> - Disable opening
	    <application>syslogd</application> network socket.  By
	    default &os; runs <application>syslogd</application> in a
	    secure way with <command>-s</command>.  That prevents the
	    daemon from listening for incoming UDP requests
	    at port 514.  With this option enabled
	    <application>syslogd</application> will run with the flag
	    <command>-ss</command> which prevents
	    <application>syslogd</application> from opening any port.
	    To get more information consult &man.syslogd.8;.</para>
	</listitem>

	<listitem>
	  <para><literal>disable_sendmail</literal> - Disable the
	    sendmail mail transport agent.</para>
	</listitem>

	<listitem>
	  <para><literal>secure_console</literal> - When this option
	    is enabled, the prompt requests the <systemitem class="username">root</systemitem> password when
	    entering single.</para>
	</listitem>

	<listitem>
	  <para><literal>disable_ddtrace</literal> - &dtrace; can run
	    in a mode that will actually affect the running kernel.
	    Destructive actions may not be used unless they have
	    been explicitly enabled.  To enable this option when using
	    &dtrace; use <command>-w</command>.  To get more
	    information consult &man.dtrace.1;.</para>
	</listitem>
      </itemizedlist>
    </sect2>

    <sect2 xml:id="bsdinstall-addusers">
      <title>Add Users</title>

      <para>The next menu prompts to create at least one user account.
	It is recommended to login to the system using a user account
	rather than as <systemitem class="username">root</systemitem>.
	When logged in as <systemitem
	  class="username">root</systemitem>, there are essentially no
	limits or protection on what can be done.  Logging in as a
	normal user is safer and more secure.</para>

      <para>Select <guibutton>[&nbsp;Yes&nbsp;]</guibutton> to add new
	users.</para>

      <figure xml:id="bsdinstall-add-user1">
	<title>Add User Accounts</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-adduser1"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Follow the prompts and input the requested information for
	the user account.  The example shown in <xref
	  linkend="bsdinstall-add-user2"/> creates the <systemitem
	  class="username">asample</systemitem> user account.</para>

      <figure xml:id="bsdinstall-add-user2">
	<title>Enter User Information</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-adduser2"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Here is a summary of the information to input:</para>

      <itemizedlist>
	<listitem>
	  <para><literal>Username</literal> - The name the user will
	    enter to log in.  A common convention is to use the first
	    letter of the first name combined with the last name, as
	    long as each username is unique for the system.  The
	    username is case sensitive and should not contain any
	    spaces.</para>
	</listitem>

	<listitem>
	  <para><literal>Full name</literal> - The user's full name.
	    This can contain spaces and is used as a description for
	    the user account.</para>
	</listitem>

	<listitem>
	  <para><literal>Uid</literal> - User <acronym>ID</acronym>.
	    Typically, this is left blank so the system will assign a
	    value.</para>
	</listitem>

	<listitem>
	  <para><literal>Login group</literal> - The user's group.
	    Typically this is left blank to accept the default.</para>
	</listitem>

	<listitem>
	  <para><literal>Invite <replaceable>user</replaceable> into
	      other groups?</literal> - Additional groups to which the
	    user will be added as a member.  If the user needs
	    administrative access, type <literal>wheel</literal>
	    here.</para>
	</listitem>

	<listitem>
	  <para><literal>Login class</literal> - Typically left blank
	    for the default.</para>
	</listitem>

	<listitem>
	  <para><literal>Shell</literal> - Type in one of the listed
	    values to set the interactive shell for the user.  Refer
	    to <xref linkend="shells"/> for more information about
	    shells.</para>
	</listitem>

	<listitem>
	  <para><literal>Home directory</literal> - The user's home
	    directory.  The default is usually correct.</para>
	</listitem>

	<listitem>
	  <para><literal>Home directory permissions</literal> -
	    Permissions on the user's home directory.  The default is
	    usually correct.</para>
	</listitem>

	<listitem>
	  <para><literal>Use password-based authentication?</literal>
	    - Typically <literal>yes</literal> so that the user is
	    prompted to input their password at login.</para>
	</listitem>

	<listitem>
	  <para><literal>Use an empty password?</literal> -
	    Typically <literal>no</literal> as it is insecure to have
	    a blank password.</para>
	</listitem>

	<listitem>
	  <para><literal>Use a random password?</literal> - Typically
	    <literal>no</literal> so that the user can set their own
	    password in the next prompt.</para>
	</listitem>

	<listitem>
	  <para><literal>Enter password</literal> - The password for
	    this user.  Characters typed will not show on the
	    screen.</para>
	</listitem>

	<listitem>
	  <para><literal>Enter password again</literal> - The password
	    must be typed again for verification.</para>
	</listitem>

	<listitem>
	  <para><literal>Lock out the account after
	      creation?</literal> - Typically <literal>no</literal> so
	    that the user can login.</para>
	</listitem>
      </itemizedlist>

      <para>After entering everything, a summary is shown for review.
	If a mistake was made, enter <literal>no</literal> and try
	again.  If everything is correct, enter <literal>yes</literal>
	to create the new user.</para>

      <figure xml:id="bsdinstall-add-user3">
	<title>Exit User and Group Management</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-adduser3"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If there are more users to add, answer the <literal>Add
	  another user?</literal> question with
	<literal>yes</literal>.  Enter <literal>no</literal> to finish
	adding users and continue the installation.</para>

      <para>For more information on adding users and user management,
	see <xref linkend="users-synopsis"/>.</para>
    </sect2>

    <sect2 xml:id="bsdinstall-final-conf">
      <title>Final Configuration</title>

      <para>After everything has been installed and configured, a
	final chance is provided to modify settings.</para>

      <figure xml:id="bsdinstall-final-config">
	<title>Final Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-finalconfiguration"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Use this menu to make any changes or do any additional
	configuration before completing the installation.</para>

      <itemizedlist>
	<listitem>
	  <para><literal>Add User</literal> - Described in <xref
	      linkend="bsdinstall-addusers"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>Root Password</literal> - Described in <xref
	      linkend="bsdinstall-post-root"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>Hostname</literal> - Described in <xref
	      linkend="bsdinstall-hostname"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>Network</literal> - Described in <xref
	      linkend="bsdinstall-config-network-dev"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>Services</literal> - Described in <xref
	      linkend="bsdinstall-sysconf"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>System Hardening</literal> - Described in
	      <xref linkend="bsdinstall-hardening"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>Time Zone</literal> - Described in <xref
	      linkend="bsdinstall-timezone"/>.</para>
	</listitem>

	<listitem>
	  <para><literal>Handbook</literal> - Download and install the
	    &os; Handbook.</para>
	</listitem>
      </itemizedlist>

      <para>After any final configuration is complete, select
	<guibutton>Exit</guibutton>.</para>

      <figure xml:id="bsdinstall-final-modification-shell">
	<title>Manual Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-final-modification-shell"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para><application>bsdinstall</application> will prompt if there
	are any additional configuration that needs to be done before
	rebooting into the new system.  Select
	<guibutton>[&nbsp;Yes&nbsp;]</guibutton> to exit to a shell
	within the new system or
	<guibutton>[&nbsp;No&nbsp;]</guibutton> to proceed to the last
	step of the installation.</para>

      <figure xml:id="bsdinstall-final-main">
	<title>Complete the Installation</title>

	<mediaobject>
	  <imageobject>
	    <imagedata fileref="bsdinstall/bsdinstall-mainexit"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If further configuration or special setup is needed,
	select <guibutton>[&nbsp;Live&nbsp;CD&nbsp;]</guibutton> to
	boot the install media into Live <acronym>CD</acronym>
	mode.</para>

      <para>If the installation is complete, select
	<guibutton>[&nbsp;Reboot&nbsp;]</guibutton> to reboot the
	computer and start the new &os; system.  Do not forget to
	remove the &os; install media or the computer may boot from it
	again.</para>

      <para>As &os; boots, informational messages are displayed.
	After the system finishes booting, a login prompt is
	displayed.  At the <prompt>login:</prompt> prompt, enter the
	username added during the installation.  Avoid logging in as
	<systemitem class="username">root</systemitem>.  Refer to
	<xref linkend="users-superuser"/> for instructions on how to
	become the superuser when administrative access is
	needed.</para>

      <para>The messages that appeared during boot can be reviewed by
	pressing <keycap>Scroll-Lock</keycap> to turn on the
	scroll-back buffer.  The <keycap>PgUp</keycap>,
	<keycap>PgDn</keycap>, and arrow keys can be used to scroll
	back through the messages.  When finished, press
	<keycap>Scroll-Lock</keycap> again to unlock the display and
	return to the console.  To review these messages once the
	system has been up for some time, type <command>less
	  /var/run/dmesg.boot</command> from a command prompt.  Press
	<keycap>q</keycap> to return to the command line after
	viewing.</para>

      <para>If <application>sshd</application> was enabled in <xref
	  linkend="bsdinstall-config-serv"/>, the first boot may be
	a bit slower as the system will generate the
	<acronym>RSA</acronym> and <acronym>DSA</acronym> keys.
	Subsequent boots will be faster.  The fingerprints of the keys
	will be displayed, as seen in this example:</para>

      <screen>Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
10:a0:f5:af:93:ae:a3:1a:b2:bb:3c:35:d9:5a:b3:f3 root@machine3.example.com
The key's randomart image is:
+--[RSA1 1024]----+
|    o..          |
|   o . .         |
|  .   o          |
|       o         |
|    o   S        |
|   + + o         |
|o . + *          |
|o+ ..+ .         |
|==o..o+E         |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
7e:1c:ce:dc:8a:3a:18:13:5b:34:b5:cf:d9:d1:47:b2 root@machine3.example.com
The key's randomart image is:
+--[ DSA 1024]----+
|       ..     . .|
|      o  .   . + |
|     . ..   . E .|
|    . .  o o . . |
|     +  S = .    |
|    +  . = o     |
|     +  . * .    |
|    . .  o .     |
|      .o. .      |
+-----------------+
Starting sshd.</screen>

      <para>Refer to <xref linkend="openssh"/> for more information
	about fingerprints and <acronym>SSH</acronym>.</para>

      <para>&os; does not install a graphical environment by default.
	Refer to <xref linkend="x11"/> for more information about
	installing and configuring a graphical window manager.</para>

      <para>Proper shutdown of a &os; computer helps protect data and
	hardware from damage.  <emphasis>Do not turn off the power
	before the system has been properly shut down!</emphasis>  If
	the user is a member of the <systemitem
	  class="groupname">wheel</systemitem> group, become the
	superuser by typing <command>su</command> at the command line
	and entering the <systemitem
	  class="username">root</systemitem> password.  Then, type
	<command>shutdown -p now</command> and the system will shut
	down cleanly, and if the hardware supports it, turn itself
	off.</para>
    </sect2>
  </sect1>

  <sect1 xml:id="bsdinstall-network">
    <title>Network Interfaces</title>

    <sect2 xml:id="bsdinstall-config-network-dev">
      <title>Configuring Network Interfaces</title>

      <para>Next, a list of the network interfaces found on the
	computer is shown.  Select the interface to configure.</para>

      <figure xml:id="bsdinstall-configure-net-interface">
	<title>Choose a Network Interface</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If an Ethernet interface is selected, the installer will
	skip ahead to the menu shown in <xref
	  linkend="bsdinstall-configure-net-ipv4"/>.  If a wireless
	network interface is chosen, the system will instead scan for
	wireless access points:</para>

      <figure xml:id="bsdinstall-wireless-scan">
	<title>Scanning for Wireless Access Points</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-wireless-scan"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Wireless networks are identified by a Service Set
	Identifier (<acronym>SSID</acronym>), a short, unique name
	given to each network.  <acronym>SSIDs</acronym> found during
	the scan are listed, followed by a description of the
	encryption types available for that network.  If the desired
	<acronym>SSID</acronym> does not appear in the list, select
	<guibutton>[&nbsp;Rescan&nbsp;]</guibutton> to scan again.  If
	the desired network still does not appear, check for problems
	with antenna connections or try moving the computer closer to
	the access point.  Rescan after each change is made.</para>

      <figure xml:id="bsdinstall-wireless-accesspoints">
	<title>Choosing a Wireless Network</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-wireless-accesspoints"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Next, enter the encryption information for connecting to
	the selected wireless network.  <acronym>WPA2</acronym>
	encryption is strongly recommended as older encryption types,
	like <acronym>WEP</acronym>, offer little security.  If the
	network uses <acronym>WPA2</acronym>, input the password, also
	known as the Pre-Shared Key (<acronym>PSK</acronym>).  For
	security reasons, the characters typed into the input box are
	displayed as asterisks.</para>

      <figure xml:id="bsdinstall-wireless-wpa2">
	<title>WPA2 Setup</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-wireless-wpa2setup"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Next, choose whether or not an <acronym>IPv4</acronym>
	address should be configured on the Ethernet or wireless
	interface:</para>

      <figure xml:id="bsdinstall-configure-net-ipv4">
	<title>Choose <acronym>IPv4</acronym> Networking</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface-ipv4"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>There are two methods of <acronym>IPv4</acronym>
	configuration.  <acronym>DHCP</acronym> will automatically
	configure the network interface correctly and should be used
	if the network provides a <acronym>DHCP</acronym> server.
	Otherwise, the addressing information needs to be input
	manually as a static configuration.</para>

      <note>
	<para>Do not enter random network information as it will not
	  work.  If a <acronym>DHCP</acronym> server is not available,
	  obtain the information listed in <xref
	    linkend="bsdinstall-collect-network-information"/> from
	  the network administrator or Internet service
	  provider.</para>
      </note>

      <para>If a <acronym>DHCP</acronym> server is available, select
	<guibutton>[&nbsp;Yes&nbsp;]</guibutton> in the next menu to
	automatically configure the network interface.  The installer
	will appear to pause for a minute or so as it finds the
	<acronym>DHCP</acronym> server and obtains the addressing
	information for the system.</para>

      <figure xml:id="bsdinstall-net-ipv4-dhcp">
	<title>Choose <acronym>IPv4</acronym> <acronym>DHCP</acronym>
	  Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface-ipv4-dhcp"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If a <acronym>DHCP</acronym> server is not available,
	select <guibutton>[&nbsp;No&nbsp;]</guibutton> and input the
	following addressing information in this menu:</para>

      <figure xml:id="bsdinstall-net-ipv4-static">
	<title><acronym>IPv4</acronym> Static Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface-ipv4-static"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <itemizedlist>
	<listitem>
	  <para><literal>IP Address</literal> - The
	    <acronym>IPv4</acronym> address assigned to this computer.
	    The address must be unique and not already in use by
	    another piece of equipment on the local network.</para>
	</listitem>

	<listitem>
	  <para><literal>Subnet Mask</literal> - The subnet mask for
	    the network.</para>
	</listitem>

	<listitem>
	  <para><literal>Default Router</literal> - The
	    <acronym>IP</acronym> address of the network's default
	    gateway.</para>
	</listitem>
      </itemizedlist>

      <para>The next screen will ask if the interface should be
	configured for <acronym>IPv6</acronym>.  If
	<acronym>IPv6</acronym> is available and desired, choose
	<guibutton>[&nbsp;Yes&nbsp;]</guibutton> to select it.</para>

      <figure xml:id="bsdinstall-net-ipv6">
	<title>Choose IPv6 Networking</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface-ipv6"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para><acronym>IPv6</acronym> also has two methods of
	configuration.    StateLess Address AutoConfiguration
	(<acronym>SLAAC</acronym>) will automatically request the
	correct configuration information from a local router.  Refer
	to <link
	  xlink:href="http://tools.ietf.org/html/rfc4862">rfc4862</link>
	for more information.  Static configuration requires manual
	entry of network information.</para>

      <para>If an <acronym>IPv6</acronym> router is available, select
	<guibutton>[&nbsp;Yes&nbsp;]</guibutton> in the next menu to
	automatically configure the network interface.  The installer
	will appear to pause for a minute or so as it finds the router
	and obtains the addressing information for the system.</para>

      <figure xml:id="bsdinstall-net-ipv6-slaac">
	<title>Choose IPv6 SLAAC Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface-slaac"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>If an <acronym>IPv6</acronym> router is not available,
	select <guibutton>[&nbsp;No&nbsp;]</guibutton> and input the
	following addressing information in this menu:</para>

      <figure xml:id="bsdinstall-net-ipv6-static">
	<title>IPv6 Static Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-interface-ipv6-static"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <itemizedlist>
	<listitem>
	  <para><literal>IPv6 Address</literal> - The
	    <acronym>IPv6</acronym> address assigned to this computer.
	    The address must be unique and not already in use by
	    another piece of equipment on the local network.</para>
	</listitem>

	<listitem>
	  <para><literal>Default Router</literal> - The
	    <acronym>IPv6</acronym> address of the network's default
	    gateway.</para>
	</listitem>
      </itemizedlist>

      <para>The last network configuration menu is used to configure
	the Domain Name System (<acronym>DNS</acronym>) resolver,
	which converts hostnames to and from network addresses.  If
	<acronym>DHCP</acronym> or <acronym>SLAAC</acronym> was used
	to autoconfigure the network interface, the <literal>Resolver
	  Configuration</literal> values may already be filled in.
	Otherwise, enter the local network's domain name in the
	<literal>Search</literal> field.  <literal>DNS #1</literal>
	and <literal>DNS #2</literal> are the <acronym>IPv4</acronym>
	and/or <acronym>IPv6</acronym> addresses of the
	<acronym>DNS</acronym> servers.  At least one
	<acronym>DNS</acronym> server is required.</para>

      <figure xml:id="bsdinstall-net-dns-config">
	<title>DNS Configuration</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-configure-network-ipv4-dns"/>
	  </imageobject>
	</mediaobject>
      </figure>

      <para>Once the interface is configured, select a mirror site
	that is located in the same region of the world as the
	computer on which &os; is being installed.  Files can be
	retrieved more quickly when the mirror is close to the
	target computer, reducing installation time.</para>

      <figure xml:id="bsdinstall-netinstall-mirror">
	<title>Choosing a Mirror</title>

	<mediaobject>
	  <imageobject>
	    <imagedata
	      fileref="bsdinstall/bsdinstall-netinstall-mirrorselect"/>
	  </imageobject>
	</mediaobject>
      </figure>
    </sect2>
  </sect1>

  <sect1 xml:id="bsdinstall-install-trouble">
    <title>Troubleshooting</title>

    <indexterm>
      <primary>installation</primary>
      <secondary>troubleshooting</secondary>
    </indexterm>
    <para>This section covers basic installation
      troubleshooting, such as common problems people have
      reported.</para>

    <para>Check the Hardware Notes (<link
	xlink:href="&url.base;/releases/index.html">https://www.freebsd.org/releases/index.html</link>)
      document for the version of &os; to make sure the hardware is
      supported.  If the hardware is supported and lock-ups or other
      problems occur, build a custom kernel using the instructions in
      <xref linkend="kernelconfig"/> to add support for devices which
      are not present in the <filename>GENERIC</filename> kernel.  The
      default kernel assumes that most hardware devices are in their
      factory default configuration in terms of
      <acronym>IRQ</acronym>s, <acronym>I/O</acronym> addresses, and
      <acronym>DMA</acronym> channels.  If the hardware has been
      reconfigured, a custom kernel configuration file can tell &os;
      where to find things.</para>

    <note>
      <para>Some installation problems can be avoided or alleviated by
	updating the firmware on various hardware components, most
	notably the motherboard.  Motherboard firmware is usually
	referred to as the <acronym>BIOS</acronym>.  Most motherboard
	and computer manufacturers have a website for upgrades and
	upgrade information.</para>

      <para>Manufacturers generally advise against upgrading the
	motherboard <acronym>BIOS</acronym> unless there is a good
	reason for doing so, like a critical update.  The upgrade
	process <emphasis>can</emphasis> go wrong, leaving the
	<acronym>BIOS</acronym> incomplete and the computer
	inoperative.</para>
    </note>

    <para>If the system hangs while probing hardware during boot, or
      it behaves strangely during install, <acronym>ACPI</acronym> may
      be the culprit.  &os; makes extensive use of the system
      <acronym>ACPI</acronym> service on the &arch.i386; and
      &arch.amd64; platforms to aid in system configuration
      if it is detected during boot.  Unfortunately, some bugs still
      exist in both the <acronym>ACPI</acronym> driver and within
      system motherboards and <acronym>BIOS</acronym> firmware.
      <acronym>ACPI</acronym> can be disabled by setting the
      <literal>hint.acpi.0.disabled</literal> hint in the third stage
      boot loader:</para>

    <screen><userinput>set hint.acpi.0.disabled="1"</userinput></screen>

    <para>This is reset each time the system is booted, so it is
      necessary to add <literal>hint.acpi.0.disabled="1"</literal> to
      the file <filename>/boot/loader.conf</filename>.  More
      information about the boot loader can be found in <xref
	linkend="boot-synopsis"/>.</para>
  </sect1>

  <sect1 xml:id="using-live-cd">
    <title>Using the Live <acronym>CD</acronym></title>

    <para>The welcome menu of <application>bsdinstall</application>,
      shown in <xref linkend="bsdinstall-choose-mode"/>, provides a
      <guibutton>[&nbsp;Live&nbsp;CD&nbsp;]</guibutton> option.  This
      is useful for those who are still wondering whether &os; is the
      right operating system for them and want to test some of the
      features before installing.</para>

    <para>The following points should be noted before using the
      <guibutton>[&nbsp;Live&nbsp;CD&nbsp;]</guibutton>:</para>

    <itemizedlist>
      <listitem>
	<para>To gain access to the system, authentication is
	  required.  The username is <systemitem
	    class="username">root</systemitem> and the password is
	  blank.</para>
      </listitem>

      <listitem>
	<para>As the system runs directly from the installation media,
	  performance will be significantly slower than that of a
	  system installed on a hard disk.</para>
      </listitem>

      <listitem>
	<para>This option only provides a command prompt and not a
	  graphical interface.</para>
      </listitem>
    </itemizedlist>
  </sect1>
</chapter>