upgrade revision 1.13
1	$NetBSD: upgrade,v 1.13 1998/02/01 16:28:54 is Exp $	
2
3The upgrade to NetBSD _VER is a binary upgrade; it would be prohibitive
4to make users upgrade by compiling and installing the _VER sources, and
5it would be very difficult to even compile a set of instructions that
6allowed them to do so.  Because of the various changes to the system,
7it is impractical to upgrade by recompiling from the sources and
8installing.
9
10To do the upgrade, you must have the NetBSD kernel on AmigaDOS and
11you must transfer the miniroot file system miniroot.fs onto the swap
12partition of the NetBSD hard disk.  You must also have at least the
13"base" binary distribution set available, so that you can upgrade
14with it, using one of the upgrade methods described above.  Finally,
15you must have sufficient disk space available to install the new
16binaries.  Since the old binaries are being overwritten in place,
17you only need space for the new binaries, which weren't previously
18on the system.  If you have a few megabytes free on each of your
19root and /usr partitions, you should have enough space.
20
21Since upgrading involves replacing the kernel, and most of the system
22binaries, it has the potential to cause data loss.  You are strongly
23advised to BACK UP ANY IMPORTANT DATA ON YOUR DISK, whether on the
24NetBSD partition or on another operating system's partition, before
25beginning the upgrade process.
26
27To upgrade your system, follow the following instructions:
28
29	Transfer the miniroot file system onto the hard disk partition
30	used by NetBSD for swapping, as described in the "Preparing
31	your System for NetBSD Installation" section above.
32
33	Now boot up NetBSD using the _VER kernel using the loadbsd
34	command:
35
36		loadbsd -b netbsd
37
38	If you machine has a split memory space, like, e.g., DraCo
39	machines, use this instead:
40
41		loadbsd -bn2 netbsd
42
43	* Directly booting NetBSD, with boot blocks installed:
44
45	[This description is for V40 (OS 3.1) ROMs. For older ROMs,
46	there might be small differences. Check your AmigaOS documentation
47	to learn about the exact procedure.]
48
49[XXX another note about bootblock support?]
50
51	Reboot your machine, holding down both mouse buttons if you
52	have a 2-button mouse, the outer mouse buttons if you have
53	a 3-button mouse. On the DraCo, press the left mouse button
54	instead, when the boot screen prompts you for it.
55
56	From the boot menu, select "Boot Options".
57	Select the swap partition with the miniroot, and then "ok".
58	Select "Boot" now. The machine will boot the bootblock, which
59	will prompt your for a command line. You have a few seconds time
60	to change the default. Entering an empty line will accept the
61	default.
62
63	The bootblock uses command lines of the form:
64
65	file options
66
67	where file is the kernel file name on the partition where the
68	boot block is on, and options are the same as with loadbsd.
69	E.g., instead of "loadbsd -bsSn2 netbsd" use "netbsd -bsSn2".
70
71	* Once your kernel boots:
72
73	You should see the screen clear and some information about
74	your system as the kernel configures the hardware.  Note which
75	hard disk device is configured that contains your root and
76	swap partition.  When prompted for the root device, type
77	'sd0b' (replacing 0 with the disk number that NetBSD used for
78	your root/swap device).  When prompted for a dump device,
79	answer 'none' for the upgrade. (For a normal boot, you would
80	tell it one of the swap devices). When prompted for the root
81	filesystem type, confirm 'generic', which will auto-detect it.
82
83	You will be presented with some information about the upgrade
84	process and a warning message, and will be asked if you wish
85	to proceed with the upgrade process.  If you answer
86	negatively, the upgrade process will stop, and your disk will
87	not be modified.  If you answer affirmatively, the upgrade
88	process will begin, and your disk will be modified.  You may
89	hit Control-C to stop the upgrade process at any time.
90	However, if you hit it at an inopportune moment, your system
91	may be left in an inconsistent (and possibly unusable) state.
92
93	You will now be greeted and reminded of the fact that this is a
94	potential dangerous procedure and that you should not upgrade the
95	etc-set.
96
97	When you decide to proceed, you will be prompted to enter
98	your root disk. After you've done this, it will be checked
99	automatically to make sure that the filesystem is in a sane
100	state before making any modifications. After this is done,
101	you will be asked if you want to configure your network.
102
103	You are now allowed to edit your fstab. Normally you don't have
104	to. Note that the upgrade-kit uses it's own copy of the fstab.
105	Whatever you do here *won't* affect your actual fstab.
106	After you are satisfied with your fstab, the upgrade-kit will check
107	all filesystems mentioned in it. When they're ok, they will be
108	mounted.
109
110	You will now be asked if your sets are stored on a normally
111	mounted filesystem. You should answer 'y' to this question if
112	you have the sets stored on a filesystem that was present in
113	the fstab. The actions you should take for the set extraction
114	are pretty logical (I think).
115
116	After you have extracted the sets, the upgrade kit will proceed
117	with setting the timezone and installing the kernel and bootcode.
118	This is all exactly the same as described in the installation
119	section.
120
121Your system has now been upgraded to NetBSD _VER.
122
123	After a new kernel has been copied to your hard disk, your
124	machine is a complete NetBSD _VER system.  However, that
125	doesn't mean that you're finished with the upgrade process.
126	There are several things that you should do, or might have to
127	do, to insure that the system works properly.
128
129	You will probably want to get the etc distribution,
130	extract it, and compare its contents with those in your /etc
131	directory.  You will probably want to replace some of your
132	system configuration files, or incorporate some of the changes
133	in the new versions into yours.
134
135	You will want to delete old binaries that were part
136	of the version of NetBSD that you upgraded from and have since
137	been removed from the NetBSD distribution.  If upgrading from
138	a NetBSD version older than 1.0, you might also want to
139	recompile any locally-built binaries, to take advantage of the
140	shared libraries.  (Note that any new binaries that you build
141	will be dynamically linked, and therefore take advantage of
142	the shared libraries, by default.  For information on how to
143	make statically linked binaries, see the cc(1) and ld(1)
144	manual pages.)
145