[ previous ] [ Abstract ] [ Copyright Notice ] [ Contents ] [ next ]

Installing Debian GNU/Linux 2.2 For Motorola 680x0
Chapter 5 Methods for Installing Debian


You can install Debian from a variety of sources, both local (CD, hard disk, floppies) and remote (FTP, NFS, PPP, HTTP). Debian also supports various hardware configurations, so you may still have a few choices to make before you get going. This chapter lays out the choices and some suggestions for how to make them.

You can make different choices for different steps in the installation. For example, you may start the installation by booting off diskettes, but then feed later steps in the install process files from your hard disk.

As the installation progresses you will move from a scrawny, incapable system which lives only in RAM to a full-featured Debian GNU/Linux system installed on the hard disk. One of the key goals of the early installation steps is to increase the variety of hardware (e.g., interface cards) and software (e.g., network protocols and file system drivers) the system supports. Consequently, later installation steps can use a broader range of sources than earlier ones.

The easiest route for most people will be to use a set of Debian CDs. If you have such a set, and if your machine supports booting directly off the CD, great! Simply insert your CD, reboot, and proceed to the next chapter. If it turns out the standard installation doesn't work for your hardware, you can come back here to see about alternate kernels and installation methods which may work for you. In particular, note that some CD sets provide different kernels on different CDs, so that booting off some CD other than the first may work for you.


5.1 Overview of the Installation Process

This overview highlights the points for which you must choose an installation media, or make a choice which will affect which sources you can choose later. The following steps will occur:

  1. You begin by booting the installation system.
  2. You answer a series of questions to perform the initial system configuration.
  3. You provide a media source for the kernel and drivers.
  4. You select which drivers to load.
  5. You provide a media source for the base system.
  6. You reboot the system and then do some final configuration.
  7. You install additional software, packages, at your discretion.

In making your choices, you need to bear a few factors in mind. The first involve your choice of kernel. The kernel that you pick for the initial system boot is the same kernel that your fully configured system will use. Since drivers are kernel-specific, you must pick a package containing drivers which go with your kernel. We'll turn shortly to the details of picking the right kernel, or rather, installation set.

Different kernels also have different networking abilities out of the box, and so also expand or limit your source choices, particularly early in the install process.

Finally, the particular drivers that you choose to load can enable additional hardware (e.g., network interface cards, hard drive controllers) or file systems (e.g., NTFS or NFS). This therefore widens the choices of installation source media.


5.2 Choosing the Right Installation Set

Your hardware will dictate your choice of installation. Choose the appropriate sub-architecture directory, review the documentation there, and proceed.

If you are booting from CD, different CDs use different installation sets. Consult your CD documentation for more information. Details on kernel arrangement for specific CDs needed.


5.3 Installation Sources for Different Installation Stages

This section indicates the type of hardware which may, and usually will, work at different stages of the installation. It is not a guarantee that all hardware of the indicated type will work with all kernels. For example, RAID disks generally will not be accessible until you install the appropriate drivers.


5.3.1 Booting the Initial Installation System

The initial boot of the installation system is perhaps the most idiosyncratic step. The next chapter provides additional details, but your choices generally include


5.3.2 Source Media and Installation Stages

The following table indicates which media sources you can use at each stage of the installation process. The columns indicate different install stages, ordered from left to right in the sequence which they occur. The far right column is the installation media. A blank cell indicates that given source media is not available at that installation stage; Y indicates that it is, and S means that it is in some cases.

     Boot | Kernel Image | Drivers | Base System | Packages | media
     -----+--------------+---------+-------------+----------+------------
      S   |              |         |             |          | tftp
      S   |     Y        |   Y     |     Y       |          | diskette
      S   |     Y        |   Y     |     Y       |   Y      | CD-ROM
      S   |     Y        |   Y     |     Y       |   Y      | hard disk
          |     Y        |   Y     |     Y       |   Y      | NFS
          |              |   S     |     Y       |   Y      | LAN
          |              |         |             |   Y      | PPP

For example, the table shows that only use for PPP in the installation process is the installation of packages.

Note that you will only be prompted for a source for the kernel images and drivers in some installation methods. If you boot off a CD-ROM, it will automatically pick those items off the CD. The important point is that as soon as you boot off a diskette, you can immediately switch to some superior installation source. Remember, though, that you must not mix up the different install sets, i.e., using a Rescue Floppy from one subarchitecture and Driver Floppies from another.

The `Boot' column is all Ss because media support for booting varies widely for different architectures.

The `LAN' and `PPP' rows refer to Internet-based file transfer (FTP, HTTP, and the like) over Ethernet or phone lines. In general this is not available, but certain kernels may permit you to do this earlier. Experts can also use these connections to mount disks and perform other operations to accelerate the process. Providing help in such cases is beyond the scope of this document.


