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 three partitions
73 however, so the single "primary" partition is split into three subpartitions.
76 subpartition will contain the root file system, the
78 subpartition will contain the
82 subpartition will contain the
84 file system. What Windows calls
85 "drives", i.e C:, D:, E:, MINIX calls "file systems". MINIX does not use
86 drive letters, but requires that one file system is made a part of another
87 file system by "mounting" one on the other. The "root" file system is
88 always present and starts with the directory "/", the root of the directory
89 tree. The root file system contains a few programs in
93 and configuration files in
95 This is just enough to get the system started. MINIX will soon extend
96 its directory tree by mounting a file system on the
98 directory. What is henceforth known as the /usr file system contains all
101 file system sources in
104 The \s-2ROOT.MNX\s+2 image contains the complete MINIX root file system, but
105 \s-2USR\s+2 contains just a small subset of the /usr file system, with just
106 enough utilities to install MINIX. The complete /usr file system is
107 split up into the \s-2USR.TAZ\s+2, \s-2SYS.TAZ\s+2 and \s-2CMD.TAZ\s+2
108 archives that are installed later to fill /usr.
110 Let's suppose your first hard disk, which has
113 has Windows already present in the first primary partition
115 and some free space left after that. After MINIX is installed in that
116 free space the disk will look like this:
120 .ta +\w'/dev/c0d0p1s0mmmm'u
121 /dev/c0d0 Whole hard disk #0
122 /dev/c0d0p0 Windows C: drive
123 /dev/c0d0p1 MINIX primary partition
124 /dev/c0d0p1s0 MINIX root partition
125 /dev/c0d0p1s1 MINIX /home partition
126 /dev/c0d0p1s2 MINIX /usr partition
130 /dev/c0d0 is the sum of a partition table, /dev/c0d0p0 and /dev/c0d0p1.
131 Likewise is /dev/c0d0p1 the sum of a subpartition table, /dev/c0d0p1s0,
132 /dev/c0d0p1s1, and /dev/c0d0p1s2.
133 Read the "DEVICES" sections for more information on MINIX devices.
134 .SS "4. INSTALLATION"
135 .ig \" Only relevant when on CD-ROM.
136 If you have not already copied MINIX to floppy disks, please read
137 the README.TXT file in the MINIX directory now, for it tells how to do this.
138 You should also print out EXAMPLE.TXT and read it in parallel with this
139 document. This one tells you what to do; that one shows you what the
140 screen is supposed to look like at each step, so you can see if everything
144 You can install MINIX automatically or manually as described in the sections
145 below. The end result is the same, but manual installation allows
146 one to deviate from the preconfigured choices. You may wish to read the
147 manual pages of the programs used below before you start. You may especially
150 if your machine is different from what the majority buys, because you
151 may need to set a few boot parameters to configure drivers. To do this type
153 to get to the Boot Monitor prompt, set the appropriate variables, use
155 to store the settings and
157 to continue where you left off.
159 To install the system you need two diskettes: a bootable root diskette and a
160 diskette full of binaries to use as
162 These diskettes are named
166 These two diskettes may also be combined on a single high density diskette.
167 In that case the \s-2USR\s+2 part is on the
171 Insert the \s-2ROOT\s+2 diskette, boot the machine and type '=' to the menu.
172 The MINIX kernel is loaded and takes control when you see the copyright
173 banner. After loading the root diskette into the RAM disk you will be asked
174 to finish the name of the device to mount on
178 for a diskette that contains both \s-2ROOT\s+2 and \s-2USR\s+2, otherwise
179 replace \s-2ROOT\s+2 by \s-2USR\s+2 and type
183 .SS "5. AUTOMATIC INSTALLATION"
184 Before starting the installation, you must either have a free partition
185 available or have at least 35 MB not in any partition so you can create
190 to start the installation script. First it offers to install a national
191 keyboard map. The names should be clear, except for
193 which swaps the CTRL and CAPS LOCK keys of a standard US style keyboard
194 for people who believe that the natural place of CTRL is next to A.
195 The default suggested between [ and ] is the US standard keyboard.
197 The next thing to do is to make a partition, for this you are placed in a
198 partition table editor named
200 This partition table editor is very easy to use (in the author's opinion),
201 but you will probably hate it. You can move all over the place with the
202 arrow keys, change values, and make a mess of your partition table real quick.
203 So if you get into trouble, type 'q' to quit, 'n' to not write the table,
204 and RETURN to start over. Use the '?' key to get help.
206 With the '+' and '\-' keys you can select the disk device to install on,
209 the first hard disk. Type 'r' to load the partition table of the selected
210 disk. Either create one new partition by modifying a partition marked
211 "None", or reuse an existing partition by changing its type to "MINIX" (hex
212 code 81). DO NOT use part to shrink an existing partition! It will destroy
213 all data in that partition. MINIX needs a partition of at least 20 MB, but
214 not larger than 128 MB (MINIX-86) or 1 GB (MINIX-386). The system needs 35
215 MB in compiled state.
217 The script then wants to know the name of the partition you've created. The
218 partition name is probably still visible on the screen. Combined with the
219 drive name you have to type c0d0p1, c0d2p0 or something.
221 The next question is the size of the /home partition that you want. There
222 will be a suggested value based on the amount of disk space available.
224 The new partition table is reloaded into the disk driver, and the
225 new MINIX partition is carved up into two or three subpartitions, a
226 root, the chosen amount for /home, and the rest for /usr.
228 After making /usr, it is immediately put to use to replace the installation
229 /usr file system so that you can remove the \s-2USR\s+2 diskette and insert
230 the \s-2ROOT\s+2 diskette (unless they are one and the same). The root file
231 system is filled with the contents of the \s-2ROOT\s+2 diskette and slightly
232 patched up to work on the hard disk (/etc/fstab.)
234 You can now skip the next section and move to "TESTING", but it may be
235 instructive to read it anyway.
236 .SS "6. MANUAL INSTALLATION"
237 The instructions that follow are at a very low level and require you to be
238 very careful. The big advantage is that you know precisely what
239 tools have been used and how everything works. The disadvantage is that
240 you may easily make a mistake that either forces you to start over if you
241 are lucky, or wipes out the contents of your hard disk if you are not.
242 Only if you really want to do something different should you use a manual
243 installation. Slavishly following the steps shown below will only make
244 you end up with the same result as an automatic installation.
248 to make partitions to load the system into. The best thing to do is to make
249 one large primary partition of type "MINIX" and to carve this partition up
250 into three subpartitions for root, /home, and /usr. The assumption is that you
251 will use the second partition on the first hard disk,
255 is the root subpartition,
259 is /usr. If you want to use the first partition on
260 the second hard disk for instance, then substitute c0d1p0 and c0d1p0s[012] for
261 the above. See the section on devices below, and the manual
268 and select the disk that you
269 want to install MINIX onto. In our example it will be
274 to make a single partition in the primary partition table of type "MINIX",
275 then hit '>' on this new partition to make a subpartition table.
277 For the root subpartition you are advised to use 1440 kb exactly. You can
278 make it larger if you want to, but it is advisable never to let the contents
279 outgrow a floppy. (The \s-2ROOT\s+2 diskette is a copy of a root file
280 system, and will be used to fill your root subpartition.)
282 The second subpartition is for the /home subpartition. You may choose to store
283 your personal files there.
285 Use the rest of the partition for
287 the /usr subpartition.
289 When you are done check that /dev/c0d0p1s0 is active (the * after the partition
290 number) so you can boot from it later.
292 After making the partitions you do not have to reboot. The disk driver
293 reloads the partition tables on the next access if the disk is not in use.
296 To be able to boot from /dev/c0d0p1s0 you must place a master bootstrap in
297 /dev/c0d0p1. It has been placed there by
299 if it told you that it was creating a new partition table, but
301 .XB "installboot\0\-m\0/dev/c0d0p1\0/usr/mdec/masterboot"
304 will put it there for sure.
306 Next make a file system for on-disk /home. Leave it empty for now.
308 .XB "mkfs\0/dev/c0d0p1s1"
310 Next make a file system for on-disk /usr and copy the floppy /usr on to it.
312 .XB "mkfs\0/dev/c0d0p1s2"
313 .XB "mount\0/dev/c0d0p1s2\0/mnt"
314 .XB "cpdir\0\-v\0/usr\0/mnt"
316 This will create a file system on /dev/c0d0p1s2, mount it on /mnt, and copy the
317 contents of the \s-2USR\s+2 floppy onto it.
319 You can now use the new /usr in place of the \s-2USR\s+2 floppy:
321 .XB "umount\0/dev/c0d0p1s2"
322 .XB "umount\0/dev/fd0\0\0\0\0\0\0\0\0\0# fd0p2 if combined"
323 .XB "mount\0/dev/c0d0p1s2\0/usr"
325 This little dance has freed up your floppy drive, so please remove the
326 \s-2USR\s+2 diskette and replace it by the \s-2ROOT\s+2 diskette. Make a
327 file system for the root with at least 512 inodes (files), and
328 fill it from the floppy:
330 .XB "mkfs\0\-i\0512\0/dev/c0d0p1s0"
331 .XB "mount\0/dev/fd0\0/fd0"
332 .XB "mount\0/dev/c0d0p1s0\0/mnt"
333 .XB "cpdir\0\-v\0/fd0\0/mnt"
334 .XB "umount\0/dev/fd0"
338 to get rid of the "use setup" message that greets you when you boot, and
341 to name the devices MINIX has been installed on. In our example it
342 should look like this:
344 .XB "root=/dev/c0d0p1s0"
345 .XB "home=/dev/c0d0p1s1"
346 .XB "usr=/dev/c0d0p1s2"
348 Unmount the new root:
350 .XB "umount\0/dev/c0d0p1s0"
354 .XB "installboot\0\-d\0/dev/c0d0p1s0\0/usr/mdec/bootblock\0boot"
356 The automatic script would now set the
360 boot variables. You can do this now using the
362 command, but it is easier to postpone it until the testing phase. The
365 .XB "rootdev=c0d0p1s0"
366 .XB "ramimagedev=c0d0p1s0"
368 By now a new MINIX system is present on your hard disk. Time to see if
369 it works. Leave the \s-2ROOT\s+2 diskette in the drive and type
371 You are now going to use the power of the Boot Monitor on the diskette to
372 boot the MINIX partition on the hard disk. Use the monitor command
374 to boot the primary partition MINIX has been installed in. (It is "c0d0p1" in
377 The hard disk bootstrap is now showing the menu again. You can type '='
378 to start MINIX, but you probably want to change the boot parameters.
381 once more to get to the command prompt. The command
383 shows what the current parameters are. Here is an example that shows how
384 to make a menu to either start MINIX or boot Windows:
386 .XB "minix(=,Minix)\0boot"
387 .XB "win(w,Windows)\0boot\0c0d0p0"
390 Windows is assumed to be in the first partition in the example above (c0d0p0).
393 to see if the menu looks right. If so hit '=' to start MINIX. Log in as
395 .SS "8. ADDING PROGRAMS AND SOURCES TO /usr"
398 command can also be used to add files from floppy sets to the system. The
400 (programs and stuff),
402 (system sources), and
405 are all installed relative to the
407 directory, so the command to use three times is
412 will ask for the size of data on the floppies, which is by default simply
413 the entire floppy. You will see some "Cannot make directory" errors
414 while extracting, as some directories already exist. Ignore these messages.
417 set if you want a working MINIX system,
419 if you want recompile the system or study it, and
421 if you also want the sources of the commands. On a disk space
422 starved machine you could opt to do without the commands sources, as they
423 are not absolutely necessary to understand MINIX.
425 If your machine does not have enough memory to run
427 then type these commands manually:
430 .XB "vol\0/dev/fd0 | zcat | tar\0xvfp\0\-"
434 is already present on the hard disk in an
436 or Windows partition, then this command can be used under MINIX-386 to
437 extract it to avoid the floppy detour:
440 .XB "mtools\0copy\0c0d0p0:USR.TAZ\0\- | setup\0/usr"
442 In 16-bit mode you don't have mtools, but maybe dosread will work:
445 .XB "dosread\0c0d0p0\0USR.TAZ | setup\0/usr"
447 The file doesn't have to be in the root directory of
450 .B "c0d1p0:/TMP/USR.TAZ"
451 would name a file on the first partition of the second hard disk in the
455 The /usr file system can also be filled through a network from a remote host
456 if MINIX if you can get networking going with the NET.TAZ supplement. Use
458 to install NET.TAZ (note that it goes into / instead of /usr), then
459 follow the instructions in
461 to configure TCP/IP and boot MINIX. There are now two ways to fill
462 /usr. One is to add the host name and login name of a remote host and a
465 as root, and to use the following command on the remote host:
467 .XB "rsh\0\-l\0root\0\fIminix-box\fP\0setup\0/usr\0< USR.TAZ"
471 to copy the data directly from a Web or FTP site by using these
472 commands under MINIX:
475 .XB "fetch\0-q\0-o\0-\0\fIurl\fP.../USR.TAZ | setup\0/usr"
477 The sources may be installed using exactly the same commands, but with
481 Note that this means that the sources must also be extracted relative to
484 A standalone machine will have to be given a name. As
488 .XB "echo\0\fIname\fB\0>/etc/hostname.file"
490 to change the host name of your machine to
492 .SS "10. ACTIVE ON BOOT"
493 You may want to make the MINIX partition active so that it is automatically
498 mark the primary partition that contains MINIX active. Using the menu you
499 made earlier you can boot either MINIX or Windows at a keypress. You can even
500 set timeouts. To boot MINIX automatically after 5 seconds:
502 .XB "main()\0{trap\05000\0minix;\0menu}"
506 for all the details on the monitor.
508 If you don't trust this then you can rig up a diskette that boots the MINIX
509 partition when left in the drive:
511 .XB "installboot\0\-m\0/dev/fd0\0/usr/mdec/jumpboot\0010"
513 The numbers 010 indicate the device (disk or partition) that must be booted,
516 in this example. Take the name of the device, and use the disk, partition
517 and subpartition numbers, or less. So c0d1p2s0 -> 120, c0d3 -> 3,
520 A crash course on the MINIX devices in
522 The first two hard disks are named
526 These devices address the entire hard disk, from the
527 first to the last byte. Each disk has four partitions, for disk 0 they are
533 And for disk 1 they are named
537 These partitions may contain file systems,
541 or Windows "C:" file system. MINIX can use these partitions
542 for file systems too, but you can also partition one of these "primary
543 partitions" into four so-called "subpartitions". The subpartitions of
551 The other partitions may have four subpartitions that are named in the same
554 for an elaborate description.
556 You may need to add devices to
558 because not all devices are present to keep down the clutter.
561 knows how to make devices, and
563 can tell you what an unknown device may be, or even what all devices in
565 may be if called without arguments. Devices are described in
567 with pointers to more specific pages.
569 The editors available are
576 editor. Of these editors only elvis can recover your file after a system
579 is available at installation time. (All you need to know about mined right
580 now is that CTRL-X gets you out of it.)
581 .SS "13. BOOT MONITOR VS. MINIX"
582 The Boot Monitor uses the
584 to address disks, so it has no idea of controllers, it just lumps everything
585 together and ignores controller numbers. So what the monitor thinks are
592 (IDE primary master),
594 (IDE secondary master), and
596 (SCSI disk at target 3).
597 One must keep this in mind when MINIX is installed on a disk other than the
598 very first. So if MINIX is installed in the third partition of the SCSI disk,
602 .B "rootdev=c1d3p2s0"
603 will tell MINIX where its root file system is.
604 .SS "14. NATIONAL KEYBOARDS"
607 contains keymap tables for several national keyboards. If you have a German
608 keyboard for instance, then
610 .XB "loadkeys\0/usr/lib/keymaps/german.map"
612 will load the German key translation table into the keyboard driver. Copy
615 once MINIX is installed on the hard disk, because having to type a key
616 sequence like one of these:
618 .XB "loadkezs\0\-usr\-lib\-kezmaps\-german.map"
619 .XB "loqdkeys\0=usr=lib=key,qps=french.,qp"
621 on a reboot gets a bit annoying after a while. Send corrections and new
622 keymaps to the person named below. (Do not send a Dutch keymap, buy
623 yourself a real keyboard instead.)
625 Below are a few useful suggestions. Some of the information can be of use
626 in other situations than described here.
627 .SS "15. VIRTUAL CONSOLES"
628 Hold down the ALT key and press the left or right arrow key, F1, or F2.
629 This switches the console between two login sessions. (Unless you have
630 an old mono adapter, because virtual consoles sit in video memory, and
631 a mono adapter only has memory for one.)
633 Note that kernel messages, including function key output, only appear on
634 the first console. This may be confusing, but it keeps the other consoles
636 .SS "16. LOW ON MEMORY"
637 The normal installation requires that you have enough memory for a large RAM
638 disk. You can still install MINIX normally if you either have a high density
639 diskette drive for a combined root+usr floppy, or you have two floppy drives
640 of at least 720 kb. Before booting you have to set the variable
644 This is slower then a RAM disk, but saves a lot of memory.
646 The automatic installation script knows how to handle this new situation.
647 If you install manually then you have to use
649 .XB "cpdir\0\-vx\0/\0/mnt"
651 to copy the root device to disk. When it is time to fill /usr and you only
652 have one floppy drive then hit DEL to get out of the installation script and
653 reboot as described in "TESTING". You can then finish the installation
656 See the XT640K.TXT file for more advice on small machines.
658 .SS "17. LOW ON MEMORY AND ONLY ONE 720 KB FLOPPY DRIVE"
659 If you only have one 720 kb floppy drive and your system is low on memory
660 then you can use the \s-2TINYROOT.MNX\s+2 boot image. This image contains a
661 small kernel with only the BIOS disk driver, and a small root file system.
662 You can use this disk to boot your machine. Use the normal \s-2ROOT.MNX\s+2 to
663 install the root file system. Keep booting your machine with
664 \s-2TINYROOT\s+2 until you have compiled a small kernel for your system.
667 boot variable to select the hard disk root file system. Do
669 use \s-2TINYROOT\s+2 for anything other than booting, always use
670 \s-2ROOT\s+2 when mentioned.
671 .SS "18. FLOPPY DRIVE 1 IS A HIGH DENSITY DRIVE"
672 If you would like to install from floppy drive 1 then you need to copy at
673 least one sector from the \s-2USR\s+2 image onto a diskette for drive 0.
674 The \s-2USR\s+2 bootstrap has been rigged to boot the other drive.
675 .SS "19. INSTALLING ON A SECOND HARD DISK"
676 MINIX doesn't care if it is installed on the second disk of a system with
677 two disks. The only problem is to get it booted. You can either rig up
678 a diskette to boot MINIX as shown earlier, or you can use the same trick
679 on the first disk. The command
681 .XB "installboot\0\-m\0/dev/c0d0\0/usr/mdec/jumpboot\01"
683 will lock the first disk into booting the second disk. Note that this
684 command modifies the disk outside a MINIX partition, overwriting a bit of
685 code that has likely been put there by Windows fdisk. First verify that the
686 Boot Monitor can boot a Windows partition, because then the MINIX master
687 bootstrap can do it too.
688 .SS "20. LOTS OF MEMORY ON A 286"
689 You will have a hard time making MINIX use up 3 MB memory. Memory you
690 can spare can be used for a "second level block cache" on the RAM disk. The
691 File System uses the second level cache to store copies of disk blocks that
692 are pushed out of the normal (primary) block cache. The size of the primary
693 cache is compiled into the FS server, but the size of the second level cache
696 boot variable. Set it to a number between 0 and 512. 512 kilobytes is
697 enough to keep most of the compiler cached.
698 .SS "21. LOTS OF MEMORY ON A 386+"
699 Processes can be as big as you would like on a 386, but in practice 4 MB is
700 a lot, and 8 MB is infinite.
701 The installation script sets up a second level cache for MINIX-386
702 of up to 1024 kilobytes. This is because the default file system cache
703 is only 80 kb. Your first point of call is to get rid of the poorly
704 performing second level cache by setting
706 to 0 and to assign the memory used by it to the
707 normal block cache by enlarging the appropriate
711 constants in <minix/config.h> with as much as you can spare. (1024 for
712 NR_BUFS is the minimum to keep
714 cached. 2048 is then a nice value for NR_BUF_HASH.)
715 Disable the second level cache, compile a new kernel, reboot and set
718 .SS "22. LOTS OF DISK SPACE"
719 The maximum file system size is 1 GB for MINIX-386 and 128 MB for
720 MINIX-86. (MINIX-86 can handle larger file systems, but
722 can't check them.) Note that a MINIX file system can only contain 65535
723 inodes (files), so the average file should be 16 kb to completely fill it.
724 It may be better to make two smaller file systems. Besides, fsck takes
725 forever on a large file system.
726 .SH SYSTEM ADMINISTRATION
727 The system has been set up with the idea that working as root is a bad thing
728 to do. As root you are in no way protected from doing stupid things. So
729 don't do development as root, but work as
731 Only in exceptional cases do you want to become root. Being root is fun for
732 wannabe hackers; administrators know better.
734 To make life easier for bin, some programs like
739 treat bin and other members of the operator group as special and allow them
740 the privileges of root. (One is an operator if one's
741 group id is zero.) Operators should share the shadow password of root by
744 in their password field. This way they all have one face (password)
745 to the outside world, forming no greater security risk than root alone.
747 The home directory of bin contains one important Makefile. You can use it
748 to recompile all the commands and libraries of the system. Type
750 to see the usage message. If you want to compile just one command then you
753 to do so. To put it in its proper place you have to type
755 Read the Makefiles in the
759 subdirectories to understand how everything is put together. If you are
762 may fail to traverse down the source tree and also compile things. You will
765 in each subdirectory. You can run make in /usr/src at the end to see if
766 you've missed something or not.
768 The shell used by MINIX is a minimal version of
770 the BSD shell. It has been modified to offer simple line editing using the
774 The kernel is not compiled from the master Makefile. To make a new kernel
775 you have to step into the
777 directory. There you can run four different make commands:
781 This makes all the different kernel parts and combines them in the file
786 First makes the image file and then copies it into the directory
788 If there are already two images in that directory then the newest image will
789 be removed to make space for this newer image. It is assumed that the
790 oldest image is the most stable system image, one that always works, and
791 that the newest image is experimental. Check beforehand what
793 contains before you run
795 Remove the oldest image if you want another image to become the stable
796 image. The Boot Monitor chooses the newest image in
798 to boot. You can use the monitor command
800 to view the images present, and set the
802 variable to the full name of the image you want to use instead if the newest
803 doesn't work. The images in
805 are named using the MINIX release and version numbers with an extra revision
806 number added to distinguish the images.
808 The first new kernel you would like to make is one configured for your
809 system. The kernel you are running now contains several drivers
810 you don't need, or may be missing drivers that you might want.
811 In <minix/config.h> you can find a number of
813 variables that can be set to
817 to include a particular driver. The full list of configurable parameters
818 and what they do are described in
820 It is invaluable in figuring out what to change and how in <minix/config.h>.
822 Configuring a new kernel is sometimes not enough to enable new devices, you
823 sometimes need to use the
825 command to make new device files in
827 For pseudo-ttys you also have to check if
829 mentiones the new devices.
831 New additions to the system can be made in the
833 tree. An empty directory tree has been set up for you and binaries and
834 manual pages are already in the search paths. You can make a new user entry
843 tells the time zone offset from the wall clock time to GMT. You have to
844 change it for your time zone. (See
847 The function keys produce debug dumps, showing various interesting data
848 about the system. F1 lists processes and F5 shows ethernet stats, which
849 may be of use now. Read
851 to know all the details of the screen and keyboard.
852 .SS "23. SYSTEM SHUTDOWN"
853 You can't just turn a MINIX system off. MINIX must be told to flush the
854 modified data in the file system cache first. The following
855 commands/keystrokes can be used to exit MINIX properly:
858 First alert all users and then all processes of the impending shutdown
859 then halt or reboot the system in one of various ways. See
863 Alert all processes of the system shutdown then reboot or halt.
865 .B \s-2CTRL\-ALT\-DEL\s+2
866 Halt the system by running
867 .BR "shutdown \-h now" .
869 MINIX halts by returning to the Boot Monitor, MINIX reboots by instructing
870 the monitor to reboot MINIX. (MINIX is just a subprocess to the monitor.)
871 Either halt MINIX and use monitor commands to escape MINIX, or use
875 When exiting MINIX running under DOS the Boot Monitor's
877 command will return you to the DOS prompt. The Boot Monitor and MINIX
878 are together just a pretty big DOS program as far DOS is concerned.
882 Honorary home directory of Andrew S. Tanenbaum. Doubles as the place where
883 the default setup for a new user is found.
901 "Operating Systems \- Design and Implementation 2/e" by Andrew S. Tanenbaum
902 and Albert S. Woodhull.
906 refers to a C language include file in /usr/include.
911 do not have the current directory in their program search path to avoid
912 executing programs left around by malicious people. This means that to run
914 from the current directory,
918 There are many PS/2 models, all different. Some will run MINIX, some won't,
919 some crippled if you lie to MINIX by setting
923 Almost no PS/2 has a standard disk, so setting
931 Except for the floppy driver, none of the DMA based drivers know about DMA
932 being limited to a 24 bits address, i.e. the first 16 MB. So under MINIX-386
933 you run a slight risk that a
937 command may use a buffer above 16 MB for reading or writing to a character
938 device. This only happens if the low 16 MB is taken by some huge processes,
939 and you have more than 16 MB, of course.
941 Kees J. Bot <kjb@cs.vu.nl>