home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / misc / linhowto.zip / INSTALL.HOW < prev    next >
Text File  |  1993-10-08  |  27KB  |  604 lines

  1. Newsgroups: comp.os.linux.announce,comp.os.linux.help,comp.os.linux.admin,news.answers,comp.answers
  2. From: mdw@sunsite.unc.edu (Matt Welsh)
  3. Subject: Linux Installation HOWTO
  4. Keywords: Linux, HOWTO, FAQ, installation
  5. Summary: How to obtain and install Linux, the free UNIX implementation for
  6.      Intel 80386/80486 based machines.
  7. Organization: Linux. It's not just for breakfast anymore.
  8. Followup-To: poster
  9. Approved: linux-announce@tc.cornell.edu (Matt Welsh)
  10.  
  11. Archive-name: linux/howto/installation
  12. Last-modified: 23 August 1993
  13.  
  14. The Linux Installation HOWTO
  15. by Matt Welsh, <mdw@sunsite.unc.edu>
  16. v1.1, Last Modified 23 August 1993
  17. ----------------------------------------------------------------------------
  18.  
  19. This document describes how to obtain and install the Linux software. 
  20. It is the first document which a new Linux user should read to get
  21. started. 
  22.  
  23. 0. Introduction
  24.     Linux is a freely-distributable implementation of UNIX for 80386 and
  25.     80486 machines. It supports a wide range of software, including
  26.     X Windows, Emacs, TCP/IP networking (including SLIP), the works. 
  27.     This document assumes that you have heard of and know about Linux, 
  28.     and just want to sit down and install it. 
  29.  
  30.  
  31. 0.1 Other sources of information
  32.     If you have never heard of Linux before, there are several sources
  33.     of basic information about the system. One is the Linux FAQ,
  34.     available from sunsite.unc.edu:/pub/Linux/docs. This directory
  35.     contains many other documents about Linux, including the Linux 
  36.     INFO-SHEET and META-FAQ, both of which are good introductory documents
  37.     about Linux. Also take a look at the USENET newsgroups comp.os.linux 
  38.     and comp.os.linux.announce. 
  39.  
  40.     Another source of online Linux documentation is the Linux HOWTO
  41.     archive, on sunsite.unc.edu:/pub/Linux/docs/HOWTO. The file INDEX
  42.     in that directory explains what Linux HOWTOs are available.
  43.  
  44.     The Linux Documentation Project is writing a set of manuals and books
  45.     about Linux, all of which are freely distributable on the net. 
  46.     The directory /pub/Linux/docs/LDP on sunsite.unc.edu contains the
  47.     current set of LDP manuals. 
  48.  
  49.     The book ``Linux Installation and Getting Started'' is a complete
  50.     guide to getting and installing Linux, as well as how to use the 
  51.     system once you've installed it. It contains a complete tutorial
  52.     to using and running the system, and much more information than
  53.     is contained here. This HOWTO is simply a condensation of some of
  54.     the most important information in that book. You can get
  55.     ``Linux Installation and Getting Started'' from sunsite.unc.edu in
  56.     /pub/Linux/docs/LDP/install-guide.
  57.  
  58.  
  59. 0.2 New versions of this document
  60.     New versions of the Linux Installation HOWTO will be periodically
  61.     posted to comp.os.linux.announce, comp.os.linux, and news.answers.
  62.     They will also be uploaded to various Linux FTP sites, including 
  63.     sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  64.  
  65.  
  66. 0.3 Feedback
  67.     If you have questions or comments about this document, please feel
  68.     free to mail the author, Matt Welsh, at mdw@sunsite.unc.edu. I welcome
  69.     any suggestions, criticism, cheques, or money orders. If you find
  70.     a mistake with this document, please let me know so I can correct it
  71.     in the next version. Thanks.
  72.  
  73.  
  74. 1. Hardware Requirements
  75.     What kind of system is needed to run Linux? Any ISA, EISA or VESA
  76.     Local Bus 80386 or 80486 system will do. Currently, the MicroChannel
  77.     (MCA) architechture (found on IBM PS/2 machines) is not supported.
  78.     Any CPU from the 386SX to the 486DX2 will work. You do not need a
  79.     math coprocessor, although it is nice to have one.
  80.  
  81.     You need at least 4 megabytes of memory in your machine. Technically,
  82.     Linux will run with only 2 megs, but most installations and software
  83.     require 4. The more memory you have, the happier you'll be. 
  84.  
  85.     Of course, you'll need a hard drive and an AT-standard drive 
  86.     controller. All MFM, RLL, and IDE drives and controllers should work. 
  87.     Many SCSI drives and adaptors are supported as well; the Linux FAQ 
  88.     (see above) contains more inforamation on SCSI.
  89.  
  90.     Linux can actually run on a single 5.25" HD floppy, but that's only 
  91.     useful for installation and maintenance. 
  92.  
  93.     Free space on your hard drive is needed as well. The amount of
  94.     space needed depends on how much software you plan to install. Most
  95.     installations require somewhere in the ballpark of 40 to 80 megs. 
  96.     This includes space for the software, swap space (used as virtual
  97.     RAM on your machine), and free space for users, and so on.
  98.  
  99.     It's conceiveable that you could run a minimal Linux system in 10
  100.     megs or less, and it's conceiveable that you could use well over
  101.     100 megs or more for all of your Linux software. The amount varies
  102.     greatly depending on the amount of software you install and how
  103.     much space you require. More about this later. 
  104.  
  105.     Linux will co-exist with other operating systems, such as MS-DOS,
  106.     Microsoft Windows, or OS/2, on your hard drive. (In fact you can even
  107.     access MS-DOS files and run some MS-DOS programs from Linux.)
  108.     In other words, when partitioning your drive for Linux, MS-DOS
  109.     or OS/2 live on their own partitions, and Linux exists on its
  110.     own. We'll go into more detail later.
  111.  
  112.     You also need a Hercules, CGA, EGA, VGA, or Super VGA video card and 
  113.     monitor.  In general, if your video card and monitor work under MS-DOS
  114.     then it should work under Linux. However, if you wish to run
  115.     X Windows, there are other restrictions on the supported video 
  116.     hardware. The Linux FAQ contains more information about X Windows.
  117.  
  118.     In all, the suggested setup for Linux is not much more than is
  119.     required for most MS-DOS or MS Windows systems sold today. If you
  120.     have a 386 or 486 with at least 4 megs of RAM, then you'll be 
  121.     happy running Linux. Linux does not require huge amounts of
  122.     diskspace, memory, or processor speed. I run Linux on a crappy
  123.     386/16 MHz (the slowest machine you can get) with 4 megs of RAM, 
  124.     and am quite happy.
  125.  
  126.  
  127. 2. Getting Linux
  128.  
  129. 2.1 Linux Distributions
  130.     Before you can install Linux, you need to decide on one of the
  131.     "distributions" of Linux which are available. There is no single,
  132.     standard release of the Linux software---there are many such releases.
  133.     Each release has its own documentation and installation instructions.
  134.  
  135.     The most popular release of Linux is the Softlanding Linux System
  136.     release, or SLS. Most Linux users worldwide use SLS---it is one
  137.     of the most complete and easy-to-install releases available.
  138.     It consists of about 30 disks, divided up into a number of
  139.     disk "series" which contain differnt types of software. For 
  140.     example, the c disk series contains compilers and programming
  141.     utilities, and the x disk series contains the X Windows software.
  142.     You pick and choose which disks and packages you want to install.
  143.  
  144.     This document focuses on getting and installing the SLS release,
  145.     because it is so popular. Information on other releases can be
  146.     found in the Linux Installation and Getting Started manual from
  147.     the LDP. You can also find other releases of Linux on various
  148.     FTP sites, including sunsite.unc.edu:/pub/Linux/distributions.
  149.  
  150.     The instructions here should be generasl enough to be applicable to
  151.     releases other than SLS. I hate to be biased towards a single
  152.     release, but I don't have time to keep up with them all!
  153.  
  154.  
  155. 2.2 SLS Space Requirements
  156.     The following series of SLS disks are available.
  157.  
  158.         a1-aN: The minimal base system
  159.         b1-bN: Base system extras, like man pages, emacs etc.
  160.         c1-cN: The compiler(s), gcc/g++/p2c/f2c
  161.         x1-xN: The X-windows distribution (+idraw and doc)
  162.         t1-tN: TeX (document processing)
  163.         s1-sN: Source code for critical system components
  164.         d1-dN: Documentation for various things
  165.  
  166.     You must get the "a" series diskettes; the rest are optional.
  167.     I suggest at least installing the a, b, and c series, as well
  168.     as the x series if you plan to run X Windows.
  169.  
  170.     Approximate disk space requirements are:
  171.  
  172.         Tiny base system:       15 Meg  (Only a)
  173.         Main base system:       45 Meg  (a, b and c)
  174.         Main base system + X11: 70 Meg  (a, b, c and x)
  175.         Full system:            90 Meg  (a, b, c, d, s, t and x)
  176.  
  177.  
  178. 2.3 Getting the SLS Release from the Internet
  179.     The SLS release of Linux may be found on any number of FTP sites
  180.     worldwide. The Linux META-FAQ lists several of the Linux FTP
  181.     sites; we suggest that you try to find the software on the FTP
  182.     site nearest you, to reduce net traffic. However, two of the major
  183.     Linux FTP sites are sunsite.unc.edu and tsx-11.mit.edu.
  184.  
  185.     The SLS release may be found on
  186.         sunsite.unc.edu:/pub/Linux/SLS
  187.     as well as
  188.         tsx-11.mit.edu:/pub/linux/packages/SLS
  189.  
  190.  
  191. 2.3.1 Downloading the files
  192.     You need to download the following files. Make sure that you use
  193.     binary mode when FTPing these files!
  194.  
  195.     * READ.ME, RELEASE, and SLS.FAQ. These files are text files giving
  196.       up-to-date information on the latest release of SLS.
  197.  
  198.     * a1.3 or a1.5. These are binary images of the SLS "a1" boot disk.
  199.       If you have a 3.5" boot floppy drive on your system, get a1.3. 
  200.       If you have a 5.25" boot drive, get a1.5. 
  201.  
  202.     * rawrite.exe. This is an MS-DOS program used to create the SLS
  203.       a1 disk from the a1.3 or a1.5 image. On tsx-11.mit.edu, this
  204.       program is found in 
  205.         /pub/linux/dos_utils/rawrite.exe
  206.       And on sunsite.unc.edu, it is found in
  207.         /pub/Linux/system/Install/rawrite2.exe
  208.  
  209.       (Note that "rawrite2.exe" is a newer version of rawrite which is
  210.       faster, but doesn't work on all drives. If you have problems with
  211.       it, try the other version.)
  212.  
  213.     * The files in the directories a2, a3, and a4. These files will
  214.       be copied later to MS-DOS disks; they make up the a2, a3, and a4
  215.       disks in the SLS series. When downloading these files, keep them
  216.       in separate directories; that is, don't mix the a2 files up with
  217.       the a3 files, and so on.
  218.  
  219.       Make sure that you get the file "diska2", "diska3", and so on on
  220.       each disk. In FTP, if you use "mget *.*", you will probably
  221.       miss files without a "." in the filename. Therefore, use "mget *"
  222.       to get all files.
  223.  
  224.     * Files in the directories b1, b2, etc., depending on what disk
  225.       series you are installing. For example, if you are installing the
  226.       'b' disk series, get the files in the directories b1 through b7.
  227.       As with a2-a4, above, be sure to keep the files in separate 
  228.       directories when you download them.
  229.  
  230. 2.3.2 Making the disks
  231.     Once you have the files downloaded, you need to create the install
  232.     disks. The a1 disk needs to be the type of disk that you boot from;
  233.     i.e., either a high-density 3.5" disk or a high-density 5.25"
  234.     disk. The disk must be MS-DOS formatted. Also be sure to use a
  235.     brand-new floppy if possible; bad blocks on the floppy will cause
  236.     you much trouble later.
  237.  
  238.     To create the a1 disk, run the "rawrite" program from MS-DOS. It 
  239.     will prompt you for the file to write to the disk (such as a1.3
  240.     or a1.5) and the disk to write it to (such as A: or B:). 
  241.     After the disk has been written, it will no longer be recognized
  242.     by MS-DOS; it is complete overlaid with the SLS a1 image.
  243.  
  244.     To create the rest of the SLS, disks, simply use the MS-DOS
  245.     "copy" command. All of the rest of the SLS install disks must
  246.     be of the same type (either HD 3.5" or HD 5.25"), but they do not
  247.     need to be the same type as the a1 disk. All of the disks must
  248.     be MS-DOS formatted before you begin.
  249.  
  250.     For example, to create the a2 disk, simply copy the files from 
  251.     the directory "a2" to the floppy, with the command
  252.         C:\> copy a2\*.* A:
  253.  
  254.     Do likewise for every disk that you downloaded.
  255.  
  256.     NOTE: It is possible to install SLS from the hard drive. If you
  257.     have all of the SLS disk images (a2, a3, a4, and so on) in the
  258.     directory "\install" on the MS-DOS partition on your drive, you 
  259.     can install from there (and you don't need to copy all of the files 
  260.     to floppies). For example, the a2 files need to be in the directory 
  261.     C:\install\a2, the a3 files in C:\install\a3, and so on. However, 
  262.     you do still need to make the a1 disk with rawrite, as explained 
  263.     above.
  264.  
  265.  
  266. 2.4 Getting the SLS release via mail
  267.     SLS is available from the address below for a $3.50/disk US 
  268.     ($4.50/disk Canadian) copying charge.  Add $1.00/disk for 3.5" 
  269.     disks, and $15.00 for shipping and handling. Mail payment, either 
  270.     cheque or money order, in advance, to Softlanding. Visa and 
  271.     Mastercard are now also accepted, Because people keep asking about 
  272.     prices, Softlanding has provided this commonly ordered configurations 
  273.     price sheet:
  274.  
  275.         NAME #DISKS  SERIES        5 1/4 DISKS   3 1/2 DISKS
  276.         -------------------------------------------------------
  277.         TINY  4      a             US $29.00     US $33.00
  278.         BASE  17     a,b,c,d,s     US $74.50     US $91.50 
  279.         MAIN  24     a,b,c,x       US $99.00     US $123.00 
  280.         FULL  30     a,b,c,x,d,s,t US $120.00    US $150.00 
  281.  
  282.     When ordering, ensure that you specify the bootdisk type (3.5 or 
  283.     5.25). Softlanding is also now offering support subscriptions for 
  284.     SLS. Individual support, (one user, one machine) is $100.00 per 
  285.     year. Group support, primarily for resellers and corporate sites 
  286.     is $1000.00 per year. CDROM ($99) and QIC-150 tape ($150) also 
  287.     available.
  288.  
  289.     Quite a few people distribute SLS and other Linux distributions
  290.     via mail for other prices; watch comp.os.linux.announce for
  291.     details.
  292.  
  293.  
  294. 3. Installing the Software
  295.  
  296. 3.1 Repartitioning 
  297.     Before you can install the Linux software, you need to repartition
  298.     your drive to make space for Linux. On most systems, your drive
  299.     is already dedicated to partitions for MS-DOS, OS/2, and so on.
  300.     You need to resize these partitions in order to make space for
  301.     Linux.
  302.  
  303.     The problem with resizing partitions is that there is no way to
  304.     do it (easily) without deleting the data on those partitions. 
  305.     Therefore, you will need to make a full backup of your system before
  306.     repartitioning. In order to resize a partition, we simply delete
  307.     the partition(s), and re-create them with smaller sizes. 
  308.  
  309.     NOTE: There is a non-destructive disk repartitioner available for
  310.     MS-DOS, called FIPS. Look on sunsite.unc.edu in the directory
  311.     /pub/Linux/system/Install. With FIPS, a disk optimizer, and a little 
  312.     bit of luck, you should be able to resize MS-DOS partitions without 
  313.     destroying the data on them.
  314.  
  315.     If you're not using FIPS, however, the classic way to modify
  316.     partitions is with the program "fdisk". For example, let's say
  317.     that you have an 80 meg hard drive, dedicated to MS-DOS. You'd
  318.     like to split it in half---40 megs for MS-DOS and 40 megs for
  319.     Linux. In order to do this, you need to run "fdisk" under MS-DOS,
  320.     delete the 80 meg MS-DOS partition, and re-create a 40 meg
  321.     MS-DOS partition in its place. You can then format the new partition
  322.     and reinstall your MS-DOS software from backups.
  323.  
  324.     Use of MS-DOS "fdisk" should be self-explanatory. The mechanism 
  325.     used to repartition for OS/2 and other operating systems is similar.
  326.  
  327.  
  328. 3.2 Creating partitions for Linux
  329.     After repartitioning your drive, you need to create partitions
  330.     for Linux. Linux will require at least two partitions on your 
  331.     drive: one for the software itself, and one for swap space. 
  332.     
  333.     (You can create multiple filesystems for Linux, each one on its own 
  334.     partition. If you have previous UNIX experience, you will know how
  335.     to creatively partition your drive. However, most users simply use 
  336.     one large root filesystem for all of the Linux software.)
  337.  
  338.     In order to create these partitions, first boot the SLS a1 disk.
  339.     At the "LILO" prompt, press <ctrl> or <alt> to get a boot menu.
  340.     Follow the instructions there. In mose cases, all you need to
  341.     do is press <return>, unless you want to boot without the ramdisk.
  342.  
  343.     After the system boots, login as "root" (no password). If you login 
  344.     as "install" instead, you will be given an installation menu, 
  345.     which will basically let you execute the steps below. However, for
  346.     this document, we will show you how to run the same commands by
  347.     hand.
  348.  
  349.  
  350. 3.2.1 Using fdisk
  351.     After logging in as root, run the command
  352.         fdisk <drive>
  353.     where <drive> is the name of the drive that you wish to create
  354.     Linux partitions on. Hard drive device names are:
  355.  
  356.         /dev/hda    First IDE drive
  357.         /dev/hdb    Second IDE drive
  358.         /dev/sda    First SCSI drive
  359.         /dev/sdb    Second SCSI drive
  360.  
  361.     ...and so on. For example, to create Linux partitions on the
  362.     first SCSI drive in your system, use the command
  363.         fdisk /dev/sda
  364.  
  365.     If you use "fdisk" without an argument, it will assume /dev/hda.
  366.  
  367.     Use of fdisk is simple. The command "p" displays your current
  368.     partition table. "n" creates a new partition, and "d" deletes
  369.     a partition. 
  370.  
  371.     To Linux, partitions are given a name based on the drive which
  372.     they belong to. For example, the first partition on /dev/hda is
  373.     /dev/hda1, the second is /dev/hda2, and so on.
  374.  
  375.     NOTE: You should not create or delete partitions for operating
  376.     systems other than Linux with Linux fdisk. That is, don't create
  377.     or delete MS-DOS partitions with this version of fdisk; use MS-DOS's
  378.     version of "fdisk" to do that. If you try to create MS-DOS partitions 
  379.     with Linux fdisk, chances are MS-DOS will not boot correctly.
  380.     
  381.     Here's an example of using fdisk. Here, we have a single
  382.     MS-DOS partition using 61693 blocks on the drive, and the
  383.     rest of the drive is free for Linux. We will create two Linux
  384.     partitions; one for swap, and one for the root filesystem.
  385.  
  386.     First, we use the p command to display the current partition table.
  387.     As you can see, /dev/hda1 (the first partition on /dev/hda) is
  388.     a DOS partition of 61693 blocks. (1 block == 1024 bytes). 
  389.  
  390.     ----------------------------------------------------------------------
  391.      Command (m for help):   p
  392.      Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders 
  393.      Units = cylinders of 608 * 512 bytes
  394.  
  395.           Device Boot  Begin   Start     End  Blocks   Id  System
  396.        /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  397.  
  398.      Command (m for help):
  399.     ----------------------------------------------------------------------
  400.  
  401.     Next, we use the n command to create a new partition. The root
  402.     partition will be 80 megs in size.
  403.  
  404.     ----------------------------------------------------------------------
  405.      Command (m for help):  n 
  406.      Command action 
  407.         e   extended 
  408.         p   primary partition (1-4)
  409.          p
  410.     ----------------------------------------------------------------------
  411.  
  412.     A primary partition is simply one of the 4 partitions on your drive.
  413.     An extended partition allows you to create multiple logical partitions 
  414.     within it; this allows you to go over the four-partition limit on 
  415.     the drive. In most cases, you should only use primary partitions 
  416.     unless you need more than 4 partitions on a drive.
  417.  
  418.     ----------------------------------------------------------------------
  419.      Partition number (1-4): 2
  420.      First cylinder (204-683):  204
  421.      Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  422.     ----------------------------------------------------------------------
  423.  
  424.     The first cylinder should be the cylinder AFTER where the last
  425.     partition left off. In this case, /dev/hda1 ended on cylinder 203,
  426.     so we start the new partition at cylinder 204.
  427.  
  428.     As you can see, if we use the notation "+80M", it specifies a
  429.     partition of 80 megs in size. Likewise, the notation "+80K" would
  430.     specify an 80 kilobyte partition, and "+80" would specify just an
  431.     80 byte partition (not really possible since partitions must be
  432.     at least 1 block in size).
  433.  
  434.     ----------------------------------------------------------------------
  435.      Warning: Linux cannot currently use 33090 sectors of this partition
  436.     ----------------------------------------------------------------------
  437.  
  438.     If you see this warning, you can ignore it. It is left over from an
  439.     old restriction that Linux filesystems could only be 64 megs in
  440.     size. However, with newer filesystem types, that is no longer the
  441.     case... partitions can now be up to 4 terabytes in size. 
  442.  
  443.     Next, we create our 10 meg swap partition, /dev/hda3.
  444.  
  445.     ----------------------------------------------------------------------
  446.      Command (m for help): n
  447.      Command action 
  448.         e   extended 
  449.         p   primary partition (1-4) 
  450.      p
  451.  
  452.      Partition number (1-4): 3
  453.      First cylinder (474-683):  474
  454.      Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  455.     ----------------------------------------------------------------------
  456.  
  457.     And, finally, we display the contents of the partition table. Be
  458.     sure to write down the information here, especially the size of 
  459.     each partition in blocks. You need this information later.
  460.  
  461.     ----------------------------------------------------------------------
  462.      Command (m for help): p
  463.      Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders 
  464.      Units = cylinders of 608 * 512 bytes
  465.  
  466.           Device Boot  Begin   Start     End  Blocks   Id  System
  467.        /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  468.        /dev/hda2         204     204     473   82080   81  Linux/MINIX
  469.        /dev/hda3         474     474     507   10336   81  Linux/MINIX
  470.     ----------------------------------------------------------------------
  471.  
  472.     To quit fdisk and save the changes to the partition table, use the
  473.     "w" command. To quit fdisk without making any changes, use the "q"
  474.     command instead.
  475.  
  476.  
  477. 3.2.2 Rebooting the system
  478.     After running fdisk and creating Linux partitions, reboot the system
  479.     (again with the SLS a1 disk), and login as root. It is important to
  480.     reboot after modifying the partition table, because the kernel only
  481.     detects partition sizes at boot time.
  482.  
  483.  
  484. 3.3 Creating filesystems and swap space
  485.     After rebooting the system, you need to prepare the filesystems and
  486.     swap space on the new partitions.
  487.  
  488. 3.3.1 Using mkswap
  489.     First, the swap space. For this we use the command
  490.         mkswap -c <partition> <size> 
  491.     where <partition> is the partition name, such as /dev/hda3, and
  492.     <size> is the size of the partition in blocks. 
  493.  
  494.     For example, if you created a swap partition on /dev/hda3 of
  495.     size 10336 blocks, use the command
  496.         mkswap -c /dev/hda3 10336
  497.     The -c option tells mkswap to check for bad blocks on the 
  498.     partition when preparing the swap space. If you see any "read_intr"
  499.     error messages during the mkswap operation, this means that
  500.     bad blocks were found (and flagged). So you can ignore these errors.
  501.  
  502.     To enable swapping on the new device, use the command
  503.         swapon <partition>
  504.     For example, for our swap space on /dev/hda3, we use
  505.         swapon /dev/hda3
  506.  
  507.     We should now be swapping with 10 megs of extra virtual RAM on 
  508.     /dev/hda3.
  509.  
  510. 3.3.2 Using mke2fs
  511.     Next, we need to prepare the root filesystem, using the command
  512.     mke2fs. This creates an "ext2fs" type filesystem, which is just one
  513.     of the several types of filesystems available. ext2fs is the most 
  514.     flexible and popular filesystem type to use; it allows filesystems
  515.     of up to 4 terabytes in size and 256-character filenames. 
  516.  
  517.     Several other filesystem types are still in use, such as the Minix
  518.     filesystem and the extended filesystem. However, because of the
  519.     limitations on these filesystem types, ext2fs is the most popular.
  520.  
  521.     The syntax of the mke2fs command is
  522.         mke2fs -c <partition> <size>
  523.     For example, if we are creating a filesystem on /dev/hda2 with a
  524.     size of 82080 blocks, we use the command
  525.         mke2fs -c /dev/hda2 82080
  526.  
  527.     Again, the -c switch tells mke2fs to check for bad blocks on the
  528.     partition.
  529.  
  530.     If you are using more than one Linux filesystem, you will need to
  531.     use mke2fs for each one.
  532.     
  533.     
  534. 3.4 Installing the software
  535.     Installing the SLS release is simply a matter of using the 
  536.     doinstall command. Before you begin, make sure that you have
  537.     a blank, high-density MS-DOS formatted diskette on hand. This
  538.     diskette will be used to create an SLS boot disk after the 
  539.     installation procedure is complete; therefore, the diskette
  540.     must be of the type (either 3.5" or 5.25") that you will boot
  541.     from on your system (like the a1 disk).
  542.  
  543.     To install the software, use the command
  544.         doinstall <partition>
  545.     where <partition> is the name of the Linux root partition.
  546.     For example, if your root partition is /dev/hda2, use the command
  547.         doinstall /dev/hda2
  548.  
  549.     doinstall will prompt you for the install media (such as floppy,
  550.     or hard drive), and other information (such as what packages you
  551.     wish to install). The rest should be self-explanatory.
  552.  
  553.     If you are using more than one filesystem for Linux, you need
  554.     to specify extra parameters to doinstall. For example, if your
  555.     root filesystem is on /dev/hda2, and your /usr filesystem is
  556.     on /dev/hda4, use the command
  557.         doinstall /dev/hda2 /dev/hda4 /usr
  558.  
  559. 3.5 After installation
  560.     After the software is installed, you may boot from the SLS boot
  561.     disk created during the installation procedure (or from the hard
  562.     drive if you opted to install LILO at install time). You should
  563.     be able to boot the system, login as "root", and off you go.
  564.  
  565.  
  566. 4. Miscellaneous
  567.     I don't like to be biased towards the SLS release, however, in 
  568.     order to document multiple releases of Linux, this file would be
  569.     much, much longer. It is simpler and more coherent to cover the
  570.     specific instructions for a single release of Linux. The book
  571.     ``Linux Installation and Getting Started'' will in the future
  572.     cover releases other than SLS. However, because the installation
  573.     procedures are so varied, covering them all would be very confusing
  574.     both to myself and to the reader.
  575.  
  576.     However, the basic concepts in this document still hold, no matter
  577.     what release of Linux you choose. For example, all releases require
  578.     you to run fdisk, mkswap, and mke2fs. The only real difference is
  579.     the method used to create the installation disks (if needed) and
  580.     the analogue to the "doinstall" command. If you choose to use a
  581.     release of Linux other than SLS, the READMEs and installation
  582.     instructions that come with that release should be easy to understand
  583.     in the context of the material presented here.
  584.  
  585.     If you would like a more complete discussion of Linux installation
  586.     (instead of the "quick" examples given here), read the book
  587.     ``Linux Installation and Getting Started", from sunsite.unc.edu
  588.     in /pub/Linux/docs/LDP. This document is intended only to get
  589.     new users started with Linux without a great deal of background.
  590.     The book, on the other hand, contains a complete discussion of
  591.     Linux, from start to finish, including tutorials on how to use the
  592.     system once you have installed it.
  593.  
  594.     Please mail me (mdw@sunsite.unc.edu) if any part of this document
  595.     is confusing or incorrect. I am open to any suggestions and comments.
  596.     I also like to help answer questions about Linux installation, if you
  597.     have any.
  598.  
  599.     Best of luck with your new Linux system!
  600.  
  601.     Cheers,
  602.     mdw
  603.  
  604.