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

Installing Debian GNU/Linux 2.2 For PowerPC
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-powerpc 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. This is the only floppy size supported on your architecture. The images for 1.44MB floppy disks can be found in the images-1.44 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-powerpc/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-powerpc/current/apus/install.txt
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/install.txt
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/install.txt
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/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:
cfdisk.txt
mac-fdisk.txt
Instructions for using your available partitioning programs.

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

http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/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-powerpc/current/apus/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/images-1.44/rescue.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/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-powerpc/current/apus/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/images-1.44/root.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/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 CD-ROM, hard disk and floppies.

Linux kernel:
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/apus/linux
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/linux
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/linux
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/linux
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.

TFTP boot images
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/images-1.44/boot.bin
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.


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-powerpc/current/apus/images-1.44/driver-1.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/images-1.44/driver-1.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/images-1.44/driver-2.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/images-1.44/driver-1.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/images-1.44/driver-2.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/images-1.44/driver-1.bin
These are the Driver Floppies disk images.

Driver Floppies archive
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/apus/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/chrp/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/powermac/drivers.tgz
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/prep/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-powerpc/current/base2_2.tgz
or
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-1.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-2.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-3.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-4.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-5.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-6.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-7.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-8.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-9.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-10.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-11.bin
http://http.us.debian.org/debian/dists/potato/main/disks-powerpc/current/images-1.44/base-12.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-powerpc/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. Currently, PReP and New World PowerMac systems support netbooting. 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.

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.

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.7 CD-ROM

CD-ROM booting is one of the easiest ways to install. Currently, only PReP and New World PowerMac systems can boot from a Debian GNU/Linux install CD. 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 Booting and/or 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.15), you should choose NFS, and follow the instructions.


[ previous ] [ Abstract ] [ Copyright Notice ] [ Contents ] [ next ]
Installing Debian GNU/Linux 2.2 For PowerPC
version 2.2.23, 14 April, 2001
Bruce Perens
Sven Rudolph
Igor Grobman
James Treacy
Adam Di Carlo