1 .\" $NetBSD: prep,v 1.13 2008/10/29 17:07:33 tsutsui Exp $
3 First and foremost, before beginning the installation process,
4 .Em make sure you have a reliable backup
5 of any data on your hard disk that you
7 Repartitioning your hard disk is an excellent way to destroy important data.
8 .Ss2 Software requirements
9 You will need the following RISC OS software:
12 A program that will unpack sparchives.
13 We recommend that you get David Pilling's !SparkPlug.
14 A self-extracting version of this
15 can be found in the distribution directory at
16 .Pa installation/misc/splug.bas
17 or at David Pilling's web site:
18 .Lk http://www.davidpilling.net/free.html
20 A program to report your disk's geometry:
23 Not really needed, as you can simply boot the installation
24 kernel and look for the geometry in the boot messages.
26 Sergio Monesi's fsck suite (a good thing to have around
29 .Lk http://www.monesi.com/sergio/fsck.html
31 !Zap (The read disk facility).
33 .Lk http://zap.tartarus.org/
35 The partition software/formatter for your desired installation
39 IDE disks on motherboard interface: !HForm
41 IDE disks on Simtec interface: UNKNOWN
43 IDE disks on ICS interface: UNKNOWN
45 IDE disks on RapIDE interface: UNKNOWN
47 Acorn SCSI cards: ScsiDM
49 Power-tec SCSI cards: !PowerMgr
51 Cumana SCSI-2: !SCSIMgr
53 oak SCSI-1 card: UNKNOWN
55 MCS Connect32 SCSI: UNKNOWN
61 An installation kernel for your platform:
63 RiscPC/A7000(+)/NC's : INSTALL kernel
65 The Bootloader and RISC OS tools:
70 (This should be pre-extracted if you're installing from CD-ROM).
74 distribution sets (Will be on the CD-ROM, or
75 available from your nearest
79 A hardcopy of this document
81 .Ss2 Preliminary steps
82 Unpack your BtNetBSD archive in whatever way.
83 .Ss2 Preparing your hard disk
85 .Bl -tag -width "File system"
87 The actual physical hard disk
89 A section of a device.
91 A structured partition that is able to hold files.
93 A RISC OS file system in a partition.
94 There can be more than one Disc per Device.
97 You will have to decide which device you wish to install
100 You will also have to decide whether you want to split the device
101 between one or more RiscOS Discs and
107 In making this decision you should consider the possibility that if
109 is incorrectly configured on a shared device then your shared
112 It is still recommended that if you decide to dedicate a device to
114 that you set aside a small RISC OS partition at the beginning
116 This is a useful place to store the RISC OS side of
118 and will make the use of UnixFS easier to configure.
119 If you do decide to create a minimal RISC OS partition at the beginning of
120 the device, a size of 10-20 MB is recommended (some partitioning
121 software has problems with partitions smaller than this).
123 The point is that you will have to repartition your device to make
124 room for a separate partition after the RISC OS one for
127 means backing up your device, re-partitioning it and then copying all
128 the data back afterwards.
129 We recommend that you only copy the needed
130 data back and put off installing the rest until you have
134 This way you will save yourself a lot of work if
135 something goes wrong and you have to start all over again.
136 .Ss2 Sharing your device
139 Use !HForm for this interface.
140 This is a program that is delivered with your computer and is located in the
145 With this software you only have the possibility of using one
146 partition for RISC OS, so you have to set the rest aside for
149 Use this procedure to set up your device:
152 Start !HForm by double-clicking on its icon.
154 Choose the "custom" or "other" option when prompted (usually
157 Use the default values for the geometry but do not enter the
158 full number of cylinders.
159 Just enter the number you want to use for RISC OS.
160 Make a note of this number.
162 Continue to accept the default answers until you're asked
163 whether you want to format or initialize, choose initialize.
165 Go to the section about running
169 2.1.2 Cumana SCSI-2 card
171 It is recommended that you use a newer version of !SCSIMgr (newer
172 than v1.55) since this will be easier to use when you want to leave
173 part of the device unused by RISC OS.
174 You should check for the latest version of this software at the following URL:
175 .Lk http://www.cumana.demon.co.uk
177 You need to create one or more RISC OS partitions, and you do it in
178 in the following way:
181 Run !SCSIMgr by double-clicking on it.
183 Select the device you wish to repartition.
185 Click on the clear icon in the partitions subwindow.
187 This will give you a dialogue box where you can specify the
188 size of the RISC OS partitions.
189 Do not select all since you want to use part of it for
192 Enter the amount of the device you wish to reserve for RiscOS.
193 This will be the whole device size less the amount you want to reserve for
195 Make a note of this number.
197 If you like, split the RISC OS portion of the device into
198 several partition (you should only "see" the RiscOS portion).
200 Click on Execute when you are happy with the partitions.
201 This will create your partitions, and wipe your device.
203 Go to the section about running
207 2.1.3 Alsystems Power-tec SCSI-2 card
209 You must use the !PowerMgr program to partition the device.
211 The RISC OS partitions should be called
218 Here is the procedure you should use:
221 Start !PowerMgr by double-clicking on its icon.
223 Click on advanced in the main window
225 Click on Define/create partitions
228 Click on the device you want to set up for NetBSD.
230 Set up the RISC OS partitions as
232 and the remaining one as
235 Click on each figure and press RETURN.
237 Click on partition drive.
239 Click on yes to warning as you really want to wipe
242 Click on yes to proceed, this will lead you to the
251 partitions, give them a name and set LFAU to auto.
253 Unset the tick on your
257 Click on Initialize selected partitions.
259 Click on yes to proceed init as you want to wipe the
262 Click on yes to proceed to configure.
268 Here you should set up the RISC OS partitions as you like them.
269 Normally the default will be ok.
272 This will configure your computer and give you access to the Discs.
281 2.1.4 Acorn SCSI card
283 You can only have one RISC OS partition with this card.
284 The rest has to be set aside for
286 This card does not have a friendly WIMP-based interface on the SCSI
287 management program, but the command line version is very good.
288 You should run this in a task window (press
291 .Li *dir Ar location_of_scsidm
295 You will get the following prompt:
297 Now you should enter the following commands:
300 (to see which devices are available)
304 with the no of your device)
306 (to divide the device between RISC OS and
310 Answer yes to the question:
311 .Dl Include RISCiX partitions?
313 Enter the size of the RISC OS area in blocks
316 SCSIDM will round this up to the nearest cylinder
319 Answer yes to the question:
320 .Bd -ragged -offset indent
321 .Li "Do you really want to section device" Ar no Ns Li "?"
324 This will section the device into two partitions.
329 Go to the section on running
332 2.1.5 Other interfaces
334 It may not be possible to partition devices on other interface.
335 If you are using a different interface you have 2 options:
338 Try to work out how to partition devices on it
340 Use the entire device for
343 .Ss2 Using a whole device for NetBSD
345 As a safety precaution
347 looks for a filecore bootblock
348 at the beginning of any device it labels.
349 If it finds one and it looks as though it is in use then
353 Because of this, if you've ever used your device for RiscOS, you will
354 need to invalidate this bootblock.
356 To do this you need to:
359 Be absolutely sure you want to do this.
363 and follow the instructions.
366 Ensure that this device is now not configured for RiscOS.
368 You are now ready to boot
370 and continue the installation.
371 .Ss2 Running bb_riscbsd
373 When you run this program, you will first be asked whether you are
374 installing to an ADFS drive or a SCSI drive.
382 program assumes that you are using a
383 non-Acorn SCSI card, so if you are using an Acorn card, then you may
384 have to edit this program and replace
387 .Ql SCSIFS_DiscOp . )
389 Then you will be asked which Disc you want to install
394 be the first Disc on the device.
396 will now scrutinize the device and see how it has been laid out.
398 It will then tell you how much of the device is occupied by RiscOS in
399 cylinders, and you will then be asked for the
402 Normally you should just enter the number given to you
403 since the RISC OS starting cylinder is 0 and therefore the last
404 cylinder in use is one less than the figure given.
405 If no figure is displayed, then your partitioning software failed to
406 fill in the bootblock completely
407 (it doesn't have to do this for you but most do)
408 or you selected the wrong device.
409 If you are convinced that this is the correct device then you must
410 calculate a cylinder offset using the numbers noted down during
411 partitioning (if it is not a whole number
413 round up, you might waste a little of the device but
416 Make a note of this number.
419 will make a backup of the original bootblock, but it
420 can be non-trivial to put it back.
423 Now that your device is ready for the installation you need to
424 unpack the bootloader archive,
426 (If you're installing from CD-ROM then this should be unpacked already) and
427 copy the directory to your hard disk.
428 In the archive you'll find the tools
429 mentioned in this document as well as the bootloader
432 .Ss2 Configuring the !BtNetBSD bootloader before installation
435 application and edit the
439 You can set details like tweaking with the amount of memory in
440 the WimpSlot of the bootloader when this is too much.
441 Remember however that this shouldn't be set too low for it can crash
444 When you think you've filled in the proper details save the file again
446 .Ss2 Booting the installation kernel
448 Double click on the InstKern icon to start it
452 should now start to boot, install
458 When you finish the installation you can restarted the computer as
460 .Ss2 Configuring !BtNetBSD after installation
464 application again and edit the
466 file to fill in the normal kernel name.
470 should be looking for its kernel in.
472 .Ql "Run \*[Lt]BtNetBSD$Dir\*[Gt].native.mountufs ADFS 4"
473 line that is there by default.
474 See this document for other names.
477 .Pa UnixFS:$.netbsd .
479 Save the file and run !BtNetBSD again (see above).
481 Finally, when you are happy with your
483 installation, do whatever
484 is necessary to restore order to the partition you took space away from.
485 This will most likely involve restoring files, but might involve some
489 Your hard disk is now prepared to have
491 installed on it, and you should proceed with the installation instructions.