5.3.3 Recommendations

Get a set of Debian GNU/Linux CDs. Boot off them if you can.

Since you've read this far, you probably couldn't or wouldn't. If your problem is simply that your CD drive is not bootable, you can pull the files you need for the initial boot off the CD and use them to make floppies or do a boot from alternate operating system.

Failing this, you may have an existing operating system with some free disk space. The early installation system can read many filesystems (NTFS being a prominent exception — you must load the appropriate driver). If it can read yours, you should download documentation, initial boot images, and utilities. Then get the appropriate drivers archive as a single file, and the base system as a single file. Perform your initial boot, and then point the installation program at the files you have downloaded when it asks for the appropriate source.

These are only suggestions. You should choose whatever sources are most convenient for you. Floppies are neither convenient nor reliable, so we urge you to get off them as soon as possible. However, compared to booting off an existing operating system they may provide a cleaner environment and an easier path, so they are appropriate for the initial boot, if your system supports them.


5.4 Description of Installation System Files

This section contains an annotated list of files you will find in the disks-m68k directory. You may not need to download these at all; it all depends on the booting and base system installation media you have chosen.

Most files are floppy disk images; that is, a single file which can be written to a disk to create the necessary floppy disk. These images are, obviously, dependent on the size of the target floppy. For instance, 1.44MB is the normal quantity of data which is what fits on standard 3.5 inch floppies. The images for 1.44MB floppy disks can be found in the images-1.44 directory. Images for 2.88MB disks, which are generally only used for CD-ROM booting and the like, are found in the images-2.88 directory.

If you are using a web browser on a networked computer to read this document, you can probably retrieve the files by selecting their names in your web browser. Depending on your browser you may need to take special action to download directly to a file, in raw binary mode. For example, in Netscape you need to hold the shift key when clicking on the URL to retrieve the file. Files can be downloaded from the URLs in this document, or you can retrieve them from http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/, or the corresponding directory on any of the Debian mirror sites.


5.4.1 Documentation

Installation Manual:
install.en.txt
install.en.html
install.en.pdf
This file you are now reading, in plain ASCII, HTML or PDF format.

Platform-specific Installation Notes:
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/install.doc
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/install.doc.info
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/install.doc
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/install.txt
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/debian-mac.txt
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/install.txt
Quick reference describing the installation on the corresponding systems step by step, like a condensed version of Methods for Installing Debian, Chapter 5 through Using dbootstrap for Initial System Configuration, Chapter 7 of this manual.

Note that these documents are deprecated and only here temporarily until they can be merged in substance to the main Installation Manual.

Partitioning Program Manual Pages:
atari-fdisk.txt
amiga-fdisk.txt
mac-fdisk.txt
pmac-fdisk.txt
Instructions for using your available partitioning programs.

http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/base-contents.txt
Listing of the contents of the base system.

http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/md5sum.txt
List of MD5 checksums for the binary files. If you have the md5sum program, you can ensure that your files are not corrupt by running md5sum -v -c md5sum.txt.


5.4.2 Files for the Initial System Boot

Rescue Floppy images:
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/images-2.88/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/images-1.44/rescue.bin
These are the Rescue Floppy disk images. The Rescue Floppy is used for initial setup and for emergencies, such as when your system doesn't boot for some reason. Therefore it is recommended you write the disk image to the floppy even if you are not using floppies for installation.

Root image(s):
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/images-1.44/root.bin
This file contains an image of a temporary filesystem that gets loaded into memory when you boot from the Rescue Floppy. This is used for installations from hard disk and floppies.

Linux kernel:
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/linux
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/linux
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/linuxbvme6000
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/linux
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/linuxmvme16x
This is the Linux kernel image to be used for hard disk and CD installations. You don't need it if you are installing from floppies.

Amiga Installer Files
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amigainstall.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/dmesg
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/amiboot-5.6
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall.info
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_CV3D
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_CV3D.info
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_CV64
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_CV64.info
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_clgen
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_clgen.info
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_retz3
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/StartInstall_retz3.info
Files to use when installing from AmigaOS.

Atari Installer Files
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atariinstall.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/bootstra.prg
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/bootargs
Files to use when installing from Atari.

MacOS Installer Files
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/macinstall.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/Penguin-18.hqx
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/Penguin-Colors.hqx
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/Penguin.doc.hqx
Files to use when installing from MacOS.

BVME6000 Installer Files
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/bvmbug-G.bin
Files to use when installing from BVME6000.

