1 .\" $NetBSD: sysinst,v 1.99 2009/08/23 22:17:18 snj Exp $
3 .\" Copyright (c) 1999-2004 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 .\" POSSIBILITY OF SUCH DAMAGE.
30 .\" Define strings for partition references:
31 .\" \*[part_raw] `raw' partition (usually `c' or `d')
32 .\" \*[part_free] first "free" partition (usually part_raw+1)
33 .\" \*[part_usr] default "/usr" partition (usually part_free)
34 .\" \*[part_max] last partition (usually `h' or `p')
40 .if \n[arc]:\n[bebox]:\n[cobalt]:\n[hpcarm]:\n[hpcmips]:\n[i386]:\
41 \n[sbmips]:\n[sh3eb]:\n[sh3el]:\n[x86_64] \{\
50 .if \n[amiga]:\n[amigappc]:\n[arc]:\n[atari]:\n[cobalt]:\n[evbmips]:\
51 \n[evbppc]:\n[hp700]:\n[hpcmips]:\n[i386]:\n[macppc]:\n[ofppc]:\
52 \n[sandpoint]:\n[sbmips]:\n[sgimips]:\n[x86_64] \{\
55 .if \n[acorn26]:\n[acorn32]:\n[cats]:\n[evbarm]:\n[evbppc]:\n[ews4800mips]:\
56 \n[sandpoint]:\n[shark] \{\
59 .if \n[macppc]:\n[news68k]:\n[newsmips]:\n[sparc]:\n[sparc64] \{\
69 .Ss2 Running the sysinst installation program
78 is a relatively easy process.
79 Still, you should read this document and have it in hand when doing the
81 This document tries to be a good guide to the installation, and as such,
82 covers many details for the sake of completeness.
83 Do not let this discourage you; the install program is not hard
86 .if !\n[acorn26]:\n[acorn32]:\n[atari]:\n[ews4800mips]:\n[hp700]:\n[mac68k]:\n[macppc]:\n[mvme68k]:\n[news68k]:\n[newsmips]:\n[pmax]:\n[sgimips]:\n[sparc]:\n[sparc64]:\n[x68k] \{\
88 .To 2 "Possible hardware problems"
89 .Em Possible hardware problems
91 Should you encounter hardware problems during installation, try
92 rebooting after unplugging removable devices you don't need for
94 Non-removable devices can be disabled with
100 .\} \" !\n[acorn26]:\n[acorn32]:\n[atari]:\n[ews4800mips]:\n[hp700]:\n[mac68k]\:[macppc]:\n[mvme68k]:\n[news68k]:\n[newsmips]:\n[pmax]:\n[sgimips]:\n[sparc]:\n[sparc64]:\n[x68k]
103 .To 2 "Possible hardware-specific issues"
104 .Em Possible hardware-specific issues
106 .Em SCSI driver problems
108 The SCSI driver used in the kernel on many older Macintosh systems is, by
109 default, the ncrscsi driver.
110 It contains a recognized but as yet unfixed bug that affects some
111 disk drive/controller combinations, usually Quantum disks.
112 Under heavy load these systems may hang or corrupt
113 the file system; or, you may experience frequent
114 .Em Segmentation fault
116 .Em Illegal instruction
117 errors that may or may not be consistently repeatable.
118 This latter condition is particularly prevalent on systems with
119 minimal RAM installed.
121 If either of these problems occur on your system you are advised to use the
122 SBC variants of the Kernel and Installation Kernel.
123 However, be aware that this issue does not affect
124 e.g. Centris or Quadra systems.
127 .Em The 68LC040 processor
130 has known but unresolved problems running on the 68LC040 processor, the
131 variant of the 68040 that does not contain the floating point unit (FPU).
132 The kernel is thus forced to emulate the missing operations in software.
133 Unfortunately the 68LC040 processor has a design problem that causes
134 the emulation to fail intermittently.
135 We hope to provide a solution for this issue in a future
139 Software emulation of floating point operations is
140 not a problem on the 68020 and 68030 processors.
147 The following is a walk-through of the steps you will take while
150 installed on your hard disk.
153 installation system that allows for some freedom in doing the
155 Sometimes, questions will be asked and in many cases
156 the default answer will be displayed in brackets
159 If you wish to stop the installation, you may press
161 at any time, but if you do, you'll have to begin the installation
162 process again from scratch by running the
164 program from the command prompt.
165 It is not necessary to reboot.
167 .To 2 "Quick install"
170 First, let's describe a quick install.
171 The other sections of this document go into the installation procedure in more
172 detail, but you may find that you do not need this.
173 If you want detailed instructions, skip to the next section.
174 This section describes a basic installation, using a CD-ROM install as
180 The distribution sets (in this example, they are on CD).
181 .if !\n[alpha]:\n[amd64]:\n[i386]:\n[pmax]:\n[sgimips]:\n[sparc64] \{\
183 .ie \n[ews4800mips] Two floppy disks.
188 volume on a netboot server as described above.
191 .ie \n[mac68k] The Mac OS Booter application and an Installation Kernel
193 .ie \n[acorn26]:\n[arc]:\n[cats]:\n[evbppc]:\n[macppc]:\n[sparc] \{\
194 Some form of bootable media, described above.
198 A floppy disk containing a suitable boot.fs and a floppy with the
200 See the "prepare" section about obtaining those.
202 .el One 1.44 MB 3.5" floppy.
204 .\} \" !\n[alpha]:\n[i386]:\n[pmax]:\n[sgimips]:\n[sparc64]
207 A Macintosh with a 68020 and MMU, 68030 or 68RC040 processor.
208 An FPU is not required but will be used if present
209 (but see the note above regarding the 68LC040).
213 .ie \n[acorn26]:\n[atari]:\n[alpha]:\n[amd64]:\n[cats]:\n[evbppc]:\n[i386]:\n[macppc]:\n[sparc64] (SCSI or ATAPI),
216 a hard disk and a minimum of
220 .if \n[atari] 4 MB (TT030/Falcon) or 16 MB (Hades/Milan)
222 .if \n[ews4800mips] 16 MB
229 .if \n[newsmips] 16 MB
232 .if \n[sparc64] 32 MB
233 .if \n[sgimips] 16 MB
238 The hard disk should have at least
245 .if \n[ews4800mips] 200
262 is the number of megabytes of
263 main memory in your system.
264 If you wish to install the X Window System as well, you will need at least
267 .if \n[ews4800mips]:\n[news68k]:\n[newsmips] \{\
269 Creating the boot floppies.
270 You can create the floppies needed for installation
275 Supposing your 1.44 MB floppy
276 drive is drive A:, and your CD is drive E: do the
282 .Dl Ic "cd \eNetBSD-\*V\ei386\einstallation\emisc"
285 When asked for a source filename, answer
286 .if \n[ews4800mips]:\n[newsmips] \{\
287 .Dl Pa \&..\efloppy\eboot1.fs
288 for the first diskette and
289 .Dl Pa \&..\efloppy\eboot2.fs
290 for the second diskette.
292 .if \n[news68k] .Dl Pa \eNetBSD-\*V\e\*M\einstallation\efloppy\eboot.fs
294 When asked for a destination drive answer
297 To create a bootfloppy under
301 system, you would type something like:
303 .Dl # Ic "dd if=.../boot1.fs of=/dev/rfd0a bs=18k"
305 .\} \" \n[ews4800mips]:\n[news68k]:\n[newsmips]
308 The NetBSD Boot Tools folder.
310 Create a Folder on your Mac OS disk for the
314 Copy the Booter application into the newly created Folder.
315 Expand the file if necessary to create the Mac OS executable.
317 Copy the Installation Kernels into the newly created Folder.
318 It is not necessary to
320 compressed kernel files.
322 Single-click on the Booter application icon then select the "Get Info"
323 from the File Menu list.
324 Increase the memory allocation for the Booter to as much as possible
326 Having a large number of fonts, extensions or sounds installed on your system
327 can cause memory exhaustion problems for the Booter if you don't do this.
328 Also, the extra memory is needed by the Booter to expand compressed
329 kernels while booting.
333 The Quick Installation
335 .ie \n[acorn26]:\n[atari]:\n[cats]:\n[evbppc]:\n[hp700]:\n[macppc]:\n[pmax]:\n[sgimips]:\n[sparc]:\n[sparc64] \{\
336 Boot the system as described above.
343 Double-click on the Booter application icon to start executing it.
346 pull-down menu, select
349 .Ic Change Monitor Depth
350 and make sure B\*[Am]W is highlighted.
351 Close the window using the
357 pull-down menu select
362 .Ic Auto-set GMT Bias
363 checkbox in the lower left and then select the
365 option at the top of the window.
368 button on the right will become active.
370 select the Installation Kernel file appropriate for your hardware.
372 .Pa netbsd-INSTALL.gz
374 .Pa netbsd-INSTALLSBC.gz .
375 Close the window using the
381 pull-down menu select the
383 or use the Apple-B (Command-B) key combination to start the
386 Do not move the mouse while the boot operation is in
387 progress as this may leave the keyboard locked to
390 The main menu will be displayed.
392 .ie \n[alpha]:\n[amd64]:\n[i386] \{\
393 Insert the CD into the drive and boot the computer.
397 .Dl \&\*[Gt]\*[Gt]\*[Gt] Ic "B DQA0"
399 This is only an example, and
401 may not be the proper device, depending on your hardware configuration.
406 Insert the first boot floppy you just created and boot the computer.
407 .if \n[ews4800mips] \{\
408 Change boot device to floppy on the PROM menu which is invoked by
409 pressing ESC key right after hardware checks, and boot the computer again.
414 .Dl \&NEWS\*[Gt] Ic "bo fh"
420 .Dl \&\*[Gt] Ic "bo fd" (in case of NWS-5000)
424 .Dl \&\*[Gt] Ic "bo fh" (in case of NWS-3xxx)
427 After language selection, the main menu will be displayed.
432 .\" ) - appease vi showmatch
433 .***********************************************.
434 *\h'|0' * NetBSD-\*V Install System
436 *\*[Gt]a: Install NetBSD to hard disk *
437 * b: Upgrade NetBSD on a hard disk *
438 * c: Re-install sets or install additional sets *
439 * d: Reboot the computer *
441 * x: Exit Install System *
442 .***********************************************.
444 .\" ) - appease vi showmatch
447 If you wish, you can configure some network settings
448 immediately by choosing the
451 .Me Configure network .
452 It isn't actually required at this point, but
453 it may be more convenient.
454 Go back to the main menu.
457 .if !\n[macppc] .Me install .
459 .Me "Utility menu" No then Me "Run /bin/sh"
460 for Open Firmware 3 systems. You'll need to create the
464 Now exit the shell, return to the main menu, and choose
469 for Open Firmware 1.0.5, 1.1.22, 2.0.x, and 2.4 systems.
472 You will be guided through some steps regarding the
473 setup of your disk, and the selection of distributed components
475 When in doubt, refer to the rest of this document for details.
477 WARNING: If you want your disk to retain an AHDI compatible partitioning,
478 make sure to use the 'existing' disk layout.
482 WARNING: If you are installing onto a disk which you want to use with
484 stop here. You will need to perform a manual installation as
488 partition table. See the section on
489 .Sx "Manual Installation of NetBSD using Solaris"
492 After your disk has been prepared, choose
494 .Me Unmounted file system
496 The CD-ROM device is usually cd0 and the partition
503 The default values for the path and device should be ok.
506 After all the files have been unpacked, go back to
507 the main menu and select
508 .ie \n[alpha]:\n[amd64]:\n[i386]:\n[mac68k]:\n[macppc]:\n[pmax]:\n[sgimips]:\n[sparc]:\n[sparc64] \{\
513 after you have removed the bootfloppy from the drive.
516 .if \n[macppc]:\n[sparc64] \{\
517 Once the system reaches the Open Firmware prompt, you will need to type
518 the correct command to boot from your hard drive.
521 Once the system reaches the PROM prompt, you will need to type the correct
522 command to boot from your hard drive.
525 Once the system reaches the PROM prompt, you will need to modify your
526 PROM environment settings for SystemPartition, OSLoadPartition, OSLoader,
527 OSLoadFilename and OSLoadOptions and then boot the hard drive.
531 If you haven't already done so in
535 and set a password for that account.
536 You are also advised to edit
540 Your installation is now complete.
544 .To 2 "Booting NetBSD"
549 Prior to attempting to boot
551 verify that all the following are done:
553 Enable 32-bit addressing in the Memory Control Panel [1].
555 Disable all forms of virtual memory (the Memory Control Panel, RAM Doubler,
556 or other software-based memory enhancement products).
558 Place the system in B\*[Am]W Mode (1-bit color or grayscale) as shown in the
559 Monitors Control Panel or in the Monitors options dialog of the Booter.
560 You may choose to have the Booter do this for you automatically by selecting
561 the appropriate check box and radio button in the
568 It is probably best to boot your machine with all extensions turned off [1].
569 You can do this by booting into Mac OS with the
572 You may have to restart your Macintosh for changes to take effect before
576 If your version of the Memory control panel does not have a 32-bit
577 addressing mode radio button, this means that your system is already
578 32-bit clean and is running in 32-bit addressing mode by default.
579 If the Booter complains that your are not in 32-bit mode, it may be necessary
580 for you to press the "Use Defaults" button in the Memory control panel to
581 restore 32-bit addressing.
582 You should probably reboot after doing so.
583 If you have an older II-class system (including the II, IIx, IIcx,
584 and SE/30), it is necessary to install Connectix's MODE32 to work around
585 ROM issues which prevent you from enabling 32-bit addressing.
589 .Lk http://www.NetBSD.org/ports/mac68k/faq/
590 for more information.
595 Booter icon to start the application.
601 Select the Kernel Location to be from Mac OS with the filename
602 corresponding to the name of the Installation Kernel you are using.
603 Typically this will be netbsd-INSTALL.gz.
605 If you haven't already put your Macintosh into B\*[Am]W mode, select the
609 menu and check the box for B\*[Am]W mode.
619 If the system does not come up, send mail to
620 .Mt port-mac68k@NetBSD.org
621 describing your software, your hardware, and as complete a description of
622 the problem as you can.
623 As an alternative, try using the Traditional
624 method of installation described in the next section.
627 .ie \n[acorn26]:\n[cats]:\n[evbppc]:\n[macppc]:\n[pmax]:\n[sgimips]:\n[sparc]:\n[sparc64] \{\
629 You may want to read the
630 boot messages, to notice your disk's name and capacity.
631 Its name will be something like
633 .if \n[acorn26]:\n[cats]:\n[evbppc]:\n[macppc]:\n[sparc64] \{\
637 and the geometry will be
638 printed on a line that begins with its name.
639 As mentioned above, you may need your disk's geometry when creating
642 You will also need to know the name, to tell
645 The most important thing to know is that
646 .if \n[acorn26]:\n[cats]:\n[evbppc]:\n[macppc]:\n[sparc64] \{\
650 name for your first IDE disk,
655 is your first SCSI disk,
664 Boot the system as described in the "Booting the installer" section above.
668 The boot loader will start, and will print a countdown and begin booting.
669 .if !\n[alpha]:\n[amd64]:\n[i386] \{
671 If the boot loader messages do not appear in a reasonable
672 amount of time, you either have a bad boot floppy or a
674 Try writing the install floppy image to
675 a different disk, and using that.
677 It will take a while to load the kernel
682 probably around a minute or so, then, the kernel boot messages
684 This may take a little while also, as
686 will be probing your system to discover which hardware devices are
688 .\} \" !\n[alpha]:\n[i386]
689 .if \n[atari]:\n[i386] \{\
690 You may want to read the
691 boot messages, to notice your disk's name and geometry.
692 Its name will be something like
696 and the geometry will be
697 printed on a line that begins with its name.
698 As mentioned above, you may need your disk's geometry when creating
701 You will also need to know the name, to tell
706 The most important thing to know is that
710 name for your first IDE disk,
714 is your first SCSI disk,
718 .if !\n[alpha]:\n[amd64]:\n[atari]:\n[i386]:\n[mac68k] \{\
719 Note that once the system has finished booting, you need not
720 leave the floppy in the disk drive.
726 has booted and printed all the boot messages,
727 you will be presented with a welcome message and a main menu.
728 It will also include instructions for using the menus.
730 .To 2 "Network configuration"
731 .Em Network configuration
733 If you do not intend to use networking during the installation,
734 but you do want your machine to be configured for networking once
735 it is installed, you should first go to the
738 .Me Configure network
740 If you only want to temporarily
741 use networking during the installation, you can specify these
743 If you are not using the Domain Name System (DNS),
744 you can give an empty response when asked to provide a server.
747 .To 2 "Preparing a disk for Mac OS and NetBSD"
748 .Em "Preparing a disk for"
753 can manipulate the Apple Disk Partition Map allowing you to partition
754 your disk for use with
756 It does not support resizing existing
759 If there is insufficient Free space on the disk to support an installation of
761 you will need to backup, repartition and restore your existing
763 partitions before proceeding.
764 You may choose to use a Traditional method of creating disk partitions for
767 They can still be used by
775 .To 2 "Preparing a disk for Open Firmware 3 systems"
776 .Em "Preparing a disk which will be used for Open Firmware 3 systems"
778 Skip this step if you are installing
780 on an Open Firmware 1 or 2 system.
786 option which will give you a shell prompt.
787 From this shell prompt, you will do some of the steps that the normal
788 install procedure runs automatically.
789 Unfortunately, at the moment, our install tools
790 aren't smart enough to deal with drives with Apple Partition Maps
791 and will overwrite important information describing your partitions.
793 You may need to type one of the following commands to get your delete key
794 to work properly, depending on your keyboard:
795 .Dl # Ic "stty erase '^h'"
796 .Dl # Ic "stty erase '^?'"
798 Type the following command (replacing
800 with the name of your destination hard drive):
801 .Dl # Ic "disklabel wd0"
803 This will print out the partition info that was generated by
805 Drive Setup, or Disk Utility. Note that, as discussed above in the
806 .Sx Partitioning your hard drive for NetBSD
809 typically is the first partition
813 typically is the second partition
815 You may also find that your
817 partition is the seventh partition
821 .Dl # Ic "disklabel wd0"
823 # size offset fstype [fsize bsize cpg/sgs]
824 a: 426613 837432 4.2BSD 0 0 0 # (Cyl. 1622*- 2449*)
825 b: 204800 632632 swap # (Cyl. 1226*- 1622*)
826 c: 2134305 0 unused 0 0 # (Cyl. 0 - 4136*)
827 d: 426616 1216 HFS # (Cyl. 2*- 829*)
828 e: 204800 427832 HFS # (Cyl. 829*- 1226*)
829 f: 21 2134284 unknown # (Cyl. 4136*- 4136*)
830 g: 870239 1264045 4.2BSD 0 0 0 # (Cyl. 2449*- 4136*)
831 disklabel: boot block size 0
832 disklabel: super block size 0
835 Now, you need to create file systems on the partitions that
839 .Em "Do not modify any partitions labeled"
844 The partitions you will be using have their
855 .Dl # Ic "newfs /dev/wd0a"
856 newfs: /dev/wd0a: not a character-special device
857 Warning: 120 sector(s) in last cylinder unallocated
858 /dev/wd0a: 426612 sectors in 827 cylinders of 4 tracks, 129 sectors
859 208.3MB in 52 cyl groups (16 c/g, 4.03MB/g, 1024 i/g)
860 super-block backups (for fsck -b #) at:
861 32, 8432, 16832, 25232, 33056, 41456, 49856, 58256, 66080,
862 74480, 82880, 91280, 99104, 107504, 115904, 124304, 132128, 140528,
863 148928, 157328, 165152, 173552, 181952, 190352, 198176, 206576, 214976,
864 223376, 231200, 239600, 248000, 256400, 264224, 272624, 281024, 289424,
865 297248, 305648, 314048, 322448, 330272, 338672, 347072, 355472, 363296,
866 371696, 380096, 388496, 396320, 404720, 413120, 421520,
867 newfs: ioctl (WDINFO): Invalid argument
868 newfs: /dev/wd0a: can't rewrite disk label
871 .Pa Sq "not a character-special device" ,
872 .Pa Sq "sector(s) in last cylinder unallocated" ,
873 .Pa Sq "ioctl (WDINFO): Invalid argument" ,
875 .Pa Sq "can't rewrite disk label"
878 Now you need to mount your destination root partition:
879 .Dl # Ic "mount /dev/wd0a /mnt"
883 file for your new system (right now, you only really need to include
889 .Dl # Ic "mkdir /mnt/etc"
890 .Dl # Ic "cat \*[Gt] /mnt/etc/fstab"
891 .Dl "/dev/wd0a / ffs rw 1 1"
892 .Dl "/dev/wd0b none swap sw 0 0"
893 .Dl "/dev/wd0g /usr ffs rw 1 2"
895 If you mess up while typing, you can press
897 to erase everything on the current line, or
899 to cancel the file creation, so you can start over.
901 finishes and writes the file to disk.
903 Great, now create the mountpoints for the file systems you listed in the
905 .Dl # Ic "mkdir /mnt/usr"
907 Clean up and return to
910 .Dl # Ic "umount /mnt"
914 .To 2 "Installation drive selection and parameters"
915 .Em Installation drive selection and parameters
919 installation onto a dedicated
921 drive (Open Firmware 1 or 2),
923 .if !\n[macppc] installation,
925 .Me Install NetBSD to hard disk
928 To start the installation, select the menu option in install
933 To start the installation onto a drive with an Apple Partition Map (Open
935 .Me Re-install sets or install additional sets
939 The first thing is to identify the disk on which you want to
943 will report a list of disks it finds
944 and ask you for your selection.
945 You should see disk names like
952 .if \n[acorn26]:\n[alpha]:\n[cats]:\n[i386]:\n[mac68k]:\n[macppc]:\n[sparc64] \{\
962 next tries to figure out the real and BIOS geometry
964 It will present you with the values it found,
965 if any, and will give you a chance to change them.
966 Normally, the values it presents will be correct.
971 next tries to figure out how the selected volume has been partitioned.
972 It does this by reading the Apple Disk Partition Map from the disk.
973 If the disk does not have a Partition Map,
975 will give you the option of writing one, but doing so will not make
976 the disk a Mac OS bootable volume.
977 You will have the option of creating HFS partitions that may be
978 subsequently initialized and used under Mac OS though.
985 .Dl "I can not find any hard disk for use by NetBSD"
986 or the drive you wish to install onto is missing, then you should look at
988 .Lk http://www.NetBSD.org/ports/macppc/faq.html#nodisk
992 .To 2 "Selecting which sets to install"
993 .Em Selecting which sets to install
995 The next step is to choose which distribution sets you wish to install.
996 Options are provided for full, minimal, and custom installations.
997 If you choose sets on your own,
999 and a kernel must be selected.
1001 .To 2 "Partitioning the disk"
1002 .Em Partitioning the disk
1005 Preparing a disk which will be used for
1010 You will be prompted if you want an AHDI compatible partitioning on your disk.
1011 If you are installing
1013 on a dedicated drive, just answer 'no' and skip to the next section.
1015 If you answer 'yes', the
1018 You can now change the AHDI partition ID's on your root disk.
1019 Because NetBSD imposes a special ordering in disk partitions it uses
1020 for / (root) and swap.
1021 Also, because it wants to guard you against an unwanted
1022 demolition of partitions used by other systems, you have to tell it what
1023 partitions it is allowed to use.
1024 You have to mark the partition you want to use as swap SWP or
1025 (deprecated!) NBS and the other partitions as NBD.
1026 Note that all the changes you make to the ID's are reversible as long as
1027 you remember the original value.
1028 ahdilabel is capable of creating or changing an
1029 AHDI compatible partitioning on the disk, and
1030 in the partition-ID editor, the partitions are shown in the order that AHDI
1032 When you leave this editor and continue with
1034 your changes to the ID's do have consequences to the partition order!
1035 They will show up as follows:
1036 .(tag 13n -offset indent
1038 the first NBD partition
1040 the first SWP (or NBS) partition
1042 the rest of the partitions in AHDI order
1048 You can skip a few steps, down to
1049 .Sq Em "Getting the distribution sets" ,
1050 if you are installing onto a drive with an Apple Partition Map (Open
1051 Firmware 3), i.e. you selected
1052 .Me "Re-install sets or install additional sets"
1057 Please note that shared installs of
1061 on the same drive have not been tested, and as such may cause problems
1062 or may not work. It is
1064 recommended that all data is backed before attempting such installs.
1067 .if !\n[atari]:\n[macppc]:\n[sgimips] \{\
1069 Which portion of the disk to use.
1071 You will be asked if you want to use the entire disk or
1072 only part of the disk.
1073 If you decide to use the entire disk for
1076 will check for the presence of other operating systems and you will
1077 be asked to confirm that you want to overwrite these.
1080 Definition of the NetBSD disklabel.
1082 The Apple Disk Partition Map is used to create an in-core map of the
1083 disk called the disklabel.
1084 A minimum of two NetBSD partitions will be required,
1085 one for root and one for swap.
1086 Up to eight partitions may be used by NetBSD.
1087 Up to 32 partitions may exist on the disk which
1088 can be any combination of Mac OS HFS, Free, Scratch and
1090 partitions, although only the first eight which meet the needs of
1092 will be seen and mapped to the
1096 Some partitions in the disklabel have a fixed purpose.
1097 Partition 'a' is always the root partition, 'b' is the swap partition
1098 and 'c' is the entire disk.
1099 Partitions 'd' through 'h' are available for other use.
1100 Traditionally, 'g' is the partition mounted on the /usr directory, but
1101 this is historical practice, not a fixed value.
1105 Disklabel (and the underlying Apple Disk Partition Map).
1107 You will be presented with the current layout of the disk as seen by
1109 and given a change to change it.
1112 can only use the first eight qualified partitions, all partitions
1113 found on the disk will be displayed.)
1114 The partitions found on the disk will be shown in the top section of
1116 Each will be identified with the name assigned by
1118 the current size, offset, type, use and mount point.
1119 The partition currently being modified will be highlighted in inverse video.
1120 The bottom part of the display will list the operations which may be
1121 performed on the selected (highlighted) partition.
1124 Select next partition
1126 This highlights the next partition in the upper display list and makes it
1127 the current one selected for manipulation.
1129 Change selected partition
1131 This changes the type assigned to the partition.
1132 A partition may be assigned for use as a
1134 Root, SWAP, Usr, or Root&Usr; it may be assigned for use as a Mac OS HFS
1135 partition; a Scratch (for later reassignment); or a Free partition.
1136 Free partitions which are physically adjacent to each other will be collapsed
1137 into a single Free partition.
1139 Set mount point for partition
1143 file system mount point for the partition, and gets transferred into
1144 the /etc/fstab definition so
1146 knows where to mount the file system on subsequent boots.
1147 The option only applies to
1149 Root, Usr, Root&Usr or Mac OS HFS partitions, although currently HFS access
1150 is not supported without optional software components.
1151 A common set of predefined mount points (/usr, /home, /var, /tmp or None)
1152 will be presented to you to assist you in defining the most commonly used,
1153 but you may enter you own names if you choose.
1154 Selecting "None" will clear the mount point name and keep the partition
1155 from being defined in the resulting
1159 Split selected partition
1161 This option divides the selected partition into two separate partitions
1162 if there is space available in the Disk Partition Map.
1163 You will be prompted for the size of the first segment and the remaining
1164 portion will be allocated to the second segment.
1165 The first segment will be designated as a Scratch type, and the second
1166 will be designated as a Free type.
1167 To clear a split, or remerge two adjacent partitions into a
1168 single one, change both to be Free types.
1170 will merge them and update the display.
1172 This is the primary option used to partition the disk since it allows
1173 you to sub-divide the selected partition into two partitions.
1174 Changing the types associated with the resulting two parts, or splitting the
1175 second part further sub-divides the original partition.
1179 These entries allow you to scroll the upper display if more than
1180 eight partitions currently exist on the disk.
1182 Fix selected partition
1184 This option reviews the partition's size and starting address and fixes
1185 the values if they overlap any adjacent partition.
1186 This is primarily a debugging option and shouldn't be necessary during a
1187 normal installation.
1188 However, some 3rd party disk formatters have been known to create
1189 bogus entries in the Apple Disk Partition Map, and this option can aid
1190 is repairing these entries.
1194 This option completes the disk partitioning and returns you to the
1195 previous installation menu.
1196 At that point you will be given one last opportunity to bail out before
1197 committing the changes to the Disk Partition Map recorded on the disk.
1201 Recommended approach to partitioning
1203 The simplest method of approaching disk partitioning with
1205 is to convert everything that can be used for
1207 into a Free type partition.
1210 to collapse and merge all the available space.
1211 Then cycle through the Select, Split, Select, Change, and Set Mount Point
1212 options for each of the
1214 partitions that are desired.
1218 mount order for partitions during system boot, it is best to create your
1220 partitions in the following order: Root, SWAP, Usr where the partitions
1221 will be mounted in order on 'a', 'b', 'g', 'd', 'e', 'f', and 'h'.
1223 At least one Root or Root&Usr is required, and a SWAP partition is
1225 As a general rule you will need twice as much swap
1226 space as you have RAM, more if you plan on running X, Web applications
1227 or doing heavy development in a multi-user environment.
1228 The Root partition, if it is separate from your Usr, usually requires about
1231 If multiple Root partitions are defined, the second is usually
1232 mounted on /altusr by default.
1234 automatically mounts all
1235 Root partitions after the first as Usr type partitions.
1236 However, it is best to be very specific about mount points and partition
1242 If you want to use the entire disk for
1245 the following section and go to
1246 .Em "Editing the NetBSD disklabel" .
1248 .Em "Editing the Master Boot Record"
1250 You will be presented with the current values
1251 stored in the MBR, and will be given the opportunity to
1252 change, create or delete partitions.
1253 For each partition you can set the type, the start and the size.
1256 will delete a partition.
1257 You can also mark a partition as active, meaning that this is
1258 the one that the BIOS will start from at boot time.
1260 Be sure to mark the partition you want to boot from as active!
1262 After you are done editing the MBR, a sanity check
1263 will be done, checking for partitions that overlap.
1264 Depending on the BIOS capabilities of your machine and the
1267 partition you have specified, you
1268 may also be asked if you want to install newer bootcode in your MBR.
1269 If you have multiple operating systems on the
1270 disk that you are installing on, you will also be given
1271 the option to install a bootselector, which will allow you
1272 to pick the operating system to start up when your computer
1275 If everything is ok, you can go on to the next step,
1281 .\} \" !\n[atari]:\n[macppc]:\n[sgimips]
1285 .Em Editing the NetBSD disklabel
1287 The partition table of the
1289 part of a disk is called a
1294 uses an Apple Partition Map.
1295 The installer creates something like a real
1296 Apple Partition Map, but it is not compatible with
1299 which is one of the reasons why you cannot use this installer to partition
1300 a disk that can be used with
1302 or Open Firmware 3 systems.
1307 disklabels on \*M are compatible with the boot ROMs, and with
1312 If your disk already has a disklabel written to it, you can choose
1313 .Ic Use existing partition sizes .
1315 .Ic Set sizes of NetBSD partitions .
1320 on an AHDI partitioned disk, you will have to use:
1324 After you have chosen your partitions and their sizes
1325 .Pq or if you opted to use the existing partitions ,
1326 you will be presented with the layout of the
1328 disklabel and given one more chance to change it.
1329 For each partition, you can set the type, offset and size,
1330 block and fragment size, and the mount point.
1333 uses for normal file storage is called
1335 A swap partition has a special type called
1338 .if \n[i386]:\n[amd64] \{\
1339 You can also specify a partition as type
1341 This is useful if you share the disk with
1346 is able to access the files on these partitions.
1347 You can use the values from the MBR for the
1349 part of the disk to specify the partition of type
1351 (you don't have to do this now, you can always re-edit
1352 the disklabel to add this once you have installed
1356 to help you update your disklabel with data from the MBR).
1360 Some partitions in the disklabel have a fixed purpose.
1361 .(tag 6n -offset indent
1370 portion of the disk.
1371 .if !'c'\*[part_raw]' \{\
1377 The SGI volume header (boot partition)
1379 .It Li \*[part_free]-\*[part_max]
1380 Available for other use.
1383 is the partition mounted on
1385 but this is historical practice and not a fixed value.
1390 You will then be asked to name your disk's disklabel.
1391 The default response will be ok for most purposes.
1392 If you choose to name it something different, make sure the name
1393 is a single word and contains no special characters.
1394 You don't need to remember this name.
1398 .To 2 "Preparing your hard disk"
1399 .Em Preparing your hard disk
1401 .Em "You are now at the point of no return".
1403 Apart from the changes you made with
1405 nothing has been modified on your disk yet.
1406 If you confirm that you want to install
1408 the partitions now assigned to
1410 will be actually written to.
1414 written to your disk yet, but if you confirm that you want to
1417 your hard drive will be modified.
1419 If you are sure you want to proceed, select
1422 The install program will now label your disk and make the file
1423 systems you specified.
1424 The file systems will be initialized to contain
1426 bootstrapping binaries and configuration files.
1427 You will see messages on your screen from the various
1429 disk preparation tools that are running.
1430 There should be no errors in this section of the installation.
1431 If there are, restart from the beginning of the installation process.
1432 Otherwise, you can continue the installation program
1433 after pressing the return key.
1437 The bootstrapping code installed in this step will
1439 boot a machine with Open Firmware 3.
1440 You will still need to have
1442 on an HFS or HFS+ partition.
1446 .To 2 "Getting the distribution sets"
1447 .Em Getting the distribution sets
1451 distribution consists of a number of
1453 that come in the form of gzipped tarfiles.
1454 At this point, you will be presented with a menu
1455 which enables you to choose from one of the following methods
1456 of installing the sets.
1457 Some of these methods will first load the sets on your hard disk,
1458 others will extract the sets directly.
1460 For all these methods, the first step is making the sets
1461 available for extraction, and then do the actual installation.
1462 The sets can be made available in a few different ways.
1463 The following sections describe each of those methods.
1464 After reading the one about the method you will be using, you
1465 can continue to the section labeled
1466 .Sq Extracting the distribution sets .
1468 .To 2 "Installation from CD-ROM"
1469 .Em Installation from CD-ROM
1471 When installing from a CD-ROM, you will be asked to specify
1472 the device name for your CD-ROM drive
1473 .Pq usually Li cd0 ,
1474 and the directory name on the CD-ROM where the distribution files are.
1477 will then check if the files are indeed available
1478 in the specified location, and proceed to the actual
1479 extraction of the sets.
1481 .To 2 "Installation using ftp"
1482 .Em Installation using ftp
1484 To be able to install using ftp, you first need to configure
1485 your network setup if you haven't already done so.
1487 will do this for you, asking you
1488 if you want to use DHCP.
1489 If you do not use DHCP, you can enter network configuration
1491 If you do not have DNS set up for the machine that you
1492 are installing on, you can just press
1494 in answer to this question, and DNS will not be used.
1496 You will also be asked to specify the host that you want
1497 to transfer the sets from, the directory on that host,
1498 the account name and password used to log into that
1499 host using ftp, and optionally a proxy server to use.
1500 If you did not set up DNS, you will need to
1501 specify an IP address instead of a hostname for the ftp
1505 will proceed to transfer all the default set files
1506 from the remote site to your hard disk.
1508 .To 2 "Installation using NFS"
1509 .Em Installation using NFS
1511 To be able to install using NFS, you first need to configure
1512 your network setup if you haven't already done so.
1514 will do this for you, asking you
1515 if you want to use DHCP.
1516 If you do not use DHCP, you can enter network configuration
1518 If you do not have DNS set up for the machine that you
1519 are installing on, you can just press
1521 in answer to this question, and DNS will not be used.
1523 You will also be asked to specify the host that you want
1524 to transfer the sets from and the directory on that host
1525 that the files are in.
1526 This directory should be mountable by the machine you are installing on,
1527 i.e., correctly exported to your machine.
1529 If you did not set up DNS, you will need to
1530 specify an IP address instead of a hostname for the NFS server.
1533 .To 2 "Installation from a floppy set"
1534 .Em Installation from a floppy set
1536 Because the installation sets are too big to fit on one floppy,
1537 the floppies are expected to be filled with the split set
1539 The floppies are expected to be in
1542 You will be asked for a directory where the sets should be reassembled.
1543 Then you will be prompted to insert the floppies containing the split sets.
1544 This process will continue until all the sets have been loaded from floppy.
1548 .To 2 "Installation from Mac OS file systems"
1549 .Em Installation from Mac OS file systems
1552 does not currently have in-kernel support for
1554 HFS/HFS+ or AppleShare filesystems.
1556 therefore can not access the file sets if they are on these filesystems.
1559 .To 2 "Installation from an unmounted file system"
1560 .Em Installation from an unmounted file system
1562 In order to install from a local file system, you will
1563 need to specify the device that the file system resides
1565 .ie \n[pmax] .Pq for example Li rz1e
1566 .el .Pq for example Li sd1e
1567 the type of the file system,
1568 and the directory on the specified file system where the sets are located.
1570 will then check if it
1571 can indeed access the sets at that location.
1574 If this is a CD-ROM installation, the device used will be the name for your
1575 CD-ROM player with partition letter 'a'
1581 doesn't grok HFS or HFS+ partitions
1584 .To 2 "Installation from a local directory"
1585 .Em Installation from a local directory
1587 This option assumes that you have already done some preparation
1589 The sets should be located in a directory on a
1590 file system that is already accessible.
1593 for the name of this directory.
1595 .To 2 "Extracting the distribution sets"
1596 .Em Extracting the distribution sets
1598 A progress bar will be displayed while the distribution sets are
1601 After all the files have been extracted,
1602 the device node files will be created.
1603 If you have already configured networking, you will be asked if you want to
1604 use this configuration for normal operation.
1605 If so, these values will be installed in the network configuration files.
1606 The next menu will allow you to select the time zone that you're in,
1607 to make sure your clock has the right offset from UTC.
1608 Finally you will be asked to select a password encryption algorithm
1609 and can then set a password for the "root" account, to prevent
1610 the machine from coming up without access restrictions.
1613 .To 2 "Ensure you have the correct kernel installed"
1614 .Em "Ensure you have the correct kernel installed"
1616 If you are installing from the 32-bit sparc distribution set, make sure
1617 that you installed the correct kernel. The \*M installation tools do not
1618 by default copy the correct 32-bit kernel. Unless you prepared ahead of
1619 time by renaming the
1620 .Pa kern-GENERIC_SUN4U.tgz
1622 .Pa kern-GENERIC.tgz
1623 then you will need to follow the next few instructions.
1625 Go to the main installation menu, and select
1629 option, which will give you a shell prompt.
1630 You may need to type one of the following commands to get your delete key
1631 to work properly, depending on your keyboard:
1632 .Dl # Ic "stty erase '^h'"
1633 .Dl # Ic "stty erase '^?'"
1635 Type the following command (replacing
1637 with the partition name of your destination root partition):
1638 .Dl # Ic "mount /dev/wd0a /mnt"
1640 Now you ned to mount the location of your distribution sets:
1641 .Dl # Ic "mount /dev/cd0a /mnt2"
1642 .Dl # Ic "tar xpzvf /mnt2/sparc/binary/kernel/kern-GENERIC_SUN4U.tgz"
1643 .Dl # Ic "umount /mnt"
1644 .Dl # Ic "umount /mnt2"
1648 .To 2 "Finalizing your installation"
1649 .Em Finalizing your installation
1651 Congratulations, you have successfully installed
1656 To finalize the installation of
1658 certain parameters on the Cyclone firmware need to changed.
1659 The reason is that the Cyclone firmware is unable to boot anything other
1660 than an a.out format kernels.
1662 Kernels created on a
1664 \*V system are natively ELF and converted to a.out.
1665 This conversion process loses the symbol information used for,
1666 amongst other things, kernel memory grovelers such as vmstat.
1667 The workaround to the problem is to provide both the native ELF kernel
1668 (with all the symbol information) and the a.out kernel.
1669 These are available as /netbsd and /netbsd.aout respectively.
1670 As the a.out format kernel is not named in such a way that the
1671 Cyclone firmware will automatically find it the following command
1672 should be issued as the firmware prompt.
1674 .Dl boot\*[Gt] Ic "set boot wd0:/netbsd.aout"
1678 You can now reboot the machine and boot