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.
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:
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.
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.
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.
The initial boot of the installation system is perhaps the most idiosyncratic step. The next chapter provides additional details, but your choices generally include
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.
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.
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
.
install.en.txt
install.en.html
install.en.pdf
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
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.
atari-fdisk.txt
amiga-fdisk.txt
mac-fdisk.txt
pmac-fdisk.txt
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/base-contents.txt
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/md5sum.txt
md5sum
program, you can ensure that your files are not corrupt by
running md5sum -v -c md5sum.txt.
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
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
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
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
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
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
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/bvme6000/bvmbug-G.bin
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
root.bin
root filesystem. For VME, TFTP support consists of the
Linux loader programs and configuration 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.
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
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
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''.
http://http.us.debian.org/debian/dists/potato/main/disks-m68k/current/base2_2.tgz
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
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.
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.
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.
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.
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:
base-1.bin
,
base-2.bin
, etc.
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.
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.
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.
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.
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
.
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.
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!
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.