TFTP boot images and configuration files
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/tftplilo.bvme
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/tftplilo.conf
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/tftplilo.txt
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/tftplilo.mvme
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/tftplilo.conf
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/tftplilo.txt
Boot images used for network booting, see Booting from TFTP, Section 6.5. Generally, they contain the Linux kernel and the root.bin root filesystem. For VME, TFTP support consists of the Linux loader programs and configuration files.


5.4.3 Driver Files

These files contain kernel modules, or drivers, for all kinds of hardware that are not necessary for initial booting. Getting the drivers you want is a two step process: first you identify an archive of drivers you want to use, and then you select which particular drivers you want.

Remember that your driver archive must be consistent with your initial kernel choice.

Driver Floppies images:
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/images-1.44/driver.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/images-1.44/driver.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/images-1.44/driver.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/images-1.44/driver.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/images-1.44/driver.bin
These are the Driver Floppies disk images.

Driver Floppies archive
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/amiga/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/atari/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mvme16x/drivers.tgz
If you are not limited to diskettes, choose one of these files.


5.4.4 Base System Files

The ``Debian base system'' is a core set of packages which are required to run Debian in a minimal, stand-alone fashion. Once you have configured and installed the base system, your machine can ``stand on its own''.

Base system images:
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/base2_2.tgz
or
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-1.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-2.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-3.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-4.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-5.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-6.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-7.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-8.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-9.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-10.bin
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/images-1.44/base-11.bin
These files contain the base system which will be installed on your Linux partition during the installation process. This is the bare minimum necessary for you to be able to install the rest of the packages. The http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/base2_2.tgz file is for installation from non-floppy media, i.e., CD-ROM, harddisk, or NFS.

We turn now to concerns specific to particular kind of sources. For convenience, they appear in the same order as the rows in the earlier table discussing different installation sources.


5.5 TFTP

Booting from the network requires that you have a network connection supported by the boot floppies, a RARP or a BOOTP server, and a TFTP server. This installation method is described in Booting from TFTP, Section 6.5.


5.6 Diskettes


5.6.1 Floppy Disk Reliability

The biggest problem for people installing Debian for the first time seems to be floppy disk reliability.

The Rescue Floppy is the floppy with the worst problems, because it is read by the hardware directly, before Linux boots. Often, the hardware doesn't read as reliably as the Linux floppy disk driver, and may just stop without printing an error message if it reads incorrect data. There can also be failures in the Driver Floppies and the base floppies, most of which indicate themselves with a flood of messages about disk I/O errors.

If you are having the installation stall at a particular floppy, the first thing you should do is re-download the floppy disk image and write it to a different floppy. Simply reformatting the old floppy may not be sufficient, even if it appears that the floppy was reformatted and written with no errors. It is sometimes useful to try writing the floppy on a different system.

One user reports he had to write the images to floppy three times before one worked, and then everything was fine with the third floppy.

Other users have reported that simply rebooting a few times with the same floppy in the floppy drive can lead to a successful boot. This is all due to buggy hardware or firmware floppy drivers.


5.6.2 Booting from Floppies

Booting from floppies is supported for most platforms.

Amigas and Macs are an exception to this rule, unfortunately. For most m68k architectures, booting from a local filesystem is the recommended method.

Booting from the Rescue Floppy is supported only for Atari and VME (with a SCSI floppy drive on VME) at this time. On the Macintosh, you can boot from the HFS floppy image supplied as a DiskCopy format image, which is a raw disk image containing the Rescue Floppy image.

To boot from floppies, simply download the Rescue Floppy image and the Driver Floppies image.

If you need to, you can also modify the Rescue Floppy; see Replacing the Rescue Floppy Kernel, Section 9.3.

The Rescue Floppy couldn't fit the root filesystem image, so you'll need the root image to be written to a disk as well. You can create that floppy just as the other images are written to floppies. Once the kernel has been loaded from the Rescue Floppy, you'll be prompted for the root disk. Insert that floppy and continue.


5.6.3 Installing Base from Floppies

NOTE: This is not a recommended way of installing Debian, because floppies are generally the least reliable type of media. This is only recommended if you have no extra, pre-existing filesystems on any of the hard drives on your system. Installing the base system from floppies is not supported on Amiga and Macintosh systems.

Complete these steps:

  1. Obtain these disk images (these files are described in greater detail in Description of Installation System Files, Section 5.4):
  2. Locate sufficient floppies for all the images you need to write.
  3. Create the floppies, as discussed in Creating Floppies from Disk Images, Section 5.6.4.
  4. Insert the Rescue Floppy into your floppy drive, and reboot the computer.
  5. Skip down to Booting the Installation System, Chapter 6.


5.6.4 Creating Floppies from Disk Images

