⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usage.8

📁 操作系统设计与实现源码
💻 8
📖 第 1 页 / 共 3 页
字号:
.TH USAGE 8.SH NAMEusage \- installing and using Minix.SH DESCRIPTION.de SP.if t .sp 0.4.if n .sp...de XB	\" An example in bold print..RS.nf.ft B\&\\$1.ft R.fi.RE..This manual page describes the installation and use of Minix from aSystem Administrators point of view.  It contains an installation guide,instructions on how to do the initial configuration and some other info.Please read this document entirely before attempting to install Minix.The installation steps are in the proper order, but not all theinformation you may need is presented at the right moment.Other detailed information that may be useful can be found in.BR boot (8)and.BR hier (7)..SS "1. REQUIREMENTS"The minimum system Minix can be installed on comfortably is an IBM PC/ATor PS/2 with a 286 processor, 2 Mb memory, a 720 kb diskette drive, and 30Mb free space on an AT,.igPS/2,..ESDI, or SCSI hard disk (the latter controlled by an Adaptec 1540.)  Minixfor the 386 (Minix-386 for short) can be installed on a machine with atleast a 386sx processor and 3 Mb memory..SS "2. MINIX INSTALLATION BACKGROUND"The objective of the installation is to create a partition on your diskand to put Minix into it.  Minix really requires two partitions however, sothe single "primary" partition is split into two subpartitions.  The.B asubpartition will contain the root file system, and the.B csubpartition will contain the.B /usrfile system.  What MS-DOS calls"drives", i.e C:, D:, E:, Minix calls "file systems".  Minix does not usedrive letters, but requires that one file system is made a part of anotherfile system by "mounting" one on the other.  The "root" file system isalways present and starts with the directory "/", the root of the directorytree.  The root file system contains a few programs in.BR /bin ,device files in.BR /dev ,and configuration files in.BR /etc .This is just enough to get the system started.  Minix will soon extendits directory tree by mounting a file system on the.B /usrdirectory.  What is henceforth known as the /usr file system contains allMinix programs in.BR /usr/bin ,file system sources in.BR /usr/src ,etc, etc.The \s-2ROOT\s+2 image contains the complete Minix root file system, but\s-2USR\s+2 contains just a small subset of the /usr file system, with justenough utilities to install Minix.  The complete /usr file system issplit up into the \s-2USR.TAZ\s+2, \s-2SYS.TAZ\s+2 and \s-2CMD.TAZ\s+2archives that are installed later to fill /usr..PPLet's suppose your first hard disk, which hasdevice name.BR /dev/hd0 ,has MS-DOS already present in the first primary partition.RB ( /dev/hd1 ),and some free space left after that.  After Minix is installed in thatfree space the disk will look like this:.PP.ta +12n.nf.in +4n/dev/hd0	Whole hard disk #0.in +2n/dev/hd1	MS-DOS C: drive/dev/hd2	Minix primary partition.in +2n/dev/hd2a	Minix root partition/dev/hd2c	Minix /usr partition.in -8n.fi.PP/dev/hd0 is the sum of a partition table, /dev/hd1 and /dev/hd2.Likewise is /dev/hd2 the sum of a subpartition table, /dev/hd2a and/dev/hd2c.  Read the "DEVICES" sections for more information on Minixdevices..SS "3. INSTALLATION"You can install Minix automatically or manually as described the sectionsbelow.  The end result is the same, but manual installation allowsone to deviate from the preconfigured choices.  You may wish to read themanual pages of the programs used below before you start.  You may especiallywant to read.BR boot (8)if your machine is different from what the majority buys, because youmay need to set a few boot parameters to configure drivers.  To do this type.B ESCto get to the Boot Monitor prompt, set the appropriate variables, use.B saveto store the settings and.B menuto continue where you left off..PPTo install the system you need two diskettes: a bootable root diskette and adiskette full of binaries to use as.BR /usr .These diskettes are named.B \s-2ROOT\s+2and.BR \s-2USR\s+2 .These two diskettes may also be combined on a single high density diskette.In that case the \s-2USR\s+2 part is on the.B cpartition..PPInsert the \s-2ROOT\s+2 diskette, boot the machine and type '=' to the menu.The Minix kernel is loaded and takes control when you see the copyrightbanner.  After loading the root diskette into the RAM disk you will be askedto finish the name of the device to mount on.BR /usr .Type.BR fd0cfor a diskette that contains both \s-2ROOT\s+2 and \s-2USR\s+2, otherwisereplace \s-2ROOT\s+2 by \s-2USR\s+2 and type.BR fd0 .Login as.BR root ..SS "4. AUTOMATIC INSTALLATION"Type.B setupto start the installation script.  First it offers to install a nationalkeyboard map.  The names should be clear, except for.BR us-swap ,which swaps the CTRL and CAPS LOCK keys of a standard US style keyboardfor people who believe that the natural place of CTRL is next to A.The default suggested between [ and ] is the US standard keyboard..PPThe next thing to do is to make a partition, for this you are placed in apartition table editor named.BR part .This partition table editor is very easy to use (in the author's opinion),but you will probably hate it.  You can move all over the place with thearrow keys, change values, and make a mess of your partition table real quick.So if you get into trouble, type 'q' to quit, 'n' to not write the table,and RETURN to start over.  Use the '?' key to get help..PPWith the '+' and '\-' keys you can select the disk device to install on,probably.BR /dev/hd0 ,the first hard disk.  Type 'r' to load the partition table of the selecteddisk.  Either create one new partition by modifying a partition marked"None", or reuse an existing partition by changing its type to "MINIX" (hexcode 81).  The FIPS program can be used under MS-DOS to shrink an MS-DOSpartition.  FIPS splits the DOS partition in two, so one of the two can beused for Minix.  You have to be absolutely sure which one.  When in doubt,first use the FDISK program under DOS to delete the extra partition, andlet Minix part create a new one.  DO NOT use part to shrink an existingpartition!  Minix needs a partition of at least 20 Mb, but not largerthan 128 Mb (Minix-86) or 1 Gb (Minix-386).  The system needs30 Mb in compiled state..PPThe script then wants to know the name of the partition you've created, thisname is probably still visible on the screen (hd2, hd6, something likethat.)  The new partition table is reloaded into the disk driver, and thenew Minix partition is carved up into two subpartitions, a 1440 kb root andthe rest for /usr..PPAfter making /usr, it is immediately put to use to replace the installation/usr file system so that you can remove the \s-2USR\s+2 diskette and insertthe \s-2ROOT\s+2 diskette (unless they are one and the same).  The root filesystem is filled with the contents of the \s-2ROOT\s+2 diskette and slightlypatched up to work on the hard disk (/etc/fstab.).PPTo compute the size of the so-called "second level block cache" you areasked to specify the RAM size of your machine.  If you have plenty, i.e4 Mb or more then simply hit RETURN, otherwise enter the size of your systemRAM in kilobytes..PPYou can now skip the next section and move to "TESTING", but it may beinstructive to read it anyway..SS "5. MANUAL INSTALLATION"The instructions that follow are at a very low level and require you to bevery careful.  The big advantage is that you know precisely whattools have been used and how everything works.  The disadvantage is thatyou may easily make a mistake that either forces you to start over if youare lucky, or wipes out the contents of your hard disk if you are not.Only if you really want to do something different should you use a manualinstallation.  Slavishly following the steps shown below will only makeyou end up with the same result as an automatic installation..PPRun.B partto make partitions to load the system into.  The best thing to do is to makeone large primary partition of type "MINIX" and to carve this partition upinto three subpartitions for root and /usr.  The assumption is that you willuse the second partition on the first hard disk,.BR /dev/hd2 ,and that.B hd2ais the root subpartition and.B hd2cis /usr.  If you want to use the first partition onthe second hard disk for instance, then substitute hd6 and hd6[ac] for theabove.  On a \s-2SCSI\s+2 disk it will be /dev/sd2 for the second partitionon the disk at target 0.  See the section on devices below, and the manualpages of.BR part (8),.BR hd (4),and.BR sd (4).Start.B partand select the whole hard disk device (the "multiple of 5" device) that youwant to install Minix onto.  In our example it will be.BR /dev/hd0 ..PPUse.B partto make a single partition in the primary partition table of type "MINIX",then hit '>' on this new partition to make a subpartition table..PPFor the root subpartition you are advised to use 1440 kb exactly.  You canmake it larger if you want to, but it is advisable never to let the contentsoutgrow a floppy.  (The \s-2ROOT\s+2 diskette is a copy of a root filesystem, and will be used to fill your root subpartition.).PPThe second subpartition is either empty or a "scratch" partition.  Minix nolonger uses the.B bsubpartition for anything useful anymore, but it has become customary tohave root on.B aand /usr on.BR c .(You are free to ignore this convention, of course.).PPUse the rest of the partition for the /usr.B csubpartition..PPWhen you are done check that /dev/hd2a is active (the * after the partitionnumber) so you can boot from it later..PPIf your disk has bad blocks then don't put the root or scratch subpartitionon top of them.  Make sure the inode tables in the other partitions don'thave bad blocks either.  You can put the subpartitions out of order on thedisk if that helps.  Subpartition tables, other than the main partitiontable, are not sorted by the driver..PPAfter making the partitions you do not have to reboot.  The disk driverreloads the partition tables on the next access if the disk is not in use.(Open or mounted.).PPTo be able to boot from /dev/hd2a you must place a master bootstrap in/dev/hd2.  It has been placed there by.B partif it told you that it was creating a new partition table, but.PP.XB "installboot\0\-m\0/dev/hd2\0/usr/mdec/masterboot".RE.PPwill put it there for sure..PPYou will start by making a file system for /usr and filling it partially.This may seem to be out of order, but you can't insert the \s-2ROOT\s+2floppy right now..PP.XB "mkfs\0/dev/hd2c".XB "readall\0\-b\0/dev/hd2c | sh".XB "mount\0/dev/hd2c\0/mnt".XB "cpdir\0\-v\0/usr\0/mnt".PPThis will create a file system on /dev/hd2c, mount it on /mnt, and copy thecontents of the \s-2USR\s+2 floppy onto it.  The call to.B readallmarks bad blocks on the file system as unusable, you can omit this on adrive known to be spotless (\s-2IDE\s+2 or \s-2SCSI\s+2.).PPYou can now use the new /usr in place of the \s-2USR\s+2 floppy:.PP.XB "umount\0/dev/hd2c".XB "umount\0/dev/fd0\0\0\0\0\0# fd0c if combined".XB "mount\0/dev/hd2c\0/usr".PPThis little dance has freed up your floppy drive, so please remove the\s-2USR\s+2 diskette and replace it by the \s-2ROOT\s+2 diskette.  Make afile system for the root with at least 512 inodes (files), andfill it from the floppy:.PP.XB "mkfs\0\-i\0512\0/dev/hd2a"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -