| 1 |
How to install sarge with the new debian-installer
|
| 2 |
--------------------------------------------------
|
| 3 |
|
| 4 |
This documents describes how to perform an installation with the new
|
| 5 |
debian-installer, which will be released together with the upcoming
|
| 6 |
Debian release, codename: sarge.
|
| 7 |
|
| 8 |
For the most current version of this document or more information on
|
| 9 |
the debian-installer project: http://www.debian.org/devel/debian-installer
|
| 10 |
|
| 11 |
Last update: $Date$
|
| 12 |
|
| 13 |
|
| 14 |
1. Preliminaries
|
| 15 |
|
| 16 |
The debian-installer is still in a beta state. If you encounter
|
| 17 |
bugs during your install, please refer to section 5 on how to report
|
| 18 |
them. If you have questions which cannot be answered by this document,
|
| 19 |
please direct them to the debian-boot mailing list
|
| 20 |
(debian-boot@lists.debian.org) or ask on irc (#debian-boot on the
|
| 21 |
freenode network).
|
| 22 |
|
| 23 |
Recently the debian-installer has switched to ask only the important
|
| 24 |
questions and configure the rest automatically. This also means that you
|
| 25 |
won't get to see the main menu anymore, except when something goes wrong.
|
| 26 |
If you want to restore the old configuration with more questions asked,
|
| 27 |
type "expert" at the boot prompt. If you do so, refer to section
|
| 28 |
3.1. for installing rather than section 3.
|
| 29 |
|
| 30 |
This HOWTO is mainly targeted at users of the i386 architecture, although
|
| 31 |
the instructions are similar for all architectures. For more detailed
|
| 32 |
information, see the Debian Sarge Installation Manual:
|
| 33 |
http://d-i.alioth.debian.org/manual/
|
| 34 |
|
| 35 |
|
| 36 |
2. Getting images
|
| 37 |
|
| 38 |
The debian-cd team provides builds of CD images for debian-installer here:
|
| 39 |
http://cdimage.debian.org/pub/cdimage-testing/daily/
|
| 40 |
|
| 41 |
The other kinds of images, including floppy images are in the Debian
|
| 42 |
archive, in the main/installer-<arch> directories. For example:
|
| 43 |
ftp://ftp.debian.org/debian/dists/unstable/main/installer-i386/current/images/
|
| 44 |
|
| 45 |
Daily builds of all non-ISO debian-installer images, including floppy images
|
| 46 |
and initrd's are available, for a complete list with links, see
|
| 47 |
http://www.debian.org/devel/debian-installer/ports-status
|
| 48 |
|
| 49 |
The subsections below will give the details about which images you should
|
| 50 |
get for each possible means of installation.
|
| 51 |
|
| 52 |
|
| 53 |
2.1 CDROM
|
| 54 |
|
| 55 |
There are two different netinst images at the location above which can be
|
| 56 |
used to install sarge with the debian-installer. These images are intended
|
| 57 |
to boot from CD and install additional packages over a network, hence the
|
| 58 |
name 'netinst'. The difference between the two images is, that on the full
|
| 59 |
netinst image the base packages are included, whereas you have to download
|
| 60 |
these from the web if you are using the business card image.
|
| 61 |
|
| 62 |
Download whichever type you prefer and burn it to a CD.
|
| 63 |
|
| 64 |
2.1.1 SCSI CD drives
|
| 65 |
|
| 66 |
If you have a SCSI CD drive and a relatively uncommon SCSI controller, then
|
| 67 |
you may also need one driver floppy to let the installer see your CD drive.
|
| 68 |
However, this is only the case with CD images that use syslinux as their
|
| 69 |
bootloader, rather than the normal ones, which use isolinux.
|
| 70 |
|
| 71 |
See section 2.2 for information about floppys, and download the cd-drivers
|
| 72 |
floppy image and write it to disk. You will be given an opportunity to load
|
| 73 |
drivers from the floppy if the installer fails to see your SCSI CD drive,
|
| 74 |
and after loading the floppy, the installer will see your CD ROM.
|
| 75 |
|
| 76 |
2.2 The dreaded floppies
|
| 77 |
|
| 78 |
If you can't boot from CD, you can download floppy images to install
|
| 79 |
Debian. You need the floppy/boot.img, the floppy/root.img and possibly
|
| 80 |
one of the driver disks.
|
| 81 |
|
| 82 |
- floppy/net-drivers.img
|
| 83 |
To do an install over the network with a few common ethernet cards,
|
| 84 |
you do not need this driver floppy. If you have a less common ethernet
|
| 85 |
card, or pcmcia, you will need it.
|
| 86 |
- floppy/cd-drivers.img
|
| 87 |
If you have a cdrom, but cannot boot from it, you can boot from floppies,
|
| 88 |
and use this driver disk to complete the install using the cdrom.
|
| 89 |
|
| 90 |
Floppy disks are one of the least reliable media around, so be prepared for
|
| 91 |
lots of bad disks. Each .img file you downloaded goes on a single floppy;
|
| 92 |
you can use the dd command to write it to /dev/fd0 or some other means.
|
| 93 |
It's a good idea to them use cmp to compare what ended up on the unreliable
|
| 94 |
floppy disk with the image. If it fails throw that floppy away and try
|
| 95 |
again. Since you'll have more than one floppy, it's a good idea to label
|
| 96 |
them.
|
| 97 |
|
| 98 |
The boot floppy is the one with boot.img on it. This floppy, when
|
| 99 |
booted, will prompt you to insert a second floppy -- use the one with
|
| 100 |
root.img on it.
|
| 101 |
|
| 102 |
2.3 USB memory stick
|
| 103 |
|
| 104 |
It's also possible to install from removable USB storage devices. For
|
| 105 |
example a USB keychain can make a handy Debian install media that you
|
| 106 |
can take with you anywhere.
|
| 107 |
|
| 108 |
The easiest way to prepare your USB memory stick is to download
|
| 109 |
hd-media/boot.img.gz, and use gunzip to extract the 128 MB image from that
|
| 110 |
file. Write this image directly to your memory stick, which must be at
|
| 111 |
least 128 mb in size. Of course this will destroy anything already on the
|
| 112 |
memory stick. Then mount the memory stick, which will now have a FAT
|
| 113 |
filesystem on it. Next, download a Debian netinst CD image, and copy that
|
| 114 |
file to the memory stick; any filename is ok as long as it ends in ".iso".
|
| 115 |
|
| 116 |
Alternatively, if you're using linux and familiar with loopback mounting,
|
| 117 |
it can be quicker to loop mount the disk image, copy the iso into it, and
|
| 118 |
only then write the complete image to the memory stick.
|
| 119 |
|
| 120 |
There are other, more flexible ways to set up a memory stick to use the
|
| 121 |
debian-installer, and it's possible to get it to work with smaller memory
|
| 122 |
sticks. This web page has more complete directions for using
|
| 123 |
debian-installer and a bootable USB stick: http://d-i.pascal.at/
|
| 124 |
|
| 125 |
2.3.1 Booting directly from USB storage
|
| 126 |
|
| 127 |
Some BIOSes can boot USB storage directly, and some cannot. You may need to
|
| 128 |
configure your BIOS to boot from a "removable drive" or even a "USB-ZIP" to
|
| 129 |
get it to boot from the USB device. The web site above has more information
|
| 130 |
and some helpful hints about booting.
|
| 131 |
|
| 132 |
2.3.2 Using USB storage and a boot floppy
|
| 133 |
|
| 134 |
The debian-installer can be booted off a single floppy, which will be able
|
| 135 |
to access your USB memory stick. To boot the installer this way, you will
|
| 136 |
need to put the floppy/boot.img on a floppy (see section 2.2).
|
| 137 |
|
| 138 |
Now boot from the floppy. It should detect your USB device and proceed
|
| 139 |
with booting from it.
|
| 140 |
|
| 141 |
2.4 Booting from network
|
| 142 |
|
| 143 |
It's also possible to boot debian-installer completely from the net. The
|
| 144 |
various methods to netboot depend on your architecture and netboot setup.
|
| 145 |
The files in netboot/ can be used to netboot debian-installer.
|
| 146 |
|
| 147 |
On i386, the easiest thing to set up is probably PXE netbooting. Untar the
|
| 148 |
file netboot/pxeboot.tar.gz into /var/lib/tftpboot or wherever is
|
| 149 |
appropriate for your tftp server. Set up your DHCP server to pass filename
|
| 150 |
"/pxelinux.0" to clients, and it with luck everything will just work. For
|
| 151 |
more details, see this web page:
|
| 152 |
http://wiki.debian.net/index.cgi?DebianInstallerNetbootPXE
|
| 153 |
|
| 154 |
2.5 Booting from hard disk
|
| 155 |
|
| 156 |
It's possible to boot the installer using no removable media, but just an
|
| 157 |
existing hard disk, which can have a different OS on it. These instructions
|
| 158 |
are for i386 systems, such as those running windows. Download
|
| 159 |
hd-media/initrd.gz, hd-media/vmlinuz, and a Debian CD image to the top-level
|
| 160 |
directory of the hard disk. Make sure that the CD image has a filename
|
| 161 |
ending in ".iso". Now it's just a matter of booting linux with the initrd.
|
| 162 |
|
| 163 |
If you have grub installed, boot grub, and do the following:
|
| 164 |
|
| 165 |
grub>kernel (hd0,0)/vmlinuz root=/dev/ram ramdisk_size=10000 devfs=mount,dall
|
| 166 |
grub>initrd (hd0,0)/initrd.gz
|
| 167 |
grub>boot
|
| 168 |
|
| 169 |
Note that the ramdisk_size parameter may need to be increased, depending on
|
| 170 |
the image you are booting.
|
| 171 |
|
| 172 |
After the installer boots, it should find the ISO you placed on the hard
|
| 173 |
disk, and continue with the install. You will not be able to reformat the
|
| 174 |
partition the installer was booted from if you use this technique.
|
| 175 |
|
| 176 |
2.6 Booting from CDROM
|
| 177 |
|
| 178 |
The most common choice, is booting directly from a CD drive.
|
| 179 |
|
| 180 |
For i386 systems, you should set this up in your BIOS directly
|
| 181 |
in the boot sequence.
|
| 182 |
|
| 183 |
For powerpc systems, you must press the "c" key while booting. The "c"
|
| 184 |
key, which represents "cdrom", will tell your machine to use that medium
|
| 185 |
as the boot method.
|
| 186 |
|
| 187 |
3. Installation
|
| 188 |
|
| 189 |
From here on, I assume you have downloaded and burnt the 'netinst'
|
| 190 |
CD. Put it into your CD-drive and make your system boot from CD.
|
| 191 |
|
| 192 |
You will be greeted by a welcome screen. Hit ENTER to boot. (If you want a
|
| 193 |
2.6 kernel, type "linux26" instead.)
|
| 194 |
|
| 195 |
After a while you will be asked to select your language. This will affect
|
| 196 |
translation of debian-installer (if already available for your language) as
|
| 197 |
well as the choice of country and keyboard layout. Select your language and
|
| 198 |
press ENTER to continue.
|
| 199 |
|
| 200 |
Sit back while debian-installer detects some of your hardware, and
|
| 201 |
loads additional installer modules from the cd.
|
| 202 |
|
| 203 |
Next the installer will try to detect your network hardware and set up
|
| 204 |
networking by DHCP. If you are not on a network or do not have DHCP, you
|
| 205 |
will see an error message. You do not need a network to continue the
|
| 206 |
install, so this can be easily worked around. Select continue and watch the
|
| 207 |
main menu which will appear everytime if something went wrong, so you have
|
| 208 |
more control over the situation. Proceed to "Partition disks".
|
| 209 |
|
| 210 |
Now it is time to partition your disks. First you will be given the
|
| 211 |
opportunity to automatically partition either an entire drive, or free
|
| 212 |
space on a drive. If you do not want to autopartition, choose manual from
|
| 213 |
the menu.
|
| 214 |
|
| 215 |
On the next screen you will see your partition table, how the partitions
|
| 216 |
will be formatted, and where they will be mounted. Select a partition to
|
| 217 |
modify or delete it. If you did automatic partitioning, you should just be
|
| 218 |
able to choose "Finished partitioning" from the menu to use what it set up.
|
| 219 |
Remember to assign at least one partition for swap space and to mount a
|
| 220 |
partition on "/".
|
| 221 |
|
| 222 |
Now debian-installer starts to install the base system which can take a
|
| 223 |
while. That is followed by installing a kernel.
|
| 224 |
|
| 225 |
The last step is to install a boot loader. If the installer detects
|
| 226 |
other operating systems on your computer, it will add them to the boot menu
|
| 227 |
and let you know. By default GRUB will be installed to the boot
|
| 228 |
record of the first harddrive, which is generally a good choice. You'll be
|
| 229 |
given the opportiunity to override that choice and install it elsewhere.
|
| 230 |
|
| 231 |
Debian-installer will now tell you that the installation has
|
| 232 |
finished. Remove the cdrom from your drive and hit ENTER to reboot
|
| 233 |
your machine. Make sure it boots from harddisk, cross your fingers and
|
| 234 |
wait until base-config is started.
|
| 235 |
|
| 236 |
Stepping through base-config is not within the scope of this document
|
| 237 |
as it is not part of debian-installer.
|
| 238 |
|
| 239 |
|
| 240 |
3.1. Expert mode installation
|
| 241 |
|
| 242 |
From here on, I assume you have downloaded and burnt the 'netinst'
|
| 243 |
CD. Put it into your CD-drive and make your system boot from CD.
|
| 244 |
|
| 245 |
You will be greeted by a welcome screen. Type "expert" and hit ENTER to
|
| 246 |
boot. If you want to install with the 2.6 linux kernel, type "expert26"
|
| 247 |
instead. After a while you will be presented with the main-menu of the
|
| 248 |
debian-installer. Some general remarks:
|
| 249 |
|
| 250 |
The main-menu is not static. New entries are added when new installer
|
| 251 |
modules are loaded. However main-menu tries to resolve the next best
|
| 252 |
choice and presents that as default selection. If that selection does
|
| 253 |
not suit your needs just select another entry. If you select an entry
|
| 254 |
that requires the configuration of an entry you did not yet choose,
|
| 255 |
the main-menu will try to resolve these dependencies automatically.
|
| 256 |
This can be used to automate the install process, by selecting always
|
| 257 |
the last visible step.
|
| 258 |
|
| 259 |
When main-menu first is shown, the default will be "Choose language". Hit
|
| 260 |
return and choose your language from the list that now is presented. You
|
| 261 |
will be taken back to main-menu and the next item will be the default,
|
| 262 |
which is "Choose country". Select that entry and observe that the installer
|
| 263 |
tries to set a reasonable default based upon your language selection.
|
| 264 |
Select your country and continue.
|
| 265 |
|
| 266 |
The next step is "Detect a keyboard and select layout". Again the installer
|
| 267 |
will attempt to pick a reasonable default. Select your preferred keymap and
|
| 268 |
continue.
|
| 269 |
|
| 270 |
The next step is "Detect CDROM devices and mount the CD". As part of this
|
| 271 |
step, the installer will probe the system for hardware, and load kernel
|
| 272 |
modules for detect hardware. You will be given a chance to veto the loading
|
| 273 |
of kernel modules (in case they cause problems), and to specify parameters
|
| 274 |
to pass to the kernel when the modules are loaded. After the hardware is
|
| 275 |
detected, the CD should be found automatically in most cases.
|
| 276 |
|
| 277 |
Now we are able to load the rest of the installer. Select the corresponding
|
| 278 |
entry "Load installer components". Since the modules we want to access are
|
| 279 |
on the CD, select "cdrom-retriever". The floppy-retriever can be used to
|
| 280 |
load additional modules from a floppy, e.g. if you have exotic hardware.
|
| 281 |
See section 2.1.1 if you have a SCSI CDROM.
|
| 282 |
|
| 283 |
You are presented a long list with optional components to install. We
|
| 284 |
only want to install the standard components, which are selected
|
| 285 |
automatically, so just hit "Continue". Wait and watch until all
|
| 286 |
components have been loaded.
|
| 287 |
|
| 288 |
Main-menu appears again, but with the additional modules there are new
|
| 289 |
entries. The next default step would be to configure a network. We are
|
| 290 |
breaking out of the default route, because we do not need networking
|
| 291 |
since the base debs are on the CD.
|
| 292 |
|
| 293 |
Select "Detect hardware". This will repeat the hardware detection process,
|
| 294 |
but now the installer has more kernel modules available to it.
|
| 295 |
|
| 296 |
Now it is time to partition your disk, so choose "Partition disks" from the
|
| 297 |
menu. You will be presented with a display showing the partitions on your
|
| 298 |
system. Select partitons from the list to modify or delete them. If you
|
| 299 |
have free space it will also show up under a drive, and you can select it
|
| 300 |
to create new partitions. When modifying a partition you will have the
|
| 301 |
opportunity to choose the file system to use, and where to mount it. The
|
| 302 |
partitioning menu also has a choice at the bottom that can be used to
|
| 303 |
automatically partition a drive or existing free space on a drive, if you'd
|
| 304 |
rather go that route. Be sure to create at least two partitions, one for
|
| 305 |
swap and one for the root filesystem.
|
| 306 |
|
| 307 |
After finishing partitioning, select "Finished partitioning" from the menu,
|
| 308 |
and confirm that the filesystems should be created as requested.
|
| 309 |
|
| 310 |
Now we are ready to install the base system. Select the corresponding entry
|
| 311 |
("Install the base system") and lean back. The packages are retrieved from
|
| 312 |
the CD and installed in the /target area. During this step, you will be
|
| 313 |
presented with a list of all available kernel images on the CD. Select the
|
| 314 |
most suitable for your system and wait until the installation has finished.
|
| 315 |
|
| 316 |
Now we are almost done. Select "Install GRUB on a hard disk" or
|
| 317 |
"Install LILO on a hard disk" to make your harddisk bootable. You will
|
| 318 |
be asked where GRUB/LILO shall install the bootblock. A good idea is
|
| 319 |
the first hard drive in your system which should be in fact the
|
| 320 |
default selection.
|
| 321 |
|
| 322 |
If that last step has completed successfully select "Finish the
|
| 323 |
installation and reboot", eject your CD and wait until your computer
|
| 324 |
restarts. Make sure it boots from harddisk, cross your fingers and
|
| 325 |
wait until base-config is started.
|
| 326 |
|
| 327 |
Stepping through base-config is not within the scope of this document
|
| 328 |
as it is not part of debian-installer.
|
| 329 |
|
| 330 |
|
| 331 |
4. Installation Report
|
| 332 |
|
| 333 |
If you successfully managed an installation with debian-installer,
|
| 334 |
please take time to provide us with a report. There is a template
|
| 335 |
named "install-report.template" in the /root directory of a freshly
|
| 336 |
installed system. Please fill it out and file it as a bug against the
|
| 337 |
package "installation-reports". See section 5 on how to file bugs.
|
| 338 |
|
| 339 |
|
| 340 |
5. Reporting bugs
|
| 341 |
|
| 342 |
If you did not reach base-config or ran into other trouble, you
|
| 343 |
probably found a bug in debian-installer. To improve the installer it
|
| 344 |
is necessary that we know about them, so please take your time and
|
| 345 |
report them.
|
| 346 |
|
| 347 |
First, look here to see if your bug has already been reported:
|
| 348 |
http://bugs.qa.debian.org/cgi-bin/debian-installer.cgi?full=yes
|
| 349 |
|
| 350 |
The page is sorted by packages which represent the individual
|
| 351 |
subsystems of debian-installer. File your bug against the respective
|
| 352 |
subsystem or, if you do not know which it is, against the package
|
| 353 |
"install". Look here for an explanation of how to file bugs:
|
| 354 |
http://www.debian.org/Bugs/Reporting
|
| 355 |
|
| 356 |
|
| 357 |
6. Get involved
|
| 358 |
|
| 359 |
The Debian-Installer Team always welcomes people who would like to
|
| 360 |
work on the installer. We have plenty of work to do: fixing bugs,
|
| 361 |
improve usability, create new modules and of course extensive
|
| 362 |
testing. If you are interested to help, check out this page:
|
| 363 |
http://www.debian.org/devel/debian-installer/
|