home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / misc / linuxhow.zip / INSTALL.HOW < prev    next >
Internet Message Format  |  1993-09-14  |  31KB

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