3 usage \- installing and using MINIX
9 .de XB \" An example in bold print.
18 .de 3A \" Three Letter Acronym at 1 point size smaller.
19 \&\\$3\s-1\\$1\s+1\\$2
21 .de 3B \" TLA in bold.
22 \&\\$3\fB\s-1\\$1\s+1\fR\\$2
24 This manual page describes the installation and use of MINIX from a
25 System Administrators point of view. It contains an installation guide,
26 instructions on how to do the initial configuration and some other info.
27 Please read this document entirely before attempting to install MINIX.
28 The installation steps are in the proper order, but not all the
29 information you may need is presented at the right moment.
30 Other detailed information that may be useful can be found in
35 if you run MINIX under DOS.
36 .SS "1. MINIX UNDER DOS"
37 Installation of MINIX to run under DOS is a nonevent. Chances are, you are
38 reading this manual page from an already running MINIX system, but if not
39 then the setup goes like this:
41 Unpack the DOSMINIX.ZIP file using one of the popular ZIP utilities, such as
42 PKZIP or WinZIP. Next reboot Windows and hit F8 just when you see the
43 "Booting Windows" message. From the menu that appears choose "Command
44 prompt only", or if that doesn't work "Safe mode command prompt only". Under
45 Windows Me you can use a startup disk to boot the PC into DOS. Move
46 to the directory containing the MINIX files and type:
50 Type '=' and presto, you are running MINIX. Most of the rest of this manual,
51 which deals mainly with running MINIX in a true hard disk partition, does
52 not apply to you. Your system is already installed completely, with all
53 binaries and sources present, so all the talk about getting MINIX on your
54 disk can be skimmed over. Pay attention again when the focus shifts to the
55 configuration of the system. Section 9 is where this happens first. (The
56 main challange to a DOS installation is to figure out which parts of the
57 installation manual do not apply.)
59 The minimum system MINIX can be installed on comfortably is an IBM PC/AT
60 or PS/2 with a 286 processor, 2 MB memory, a 720 kb diskette drive, and 35
61 MB free space on an AT,
62 ESDI, or SCSI hard disk (the latter controlled by an Adaptec 1540.) MINIX
63 for the 386 (MINIX-386 for short) can be installed on a machine with at
64 least a 386sx processor, 3 MB memory and at least 35 MB of disk space.
66 The minimum system MINIX can be installed on
68 is an IBM PC/XT with 640 kb memory. MINIX-386 can more or less run in 2
69 MB memory. See sections 16 and 17 on "low memory" issues.
70 .SS "3. MINIX INSTALLATION BACKGROUND"
71 The objective of the installation is to create a partition on your disk
72 and to put MINIX into it. MINIX really requires at least two partitions
73 however, so the single "primary" partition is split into two or three
77 subpartition will contain the root file system, the
79 subpartition may optionally contain swapspace, and the
81 subpartition will contain the
83 file system. What Windows calls
84 "drives", i.e C:, D:, E:, MINIX calls "file systems". MINIX does not use
85 drive letters, but requires that one file system is made a part of another
86 file system by "mounting" one on the other. The "root" file system is
87 always present and starts with the directory "/", the root of the directory
88 tree. The root file system contains a few programs in
92 and configuration files in
94 This is just enough to get the system started. MINIX will soon extend
95 its directory tree by mounting a file system on the
97 directory. What is henceforth known as the /usr file system contains all
100 file system sources in
103 The \s-2ROOT.MNX\s+2 image contains the complete MINIX root file system, but
104 \s-2USR\s+2 contains just a small subset of the /usr file system, with just
105 enough utilities to install MINIX. The complete /usr file system is
106 split up into the \s-2USR.TAZ\s+2, \s-2SYS.TAZ\s+2 and \s-2CMD.TAZ\s+2
107 archives that are installed later to fill /usr.
109 Let's suppose your first hard disk, which has
112 has Windows already present in the first primary partition
114 and some free space left after that. After MINIX is installed in that
115 free space the disk will look like this:
119 .ta +\w'/dev/c0d0p1s0mmmm'u
120 /dev/c0d0 Whole hard disk #0
121 /dev/c0d0p0 Windows C: drive
122 /dev/c0d0p1 MINIX primary partition
123 /dev/c0d0p1s0 MINIX root partition
124 /dev/c0d0p1s1 MINIX swap partition (optional)
125 /dev/c0d0p1s2 MINIX /usr partition
129 /dev/c0d0 is the sum of a partition table, /dev/c0d0p0 and /dev/c0d0p1.
130 Likewise is /dev/c0d0p1 the sum of a subpartition table, /dev/c0d0p1s0 and
131 /dev/c0d0p1s2. Read the "DEVICES" sections for more information on MINIX
133 .SS "4. INSTALLATION"
134 .ig \" Only relevant when on CD-ROM.
135 If you have not already copied MINIX to floppy disks, please read
136 the README.TXT file in the MINIX directory now, for it tells how to do this.
137 You should also print out EXAMPLE.TXT and read it in parallel with this
138 document. This one tells you what to do; that one shows you what the
139 screen is supposed to look like at each step, so you can see if everything
143 You can install MINIX automatically or manually as described in the sections
144 below. The end result is the same, but manual installation allows
145 one to deviate from the preconfigured choices. You may wish to read the
146 manual pages of the programs used below before you start. You may especially
149 if your machine is different from what the majority buys, because you
150 may need to set a few boot parameters to configure drivers. To do this type
152 to get to the Boot Monitor prompt, set the appropriate variables, use
154 to store the settings and
156 to continue where you left off.
158 To install the system you need two diskettes: a bootable root diskette and a
159 diskette full of binaries to use as
161 These diskettes are named
165 These two diskettes may also be combined on a single high density diskette.
166 In that case the \s-2USR\s+2 part is on the
170 Insert the \s-2ROOT\s+2 diskette, boot the machine and type '=' to the menu.
171 The MINIX kernel is loaded and takes control when you see the copyright
172 banner. After loading the root diskette into the RAM disk you will be asked
173 to finish the name of the device to mount on
177 for a diskette that contains both \s-2ROOT\s+2 and \s-2USR\s+2, otherwise
178 replace \s-2ROOT\s+2 by \s-2USR\s+2 and type
182 .SS "5. AUTOMATIC INSTALLATION"
183 Before starting the installation, you must either have a free partition
184 available or have at least 35 MB not in any partition so you can create
189 to start the installation script. First it offers to install a national
190 keyboard map. The names should be clear, except for
192 which swaps the CTRL and CAPS LOCK keys of a standard US style keyboard
193 for people who believe that the natural place of CTRL is next to A.
194 The default suggested between [ and ] is the US standard keyboard.
196 The next thing to do is to make a partition, for this you are placed in a
197 partition table editor named
199 This partition table editor is very easy to use (in the author's opinion),
200 but you will probably hate it. You can move all over the place with the
201 arrow keys, change values, and make a mess of your partition table real quick.
202 So if you get into trouble, type 'q' to quit, 'n' to not write the table,
203 and RETURN to start over. Use the '?' key to get help.
205 With the '+' and '\-' keys you can select the disk device to install on,
208 the first hard disk. Type 'r' to load the partition table of the selected
209 disk. Either create one new partition by modifying a partition marked
210 "None", or reuse an existing partition by changing its type to "MINIX" (hex
211 code 81). DO NOT use part to shrink an existing partition! It will destroy
212 all data in that partition. MINIX needs a partition of at least 20 MB, but
213 not larger than 128 MB (MINIX-86) or 1 GB (MINIX-386). The system needs 35
214 MB in compiled state.
216 The script then wants to know the name of the partition you've created. The
217 partition name is probably still visible on the screen. Combined with the
218 drive name you have to type c0d0p1, c0d2p0 or something.
220 The next question is the amount of swapspace you want to give MINIX. There
221 will be a suggested value based on the amount of memory your system has.
222 If you have more then enough memory then don't bother with swap. MINIX
223 doesn't handle it very well yet, or ever, only memory starved systems need it
228 The new partition table is reloaded into the disk driver, and the
229 new MINIX partition is carved up into two or three subpartitions, a 1440 kb
230 root, maybe some amount of swap, and the rest for /usr.
232 After making /usr, it is immediately put to use to replace the installation
233 /usr file system so that you can remove the \s-2USR\s+2 diskette and insert
234 the \s-2ROOT\s+2 diskette (unless they are one and the same). The root file
235 system is filled with the contents of the \s-2ROOT\s+2 diskette and slightly
236 patched up to work on the hard disk (/etc/fstab.)
238 You can now skip the next section and move to "TESTING", but it may be
239 instructive to read it anyway.
240 .SS "6. MANUAL INSTALLATION"
241 The instructions that follow are at a very low level and require you to be
242 very careful. The big advantage is that you know precisely what
243 tools have been used and how everything works. The disadvantage is that
244 you may easily make a mistake that either forces you to start over if you
245 are lucky, or wipes out the contents of your hard disk if you are not.
246 Only if you really want to do something different should you use a manual
247 installation. Slavishly following the steps shown below will only make
248 you end up with the same result as an automatic installation.
252 to make partitions to load the system into. The best thing to do is to make
253 one large primary partition of type "MINIX" and to carve this partition up
254 into three subpartitions for root, swap and /usr. The assumption is that you
255 will use the second partition on the first hard disk,
259 is the root subpartition,
263 is /usr. If you want to use the first partition on
264 the second hard disk for instance, then substitute c0d1p0 and c0d1p0s[012] for
265 the above. See the section on devices below, and the manual
272 and select the disk that you
273 want to install MINIX onto. In our example it will be
278 to make a single partition in the primary partition table of type "MINIX",
279 then hit '>' on this new partition to make a subpartition table.
281 For the root subpartition you are advised to use 1440 kb exactly. You can
282 make it larger if you want to, but it is advisable never to let the contents
283 outgrow a floppy. (The \s-2ROOT\s+2 diskette is a copy of a root file
284 system, and will be used to fill your root subpartition.)
286 The second subpartition is for swapspace. You can use it to enlarge the
287 amount of total memory (real + swap) if your system has less than 2M
288 (16-bit mode) or 4M (32-bit mode). Note that only one MINIX swap partition
289 is needed on your system, so if you have another MINIX partition then you can
290 use its swap partition instead.
292 Use the rest of the partition for
294 the /usr subpartition.
296 When you are done check that /dev/c0d0p1s0 is active (the * after the partition
297 number) so you can boot from it later.
299 If your disk has bad blocks then don't put the root or swap subpartition
300 on top of them. Make sure the inode tables in the other partitions don't
301 have bad blocks either. You can put the subpartitions out of order on the
302 disk if that helps. Subpartition tables, unlike the main partition
303 table, are not sorted by the driver.
305 After making the partitions you do not have to reboot. The disk driver
306 reloads the partition tables on the next access if the disk is not in use.
309 To be able to boot from /dev/c0d0p1s0 you must place a master bootstrap in
310 /dev/c0d0p1. It has been placed there by
312 if it told you that it was creating a new partition table, but
314 .XB "installboot\0\-m\0/dev/c0d0p1\0/usr/mdec/masterboot"
317 will put it there for sure.
319 Let's start by initializing the swap partition first, if you allocated one.
320 We may need it already, so mount it.
322 .XB "mkswap\0/dev/c0d0p1s1"
323 .XB "mount\0\-s\0/dev/c0d0p1s1"
325 Next make a file system for on-disk /usr and copy the floppy /usr on to it.
327 .XB "mkfs\0/dev/c0d0p1s2"
328 .XB "readall\0\-b\0/dev/c0d0p1s2 | sh"
329 .XB "mount\0/dev/c0d0p1s2\0/mnt"
330 .XB "cpdir\0\-v\0/usr\0/mnt"
332 This will create a file system on /dev/c0d0p1s2, mount it on /mnt, and copy the
333 contents of the \s-2USR\s+2 floppy onto it. The call to
335 marks bad blocks on the file system as unusable, you can omit this on a
336 drive known to be spotless (\s-2IDE\s+2 or \s-2SCSI\s+2.)
338 You can now use the new /usr in place of the \s-2USR\s+2 floppy:
340 .XB "umount\0/dev/c0d0p1s2"
341 .XB "umount\0/dev/fd0\0\0\0\0\0\0\0\0\0# fd0p2 if combined"
342 .XB "mount\0/dev/c0d0p1s2\0/usr"
344 This little dance has freed up your floppy drive, so please remove the
345 \s-2USR\s+2 diskette and replace it by the \s-2ROOT\s+2 diskette. Make a
346 file system for the root with at least 512 inodes (files), and
347 fill it from the floppy:
349 .XB "mkfs\0\-i\0512\0/dev/c0d0p1s0"
350 .XB "mount\0/dev/fd0\0/fd0"
351 .XB "mount\0/dev/c0d0p1s0\0/mnt"
352 .XB "cpdir\0\-v\0/fd0\0/mnt"
353 .XB "umount\0/dev/fd0"
357 to get rid of the "use setup" message that greets you when you boot, and
360 to name the devices MINIX has been installed on. In our example it
361 should look like this:
363 .XB "root=/dev/c0d0p1s0"
364 .XB "swap=/dev/c0d0p1s1"
365 .XB "usr=/dev/c0d0p1s2"
367 Unmount the new root:
369 .XB "umount\0/dev/c0d0p1s0"
373 .XB "installboot\0\-d\0/dev/c0d0p1s0\0/usr/mdec/bootblock\0boot"
375 The automatic script would now set the
379 boot variables. You can do this now using the
381 command, but it is easier to postpone it until the testing phase. The
384 .XB "rootdev=c0d0p1s0"
385 .XB "ramimagedev=c0d0p1s0"
387 By now a new MINIX system is present on your hard disk. Time to see if
388 it works. Leave the \s-2ROOT\s+2 diskette in the drive and type
390 You are now going to use the power of the Boot Monitor on the diskette to
391 boot the MINIX partition on the hard disk. Use the monitor command
393 to boot the primary partition MINIX has been installed in. (It is "c0d0p1" in
396 The hard disk bootstrap is now showing the menu again. You can type '='
397 to start MINIX, but you probably want to change the boot parameters.
400 once more to get to the command prompt. The command
402 shows what the current parameters are. Here is an example that shows how
403 to make a menu to either start MINIX or boot Windows:
405 .XB "minix(=,Minix)\0boot"
406 .XB "win(w,Windows)\0boot\0c0d0p0"
409 Windows is assumed to be in the first partition in the example above (c0d0p0).
412 to see if the menu looks right. If so hit '=' to start MINIX. Log in as
414 .SS "8. ADDING PROGRAMS AND SOURCES TO /usr"
417 command can also be used to add files from floppy sets to the system. The
419 (programs and stuff),
421 (system sources), and
424 are all installed relative to the
426 directory, so the command to use three times is
431 will ask for the size of data on the floppies, which is by default simply
432 the entire floppy. You will see some "Cannot make directory" errors
433 while extracting, as some directories already exist. Ignore these messages.
436 set if you want a working MINIX system,
438 if you want recompile the system or study it, and
440 if you also want the sources of the commands. On a disk space
441 starved machine you could opt to do without the commands sources, as they
442 are not absolutely necessary to understand MINIX.
444 If your machine does not have enough memory to run
446 then type these commands manually:
449 .XB "vol\0/dev/fd0 | zcat | tar\0xvfp\0\-"
453 is already present on the hard disk in an
455 or Windows partition, then this command can be used under MINIX-386 to
456 extract it to avoid the floppy detour:
459 .XB "mtools\0copy\0c0d0p0:USR.TAZ\0\- | setup\0/usr"
461 In 16-bit mode you don't have mtools, but maybe dosread will work:
464 .XB "dosread\0c0d0p0\0USR.TAZ | setup\0/usr"
466 The file doesn't have to be in the root directory of
469 .B "c0d1p0:/TMP/USR.TAZ"
470 would name a file on the first partition of the second hard disk in the
474 The /usr file system can also be filled through a network from a remote host
475 if MINIX if you can get networking going with the NET.TAZ supplement. Use
477 to install NET.TAZ (note that it goes into / instead of /usr), then
478 follow the instructions in
480 to configure TCP/IP and boot MINIX. There are now two ways to fill
481 /usr. One is to add the host name and login name of a remote host and a
484 as root, and to use the following command on the remote host:
486 .XB "rsh\0\-l\0root\0\fIminix-box\fP\0setup\0/usr\0< USR.TAZ"
490 to copy the data directly from a Web or FTP site by using these
491 commands under MINIX:
494 .XB "urlget\0\fIurl\fP.../USR.TAZ | setup\0/usr"
496 The sources may be installed using exactly the same commands, but with
500 Note that this means that the sources must also be extracted relative to
503 A standalone machine will have to be given a name. As
507 .XB "echo\0\fIname\fB\0>/etc/hostname.file"
509 to change the host name of your machine to
511 .SS "10. ACTIVE ON BOOT"
512 You may want to make the MINIX partition active so that it is automatically
517 mark the primary partition that contains MINIX active. Using the menu you
518 made earlier you can boot either MINIX or Windows at a keypress. You can even
519 set timeouts. To boot MINIX automatically after 5 seconds:
521 .XB "main()\0{trap\05000\0minix;\0menu}"
525 for all the details on the monitor.
527 If you don't trust this then you can rig up a diskette that boots the MINIX
528 partition when left in the drive:
530 .XB "installboot\0\-m\0/dev/fd0\0/usr/mdec/jumpboot\0010"
532 The numbers 010 indicate the device (disk or partition) that must be booted,
535 in this example. Take the name of the device, and use the disk, partition
536 and subpartition numbers, or less. So c0d1p2s0 -> 120, c0d3 -> 3,
539 A crash course on the MINIX devices in
541 The first two hard disks are named
545 These devices address the entire hard disk, from the
546 first to the last byte. Each disk has four partitions, for disk 0 they are
552 And for disk 1 they are named
556 These partitions may contain file systems,
560 or Windows "C:" file system. MINIX can use these partitions
561 for file systems too, but you can also partition one of these "primary
562 partitions" into four so-called "subpartitions". The subpartitions of
570 The other partitions may have four subpartitions that are named in the same
573 for an elaborate description.
575 You may need to add devices to
577 because not all devices are present to keep down the clutter.
580 knows how to make devices, and
582 can tell you what an unknown device may be, or even what all devices in
584 may be if called without arguments. Devices are described in
586 with pointers to more specific pages.
588 The editors available are
599 editor. Of these editors only elvis can recover your file after a system
602 is available at installation time. (All you need to know about mined right
603 now is that CTRL-X gets you out of it.)
604 .SS "13. BOOT MONITOR VS. MINIX"
605 The Boot Monitor uses the
607 to address disks, so it has no idea of controllers, it just lumps everything
608 together and ignores controller numbers. So what the monitor thinks are
615 (IDE primary master),
617 (IDE secondary master), and
619 (SCSI disk at target 3).
620 One must keep this in mind when MINIX is installed on a disk other than the
621 very first. So if MINIX is installed in the third partition of the SCSI disk,
625 .B "rootdev=c1d3p2s0"
626 will tell MINIX where its root file system is.
627 .SS "14. NATIONAL KEYBOARDS"
630 contains keymap tables for several national keyboards. If you have a German
631 keyboard for instance, then
633 .XB "loadkeys\0/usr/lib/keymaps/german.map"
635 will load the German key translation table into the keyboard driver. Copy
638 once MINIX is installed on the hard disk, because having to type a key
639 sequence like one of these:
641 .XB "loadkezs\0\-usr\-lib\-kezmaps\-german.map"
642 .XB "loqdkeys\0=usr=lib=key,qps=french.,qp"
644 on a reboot gets a bit annoying after a while. Send corrections and new
645 keymaps to the person named below. (Do not send a Dutch keymap, buy
646 yourself a real keyboard instead.)
648 Below are a few useful suggestions. Some of the information can be of use
649 in other situations than described here.
650 .SS "15. VIRTUAL CONSOLES"
651 Hold down the ALT key and press the left or right arrow key, F1, or F2.
652 This switches the console between two login sessions. (Unless you have
653 an old mono adapter, because virtual consoles sit in video memory, and
654 a mono adapter only has memory for one.)
656 Note that kernel messages, including function key output, only appear on
657 the first console. This may be confusing, but it keeps the other consoles
659 .SS "16. LOW ON MEMORY"
660 The normal installation requires that you have enough memory for a large RAM
661 disk. You can still install MINIX normally if you either have a high density
662 diskette drive for a combined root+usr floppy, or you have two floppy drives
663 of at least 720 kb. Before booting you have to set the variable
667 This is slower then a RAM disk, but saves a lot of memory.
669 The automatic installation script knows how to handle this new situation.
670 If you install manually then you have to use
672 .XB "cpdir\0\-vx\0/\0/mnt"
674 to copy the root device to disk. When it is time to fill /usr and you only
675 have one floppy drive then hit DEL to get out of the installation script and
676 reboot as described in "TESTING". You can then finish the installation
679 See the XT640K.TXT file for more advice on small machines.
681 .SS "17. LOW ON MEMORY AND ONLY ONE 720 KB FLOPPY DRIVE"
682 If you only have one 720 kb floppy drive and your system is low on memory
683 then you can use the \s-2TINYROOT.MNX\s+2 boot image. This image contains a
684 small kernel with only the BIOS disk driver, and a small root file system.
685 You can use this disk to boot your machine. Use the normal \s-2ROOT.MNX\s+2 to
686 install the root file system. Keep booting your machine with
687 \s-2TINYROOT\s+2 until you have compiled a small kernel for your system.
690 boot variable to select the hard disk root file system. Do
692 use \s-2TINYROOT\s+2 for anything other than booting, always use
693 \s-2ROOT\s+2 when mentioned.
694 .SS "18. FLOPPY DRIVE 1 IS A HIGH DENSITY DRIVE"
695 If you would like to install from floppy drive 1 then you need to copy at
696 least one sector from the \s-2USR\s+2 image onto a diskette for drive 0.
697 The \s-2USR\s+2 bootstrap has been rigged to boot the other drive.
698 .SS "19. INSTALLING ON A SECOND HARD DISK"
699 MINIX doesn't care if it is installed on the second disk of a system with
700 two disks. The only problem is to get it booted. You can either rig up
701 a diskette to boot MINIX as shown earlier, or you can use the same trick
702 on the first disk. The command
704 .XB "installboot\0\-m\0/dev/c0d0\0/usr/mdec/jumpboot\01"
706 will lock the first disk into booting the second disk. Note that this
707 command modifies the disk outside a MINIX partition, overwriting a bit of
708 code that has likely been put there by Windows fdisk. First verify that the
709 Boot Monitor can boot a Windows partition, because then the MINIX master
710 bootstrap can do it too.
711 .SS "20. LOTS OF MEMORY ON A 286"
712 You will have a hard time making MINIX use up 3 MB memory. Memory you
713 can spare can be used for a "second level block cache" on the RAM disk. The
714 File System uses the second level cache to store copies of disk blocks that
715 are pushed out of the normal (primary) block cache. The size of the primary
716 cache is compiled into the FS server, but the size of the second level cache
719 boot variable. Set it to a number between 0 and 512. 512 kilobytes is
720 enough to keep most of the compiler cached.
721 .SS "21. LOTS OF MEMORY ON A 386+"
722 Processes can be as big as you would like on a 386, but in practice 4 MB is
723 a lot, and 8 MB is infinite.
724 The installation script sets up a second level cache for MINIX-386
725 of up to 1024 kilobytes. This is because the default file system cache
726 is only 80 kb. Your first point of call is to get rid of the poorly
727 performing second level cache by setting
729 to 0 and to assign the memory used by it to the
730 normal block cache by enlarging the appropriate
734 constants in <minix/config.h> with as much as you can spare. (1024 for
735 NR_BUFS is the minimum to keep
737 cached. 2048 is then a nice value for NR_BUF_HASH.)
738 Disable the second level cache, compile a new kernel, reboot and set
741 .SS "22. LOTS OF DISK SPACE"
742 The maximum file system size is 1 GB for MINIX-386 and 128 MB for
743 MINIX-86. (MINIX-86 can handle larger file systems, but
745 can't check them.) Note that a MINIX file system can only contain 65535
746 inodes (files), so the average file should be 16 kb to completely fill it.
747 It may be better to make two smaller file systems. Besides, fsck takes
748 forever on a large file system.
749 .SH SYSTEM ADMINISTRATION
750 The system has been set up with the idea that working as root is a bad thing
751 to do. As root you are in no way protected from doing stupid things. So
752 don't do development as root, but work as
754 Only in exceptional cases do you want to become root. Being root is fun for
755 wannabe hackers; administrators know better.
757 To make life easier for bin, some programs like
762 treat bin and other members of the operator group as special and allow them
763 the privileges of root. (One is an operator if one's
764 group id is zero.) Operators should share the shadow password of root by
767 in their password field. This way they all have one face (password)
768 to the outside world, forming no greater security risk than root alone.
770 The home directory of bin contains one important Makefile. You can use it
771 to recompile all the commands and libraries of the system. Type
773 to see the usage message. If you want to compile just one command then you
776 to do so. To put it in its proper place you have to type
778 Read the Makefiles in the
782 subdirectories to understand how everything is put together. If you are
785 may fail to traverse down the source tree and also compile things. You will
788 in each subdirectory. You can run make in /usr/src at the end to see if
789 you've missed something or not.
791 The shell used by MINIX is a minimal version of
793 the BSD shell. It has been modified to offer simple line editing using the
797 The kernel is not compiled from the master Makefile. To make a new kernel
798 you have to step into the
800 directory. There you can run four different make commands:
804 This makes all the different kernel parts and combines them in the file
809 As above and then makes a boot floppy that you can use to restart your
810 system with. You are prompted for the floppy device name.
813 First makes the image file and then copies it into the directory
815 If there are already two images in that directory then the newest image will
816 be removed to make space for this newer image. It is assumed that the
817 oldest image is the most stable system image, one that always works, and
818 that the newest image is experimental. Check beforehand what
820 contains before you run
822 Remove the oldest image if you want another image to become the stable
823 image. The Boot Monitor chooses the newest image in
825 to boot. You can use the monitor command
827 to view the images present, and set the
829 variable to the full name of the image you want to use instead if the newest
830 doesn't work. The images in
832 are named using the MINIX release and version numbers with an extra revision
833 number added to distinguish the images.
835 The first new kernel you would like to make is one configured for your
836 system. The kernel you are running now contains several drivers
837 you don't need, or may be missing drivers that you might want.
838 In <minix/config.h> you can find a number of
840 variables that can be set to
844 to include a particular driver. The full list of configurable parameters
845 and what they do are described in
847 It is invaluable in figuring out what to change and how in <minix/config.h>.
849 Configuring a new kernel is sometimes not enough to enable new devices, you
850 sometimes need to use the
852 command to make new device files in
854 For pseudo-ttys you also have to check if
856 mentiones the new devices.
858 New additions to the system can be made in the
860 tree. An empty directory tree has been set up for you and binaries and
861 manual pages are already in the search paths. You can make a new user entry
870 tells the time zone offset from the wall clock time to GMT. You have to
871 change it for your time zone. (See
874 The function keys produce debug dumps, showing various interesting data
875 about the system. F1 lists processes and F5 shows ethernet stats, which
876 may be of use now. Read
878 to know all the details of the screen and keyboard.
879 .SS "23. SYSTEM SHUTDOWN"
880 You can't just turn a MINIX system off. MINIX must be told to flush the
881 modified data in the file system cache first. The following
882 commands/keystrokes can be used to exit MINIX properly:
885 First alert all users and then all processes of the impending shutdown
886 then halt or reboot the system in one of various ways. See
890 Alert all processes of the system shutdown then reboot or halt.
892 .B \s-2CTRL\-ALT\-DEL\s+2
893 Halt the system by running
894 .BR "shutdown \-h now" .
896 MINIX halts by returning to the Boot Monitor, MINIX reboots by instructing
897 the monitor to reboot MINIX. (MINIX is just a subprocess to the monitor.)
898 Either halt MINIX and use monitor commands to escape MINIX, or use
902 When exiting MINIX running under DOS the Boot Monitor's
904 command will return you to the DOS prompt. The Boot Monitor and MINIX
905 are together just a pretty big DOS program as far DOS is concerned.
909 Honorary home directory of Andrew S. Tanenbaum. Doubles as the place where
910 the default setup for a new user is found.
929 "Operating Systems \- Design and Implementation 2/e" by Andrew S. Tanenbaum
930 and Albert S. Woodhull.
934 refers to a C language include file in /usr/include.
939 do not have the current directory in their program search path to avoid
940 executing programs left around by malicious people. This means that to run
942 from the current directory,
946 There are many PS/2 models, all different. Some will run MINIX, some won't,
947 some crippled if you lie to MINIX by setting
951 Almost no PS/2 has a standard disk, so setting
959 Except for the floppy driver, none of the DMA based drivers know about DMA
960 being limited to a 24 bits address, i.e. the first 16 MB. So under MINIX-386
961 you run a slight risk that a
965 command may use a buffer above 16 MB for reading or writing to a character
966 device. This only happens if the low 16 MB is taken by some huge processes,
967 and you have more than 16 MB, of course.
969 Kees J. Bot <kjb@cs.vu.nl>