Disk images are files containing the complete contents of a floppy disk in raw form. Disk images, such as rescue.bin, cannot simply be copied to floppy drives. A special program is used to write the image files to floppy disk in raw mode. This is required because these images are raw representations of the disk; it is required to do a sector copy of the data from the file onto the floppy.

There are different techniques for creating floppies from disk images, which depend on your platform. This section describes how to create floppies from disk images for different platforms.

No matter which method you use to create your floppies, you should remember to flip the tab on the floppies once you have written them, to ensure they are not damaged unintentionally.


5.6.4.1 Writing Disk Images From a Linux or Unix System

To write the floppy disk image files to the floppy disks, you will probably need root access to the system. Place a good, blank floppy in the floppy drive. Next, use the command

     dd if=file of=/dev/fd0 bs=1024 conv=sync ; sync

where file is one of the floppy disk image files. /dev/fd0 is a commonly used name of the floppy disk device, it may be different on your workstation (on Solaris, it is /dev/fd/0). The command may return to the prompt before Unix has finished writing the floppy disk, so look for the disk-in-use light on the floppy drive and be sure that the light is out and the disk has stopped revolving before you remove it from the drive. On some systems, you'll have to run a command to eject the floppy from the drive (on Solaris, use eject, see the manual page).

Some systems attempt to automatically mount a floppy disk when you place it in the drive. You might have to disable this feature before the workstation will allow you to write a floppy in raw mode. Unfortunately, how to accomplish this will vary based on your operating system. On Solaris, you can work around volume management to get raw access to the floppy. First, make sure that the floppy is automounted (using volcheck or the equivalent command in the file manager). Then use a dd command of the form given above, just replace /dev/fd0 with /vol/rdsk/floppy_name, where floppy_name is the name the floppy disk was given when it was formatted (unnamed floppies default to the name unnamed_floppy). On other systems, ask your system administrator.


5.6.4.2 Writing Disk Images on Atari Systems

You'll find the http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/rawwrite.ttp program in the same directory as the floppy disk images. Start the program by double clicking on the program icon, and type in the name of the floppy image file you want written to the floppy at the TOS program command line dialog box.


5.6.4.3 Writing Disk Images on Macintosh Systems

Please read http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/mac/debian-mac.txt for more accurate information. The file mac/debian-mac.txt needs to be integrated in this document.

There is no MacOS application to write the mac/images-1.44/rescue.bin and mac/images-1.44/driver.bin images to floppy disks (and there would be no point in doing this as you can't use these floppies to boot the installation system or install kernel and modules from on Macintosh). However, these files are needed for the installation of the operating system and modules, later in the process.

Be careful whenever transfering files on the Macintosh. Files with the suffix .bin or .tgz always need to be transferred using binary mode.


5.6.4.4 Writing Disk Images From DOS, Windows, or OS/2

If you have access to a PC running one of these systems — we might never like to admit it, but these do exist — you can use it to write the disk images.

You'll find the rawrite2.exe program in the i386 section of a Debian archive, in the same directory as the floppy disk images. There's also a rawrite2.txt file containing instructions for using rawrite2.


5.7 CD-ROM

CD-ROM booting is one of the easiest ways to install. This is especially true for BVME4000/6000 VMEbus systems. If you're unlucky and the kernel on the CD-ROM doesn't work for you, you'll have to fall back to another technique.

Installing from CD-ROM is described in Installing from a CD-ROM, Section 6.4.

Note that certain CD drives may require special drivers, and so be inaccessible in the early installation stages.


5.8 Hard Disk

Booting from an existing operating system is often a convenient option; for some systems it is the only supported method of installation. This method is described in Booting from a Hard Disk, Section 6.3.

Exotic hardware or filesystems may render files on the hard disk inaccessible early in the installation process. If they aren't supported by the Linux kernel, they may be inaccessible even at the end!


5.9 Installing from NFS

Due to the nature of this method of installation, only the base system can be installed via NFS. You will need to have the Rescue Floppy and the Driver Floppies available locally using one of the above methods. To install the base system via NFS, you'll have to go through the regular installation as explained in Using dbootstrap for Initial System Configuration, Chapter 7. Do not forget to insert the module (driver) for your Ethernet card, and the file system module for NFS.

When dbootstrap asks you where the base system is located (``Install the Base System'', Section 7.14), you should choose NFS, and follow the instructions.


[ previous ] [ Abstract ] [ Copyright Notice ] [ Contents ] [ next ]
Installing Debian GNU/Linux 2.2 For Motorola 680x0
version 2.2.19, 22 November, 2000
Bruce Perens
Sven Rudolph
Igor Grobman
James Treacy
Adam Di Carlo