📄 usage.8
字号:
.XB "mount\0/dev/fd0\0/fd0".XB "mount\0/dev/hd2a\0/mnt".XB "cpdir\0\-v\0/fd0\0/mnt".XB "umount\0/dev/fd0".PPRemove.B /mnt/etc/issueto get rid of the "use setup" message that greets you when you boot, andedit the file.B /mnt/etc/fstabto name the devices Minix has been installed on. In our example itshould look like this:.PP.XB "root=/dev/hd2a".XB "usr=/dev/hd2c".PPUnmount the new root:.PP.XB "umount\0/dev/hd2a".PPMake it bootable:.PP.XB "installboot\0\-d\0/dev/hd2a\0/usr/mdec/bootblock\0boot".PPThe automatic script would now set the.B rootdevand.B ramimagedevboot variables. You can do this now using the.B edparamscommand, but it is easier to postpone it until the testing phase. Thesettings should be:.PP.XB "rootdev=hd2a".XB "ramimagedev=hd2a".SS "6. TESTING"By now a new Minix system is present on your hard disk. Time to see ifit works. Leave the \s-2ROOT\s+2 diskette in the drive and type.BR halt .You are now going to use the power of the Boot Monitor on the diskette toboot the Minix partition on the hard disk. Use the monitor command.B boot hd2to boot the primary partition Minix has been installed in. (It is "hd2" inour example.) For a \s-2SCSI\s+2 disk you will have to use a 'hd' name too.The monitor uses the BIOS, so you will have to treat it as a "normal" diskat this point..PPThe hard disk bootstrap is now showing the menu again. You can type '='to start Minix, but you probably want to change the boot parameters.Hit.B ESConce more to get to the command prompt. The command.B setshows what the current parameters are. Here is an example that shows howto make a menu to either start Minix or boot MS-DOS:.PP.XB "minix(=,Minix)\0{boot}".XB "dos(d,MS-DOS)\0{boot\0hd1}".XB "save".PPMS-DOS is assumed to be in the first partition in the example above (hd1).When finished type.B menuto see if the menu looks right. If so hit '=' to start Minix..SS "7. ADDING PROGRAMS AND SOURCES TO /usr"The.B setupcommand can also be used to add files from floppy sets to the system. The.B \s-2USR.TAZ\s+2(programs and stuff),.B \s-2SYS.TAZ\s+2(system sources), and.B \s-2CMD.TAZ\s+2(commands sources)are all installed relative to the.B /usrdirectory, so the command to use three times is.PP.XB setup\0/usr.PP.B Setupwill ask for the size of data on the floppies, which is by default simplythe entire floppy. Don't worry if you see a few "File exists" errorswhile extracting, as some directories already exist. You need the.B \s-2USR.TAZ\s+2set if you want a working Minix system,.B \s-2SYS.TAZ\s+2if you want recompile the system or study it, and.B \s-2CMD.TAZ\s+2if you also want the sources of the simple commands. On a disk spacestarved machine you could opt to do without the commands sources, as theyare not absolutely necessary to understand Minix..PPIf your machine does not have enough memory to run.B setup\0/usrthen type these commands manually:.PP.XB "cd\0/usr".XB "vol\0/dev/fd0 | uncompress | tar\0xvfp\0\-".SS "8. NAMES"A standalone machine will have to be given a name. As.B roottype.PP.XB "echo\0\fIname\fB\0>/etc/hostname.file".PPto change the host name of your machine to.IR name ..SS "9. ACTIVE ON BOOT"You may want to make the Minix partition active so that it is automaticallybooted. With DOS.B fdiskor Minix.BR part ,mark the primary partition that contains Minix active. Using the menu youmade earlier you can boot either Minix or DOS at a keypress. You can evenset timeouts. To boot Minix automatically after 5 seconds:.PP.XB "main()\0{trap\05000\0minix;\0menu}".PPSee.BR monitor (8)for all the details on the monitor..PPIf you don't trust this then you can rig up a diskette that boots the Minixpartition when left in the drive:.PP.XB "installboot\0\-m\02\0/dev/fd0\0/usr/mdec/masterboot".PPThe number 2 indicates the hard disk partition that must be booted, you canuse the numbers 1 to 9 for hd1 to hd9..SS "10. DEVICES"A crash course on the Minix devices in.BR /dev :The two hard disks are named.BR hd0and.BR hd5 .These "multiple of five" devices address the entire hard disk, from thefirst to the last byte. Each disk has four partitions, for disk 0 they are.BR hd1 ,.BR hd2 ,.BR hd3 ,and.BR hd4 .And for disk 1 they are named.BR hd6 ,.BR hd7 ,.BR hd8 ,and.BR hd9 .These partitions may contain file systems,.B hd1often contains the MS-DOS "C:" file system. Minix can use these partitionsfor file systems too, but you can also partition one of these "primarypartitions" into four so-called "subpartitions". The subpartitions of.B hd1are named.BR hd1a ,.BR hd1b ,.BR hd1c ,and.BR hd1d .The other partitions may have four subpartitions that are named in the sameway by adding a letter from.B ato.BR d .So one disk may have four partitions, and 16 subpartititions total. SCSIdisks are named in the same way, from.BR sd0to.BR sd39dfor all possible devices for all eight SCSI targets.The two floppy disks are.BR fd0and.BR fd1 .Each may have four partitions named.BR fd0a ,.BR fd0b ", ...".BR fd1d .The command.B MAKEDEVknows how to make devices, and.B DESCRIBEcan tell you what an unknown device may be, or even what all devices in.B /devmay be if called without arguments. Devices are described fully in.BR dev (4),and in the device specific manual pages like.BR fd (4)and.BR hd (4)..SS "11. EDITORS"The editors available are.B elvis(a.B viclone),.B elle(a simple.B emacsclone),and the old Minix.B minededitor. Of these editors only elvis can recover your file after a systemcrash. Only.B minedis available at installation time. (All you need to know about mined rightnow is that CTRL-X gets you out of it.).SS "12. INSTALLING ON A SCSI DISK"Using a disk other than a.B hddisk complicates things a bit. The Boot Monitor uses the BIOS, so it namesall disks with.B hdnames. So it is.B boot hd1to boot partition 1, and.B "ramimagedev=sd2a"to tell Minix its root partition. If you have both a normal and a SCSI diskthen the disks may be.B hd0and.B hd5to the Monitor, and.B hd0and.B sd0to Minix..SS "13. NATIONAL KEYBOARDS"The directory.B /usr/lib/keymapscontains keymap tables for several national keyboards. If you have a Germankeyboard for instance, then.PP.XB "loadkeys\0/usr/lib/keymaps/german.map".PPwill load the German key translation table into the keyboard driver. Copythe map to.B /etc/keymaponce Minix is installed on the hard disk, because having to type a keysequence like one of these:.PP.XB "loadkezs\0\-usr\-lib\-kezmaps\-german.map".XB "loqdkeys\0=usr=lib=key,qps=french.,qp".PPon a reboot gets a bit annoying after a while. Send corrections and newkeymaps to the person named below. (Do not send a Dutch keymap, buyyourself a real keyboard instead.).SH SUGGESTIONSBelow are a few useful suggestions. Some of the information can be of usein other situations than described here..SS "14. VIRTUAL CONSOLES"Hold down the ALT key and press the left or right arrow key, F1, or F2.This switches the console between two login sessions. (Unless you havean old mono adapter, because virtual consoles sit in video memory, anda mono adapter only has memory for one.).PPNote that kernel messages, including function key output, only appear onthe first console. This may be confusing, but it keeps the other consolesclean..SS "15. LOW ON MEMORY"The normal installation requires that you have enough memory for a large RAMdisk. You can still install Minix normally if you either have a high densitydiskette drive for a combined root+usr floppy, or you have two floppy drivesof at least 720 kb. Before booting you have to set the variable.B rootdevto the same value as.BR ramimagedev .This is slower then a RAM disk, but saves a lot of memory..PPThe automatic installation script knows how to handle this new situation.If you install manually then you have to use.PP.XB "cpdir\0\-vx\0/\0/mnt".PPto copy the root device to disk. When it is time to fill /usr and you onlyhave one floppy drive then hit DEL to get out of the installation script andreboot as described in "TESTING". You can then finish the installationmanually..SS "16. LOW ON MEMORY AND ONLY ONE 720 KB FLOPPY DRIVE"If you only have one 720 kb floppy drive and your system is low on memorythen you can use the \s-2TINYROOT\s+2 boot image. This image contains asmall kernel with only the BIOS disk driver, and a small root file system.You can use this disk to boot your machine. Use the normal \s-2ROOT\s+2 toinstall the root file system. Keep booting your machine with\s-2TINYROOT\s+2 until you have compiled a small kernel for your system.Use the.B rootdevboot variable to select the hard disk root file system. Do.B notuse \s-2TINYROOT\s+2 for anything other than booting, always use\s-2ROOT\s+2 when mentioned..SS "17. FLOPPY DRIVE 1 IS A HIGH DENSITY DRIVE"If you would like to install from floppy drive 1 then you need to copy atleast one sector from the \s-2USR\s+2 image onto a diskette for drive 0.The \s-2USR\s+2 bootstrap has been rigged to boot the other drive..SS "18. INSTALLING ON A SECOND HARD DISK"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -