| 1 |
ley |
3981 |
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 |
joeyh |
6950 |
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 |
ley |
3981 |
|
| 11 |
joeyh |
12028 |
Last update: $Date$ |
| 12 |
ley |
4585 |
|
| 13 |
joeyh |
5868 |
|
| 14 |
ley |
3981 |
1. Preliminaries |
| 15 |
|
|
|
| 16 |
joeyh |
5873 |
The debian-installer is still in a beta state. If you encounter |
| 17 |
ley |
3981 |
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 |
joeyh |
3984 |
please direct them to the debian-boot mailing list |
| 20 |
ley |
3981 |
(debian-boot@lists.debian.org) or ask on irc (#debian-boot on the |
| 21 |
|
|
freenode network). |
| 22 |
|
|
|
| 23 |
ley |
4585 |
Recently the debian-installer has switched to ask only the important |
| 24 |
joeyh |
4779 |
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 |
joeyh |
7427 |
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 |
joeyh |
4779 |
3.1. for installing rather than section 3. |
| 29 |
ley |
4585 |
|
| 30 |
joeyh |
10760 |
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 |
ley |
3981 |
|
| 35 |
joeyh |
10760 |
|
| 36 |
ley |
3981 |
2. Getting images |
| 37 |
|
|
|
| 38 |
joeyh |
6950 |
The debian-cd team provides builds of CD images for debian-installer here: |
| 39 |
joeyh |
8421 |
http://people.debian.org/cdimage/testing/ |
| 40 |
ley |
3981 |
|
| 41 |
joeyh |
5873 |
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 |
joeyh |
5891 |
Daily builds of all non-ISO debian-installer images, including floppy images |
| 46 |
joeyh |
10760 |
and initrd's are available, for a complete list with links, see |
| 47 |
|
|
http://www.debian.org/devel/debian-installer/ports-status |
| 48 |
ley |
3981 |
|
| 49 |
joeyh |
4779 |
The subsections below will give the details about which images you should |
| 50 |
|
|
get for each possible means of installation. |
| 51 |
ley |
4775 |
|
| 52 |
joeyh |
5873 |
|
| 53 |
joeyh |
4779 |
2.1 CDROM |
| 54 |
ley |
3981 |
|
| 55 |
joeyh |
4779 |
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 |
joeyh |
5760 |
Download whichever type you prefer and burn it to a CD. |
| 63 |
joeyh |
4779 |
|
| 64 |
joeyh |
5760 |
2.1.1 SCSI CD drives |
| 65 |
|
|
|
| 66 |
joeyh |
12027 |
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 |
joeyh |
5760 |
|
| 71 |
joeyh |
12027 |
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 |
joeyh |
5524 |
2.2 The dreaded floppies |
| 77 |
joeyh |
4779 |
|
| 78 |
ley |
3981 |
If you can't boot from CD, you can download floppy images to install |
| 79 |
joeyh |
8555 |
Debian. You need the floppy/boot.img, the floppy/root.img and possibly |
| 80 |
|
|
one of the driver disks. |
| 81 |
ley |
3981 |
|
| 82 |
joeyh |
8555 |
- floppy/net-drivers.img |
| 83 |
joeyh |
5524 |
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 |
joeyh |
8555 |
- floppy/cd-drivers.img |
| 87 |
joeyh |
5524 |
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 |
joeyh |
4779 |
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 |
ley |
3981 |
|
| 98 |
joeyh |
8555 |
The boot floppy is the one with boot.img on it. This floppy, when |
| 99 |
joeyh |
4779 |
booted, will prompt you to insert a second floppy -- use the one with |
| 100 |
joeyh |
8555 |
root.img on it. |
| 101 |
ley |
3981 |
|
| 102 |
joeyh |
5524 |
2.3 USB memory stick |
| 103 |
joeyh |
4779 |
|
| 104 |
joeyh |
5524 |
It's also possible to install from removable USB storage devices. For |
| 105 |
joeyh |
6534 |
example a USB keychain can make a handy Debian install media the you |
| 106 |
|
|
can take with you anywhere. |
| 107 |
joeyh |
5524 |
|
| 108 |
joeyh |
6534 |
The easiest way to prepare your USB memory stick is to download |
| 109 |
joeyh |
8555 |
hd-media/boot.img.gz, and use gunzip to extract the 128 MB image from that |
| 110 |
joeyh |
6534 |
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 |
joeyh |
5524 |
|
| 116 |
joeyh |
6534 |
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 |
joeyh |
5524 |
|
| 120 |
joeyh |
6534 |
There are other, more flexible ways to set up a memory stick to use the |
| 121 |
joeyh |
8066 |
debian-installer, and it's possible to get it to work with smaller memory |
| 122 |
joeyh |
6534 |
sticks. This web page has more complete directions for using |
| 123 |
|
|
debian-installer and a bootable USB stick: http://d-i.pascal.at/ |
| 124 |
joeyh |
5524 |
|
| 125 |
|
|
2.3.1 Booting directly from USB storage |
| 126 |
|
|
|
| 127 |
joeyh |
6536 |
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 |
joeyh |
5524 |
|
| 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 |
joeyh |
8555 |
need to put the floppy/boot.img on a floppy (see section 2.2). |
| 137 |
joeyh |
5524 |
|
| 138 |
joeyh |
8555 |
Now boot from the floppy. It should detect your USB device and proceed |
| 139 |
|
|
with booting from it. |
| 140 |
joeyh |
5524 |
|
| 141 |
joeyh |
8720 |
2.4 Booting from network |
| 142 |
joeyh |
5524 |
|
| 143 |
gaudenz |
5889 |
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 |
joeyh |
7842 |
They are not explaind here. For an explanation of how to do PXE netbooting |
| 146 |
|
|
(on i386), see this web page: |
| 147 |
|
|
http://wiki.debian.net/index.cgi?DebianInstallerNetbootPXE |
| 148 |
gaudenz |
5889 |
|
| 149 |
joeyh |
8555 |
The files in netboot/ can be used to netboot debian-installer. |
| 150 |
joeyh |
8616 |
If you don't have a netboot setup, you can write the netboot/mini.iso |
| 151 |
|
|
to a CD to produce a minimal netinst CD. |
| 152 |
gaudenz |
5889 |
|
| 153 |
joeyh |
8720 |
2.5 Booting from hard disk |
| 154 |
joeyh |
5891 |
|
| 155 |
joeyh |
8720 |
It's possible to boot the installer using no removable media, but just an |
| 156 |
|
|
existing hard disk, which can have a different OS on it. These instructions |
| 157 |
|
|
are for i386 systems, such as those running windows. Download |
| 158 |
|
|
hd-media/initrd.gz, hd-media/vmlinuz, and a Debian CD image to the top-level |
| 159 |
|
|
directory of the hard disk. Make sure that the CD image has a filename |
| 160 |
|
|
ending in ".iso". Now it's just a matter of booting linux with the initrd. |
| 161 |
|
|
|
| 162 |
|
|
If you have grub installed, boot grub, and do the following: |
| 163 |
|
|
|
| 164 |
|
|
grub>kernel (hd0,0)/vmlinuz root=/dev/ram ramdisk_size=8192 devfs=mount,dall |
| 165 |
|
|
grub>initrd (hd0,0)/initrd.gz |
| 166 |
|
|
grub>boot |
| 167 |
|
|
|
| 168 |
joeyh |
12850 |
Note that the ramdisk_size parameter may need to be increased, depending on |
| 169 |
|
|
the image you are booting. |
| 170 |
|
|
|
| 171 |
joeyh |
10760 |
Ater the installer boots , it should find the ISO you placed on the hard |
| 172 |
|
|
disk, and continue with the install. You will not be able to reformat the |
| 173 |
|
|
partition the installer was booted from if you use this technique. |
| 174 |
joeyh |
8720 |
|
| 175 |
|
|
|
| 176 |
ley |
3981 |
3. Installation |
| 177 |
|
|
|
| 178 |
|
|
From here on, I assume you have downloaded and burnt the 'netinst' |
| 179 |
|
|
CD. Put it into your CD-drive and make your system boot from CD. |
| 180 |
|
|
|
| 181 |
|
|
You will be greeted by a welcome screen. Hit ENTER to boot. After a |
| 182 |
ley |
4585 |
while you will be asked to select your language. This will affect |
| 183 |
|
|
translation of debian-installer (if already available for your |
| 184 |
joeyh |
9483 |
language) as well as the choice of country and keyboard layout. Select |
| 185 |
|
|
your language and press ENTER to continue. |
| 186 |
ley |
3981 |
|
| 187 |
ley |
4585 |
Sit back while debian-installer detects some of your hardware, and |
| 188 |
|
|
loads additional installer modules from the cd. |
| 189 |
|
|
|
| 190 |
joeyh |
5760 |
Next the installer will try to detect your network hardware and set up |
| 191 |
|
|
networking by DHCP. If you are not on a network or do not have DHCP, you |
| 192 |
|
|
will see an error message. You do not need a network to continue the |
| 193 |
joeyh |
10767 |
install, so this can be easily worked around. Select continue and watch the |
| 194 |
joeyh |
5760 |
main menu which will appear everytime if something went wrong, so you have |
| 195 |
joeyh |
10767 |
more control over the situation. Proceed to "Partition disks". |
| 196 |
ley |
4585 |
|
| 197 |
joeyh |
10767 |
Now it is time to partition your disks. First you will be given the |
| 198 |
|
|
opportunity to automatically partition either an entire drive, or free |
| 199 |
|
|
space on a drive. If you do not want to autopartition, choose manual from |
| 200 |
|
|
the menu. |
| 201 |
ley |
4585 |
|
| 202 |
joeyh |
10767 |
On the next screen you will see your partition table, how the partitions |
| 203 |
|
|
will be formatted, and where they will be mounted. Select a partition to |
| 204 |
|
|
modify or delete it. If you did automatic partitioning, you should just be |
| 205 |
|
|
able to choose "Finished partitioning" from the menu to use what it set up. |
| 206 |
|
|
Remember to assign at least one partition for swap space and to mount a |
| 207 |
|
|
partition on "/". |
| 208 |
ley |
4585 |
|
| 209 |
joeyh |
5584 |
Now debian-installer starts to install the base system which can take a |
| 210 |
joeyh |
6534 |
while. That is followed by installing a kernel. |
| 211 |
ley |
4585 |
|
| 212 |
|
|
The last step is to install a boot loader. You will be prompted for |
| 213 |
joeyh |
8424 |
the device where GRUB should be installed. It defaults to the boot |
| 214 |
|
|
record of the first harddrive which is generally a good choice, |
| 215 |
|
|
but if you have another OS installer that you want to keep booting, be |
| 216 |
|
|
careful not to overwrite your master boot record. |
| 217 |
ley |
4585 |
|
| 218 |
|
|
Debian-installer will now tell you that the installation has |
| 219 |
|
|
finished. Remove the cdrom from your drive and hit ENTER to reboot |
| 220 |
|
|
your machine. Make sure it boots from harddisk, cross your fingers and |
| 221 |
|
|
wait until base-config is started. |
| 222 |
|
|
|
| 223 |
|
|
Stepping through base-config is not within the scope of this document |
| 224 |
|
|
as it is not part of debian-installer. |
| 225 |
|
|
|
| 226 |
|
|
|
| 227 |
joeyh |
7427 |
3.1. Expert mode installation |
| 228 |
ley |
4585 |
|
| 229 |
|
|
From here on, I assume you have downloaded and burnt the 'netinst' |
| 230 |
|
|
CD. Put it into your CD-drive and make your system boot from CD. |
| 231 |
|
|
|
| 232 |
joeyh |
7427 |
You will be greeted by a welcome screen. Type "expert" and hit ENTER to |
| 233 |
|
|
boot. After a while you will be presented with the main-menu of the |
| 234 |
|
|
debian-installer. Some general remarks: |
| 235 |
ley |
4585 |
|
| 236 |
ley |
3981 |
The main-menu is not static. New entries are added when new installer |
| 237 |
|
|
modules are loaded. However main-menu tries to resolve the next best |
| 238 |
joeyh |
3984 |
choice and presents that as default selection. If that selection does |
| 239 |
ley |
3985 |
not suit your needs just select another entry. If you select an entry |
| 240 |
|
|
that requires the configuration of an entry you did not yet choose, |
| 241 |
|
|
the main-menu will try to resolve these dependencies automatically. |
| 242 |
ley |
4586 |
This can be used to automate the install process, by selecting always |
| 243 |
ley |
4587 |
the last visible step. |
| 244 |
ley |
3981 |
|
| 245 |
joeyh |
9483 |
When main-menu first is shown, the default will be "Choose language". Hit |
| 246 |
|
|
return and choose your language from the list that now is presented. You |
| 247 |
|
|
will be taken back to main-menu and the next item will be the default, |
| 248 |
|
|
which is "Choose country". Select that entry and observe that the installer |
| 249 |
|
|
tries to set a reasonable default based upon your language selection. |
| 250 |
|
|
Select your country and continue. |
| 251 |
ley |
3981 |
|
| 252 |
joeyh |
9483 |
The next step is "Detect a keyboard and select layout". Again the installer |
| 253 |
|
|
will attempt to pick a reasonable default. Select your preferred keymap and |
| 254 |
|
|
continue. |
| 255 |
ley |
3981 |
|
| 256 |
joeyh |
9483 |
The next step is "Detect CDROM devices and mount the CD". As part of this |
| 257 |
|
|
step, the installer will probe the system for hardware, and load kernel |
| 258 |
|
|
modules for detect hardware. You will be given a chance to veto the loading |
| 259 |
|
|
of kernel modules (in case they cause problems), and to specify parameters |
| 260 |
|
|
to pass to the kernel when the modules are loaded. After the hardware is |
| 261 |
|
|
detected, the CD should be found automatically in most cases. |
| 262 |
ley |
3981 |
|
| 263 |
joeyh |
5760 |
Now we are able to load the rest of the installer. Select the corresponding |
| 264 |
|
|
entry "Load installer components". Since the modules we want to access are |
| 265 |
|
|
on the CD, select "cdrom-retriever". The floppy-retriever can be used to |
| 266 |
|
|
load additional modules from a floppy, e.g. if you have exotic hardware. |
| 267 |
|
|
See section 2.1.1 if you have a SCSI CDROM. |
| 268 |
ley |
3981 |
|
| 269 |
joeyh |
5760 |
You are presented a long list with optional components to install. We |
| 270 |
|
|
only want to install the standard components, which are selected |
| 271 |
ley |
3981 |
automatically, so just hit "Continue". Wait and watch until all |
| 272 |
joeyh |
5760 |
components have been loaded. |
| 273 |
ley |
3981 |
|
| 274 |
|
|
Main-menu appears again, but with the additional modules there are new |
| 275 |
|
|
entries. The next default step would be to configure a network. We are |
| 276 |
|
|
breaking out of the default route, because we do not need networking |
| 277 |
|
|
since the base debs are on the CD. |
| 278 |
|
|
|
| 279 |
joeyh |
9483 |
Select "Detect hardware". This will repeat the hardware detection process, |
| 280 |
|
|
but now the installer has more kernel modules available to it. |
| 281 |
ley |
3981 |
|
| 282 |
joeyh |
10767 |
Now it is time to partition your disk, so choose "Partition disks" from the |
| 283 |
|
|
menu. You will be presented with a display showing the partitions on your |
| 284 |
|
|
system. Select partitons from the list to modify or delete them. If you |
| 285 |
|
|
have free space it will also show up under a drive, and you can select it |
| 286 |
|
|
to create new partitions. When modifying a partition you will have the |
| 287 |
|
|
opportunity to choose the file system to use, and where to mount it. The |
| 288 |
|
|
partitioning menu also has a choice at the bottom that can be used to |
| 289 |
|
|
automatically partition a drive or existing free space on a drive, if you'd |
| 290 |
|
|
rather go that route. Be sure to create at least two partitions, one for |
| 291 |
|
|
swap and one for the root filesystem. |
| 292 |
ley |
3981 |
|
| 293 |
joeyh |
10767 |
After finishing partitioning, select "Finished partitioning" from the menu, |
| 294 |
|
|
and confirm that the filesystems should be created as requested. |
| 295 |
ley |
3981 |
|
| 296 |
joeyh |
8424 |
Now we are ready to install the base system. Select the corresponding entry |
| 297 |
|
|
("Install the base system") and lean back. The packages are retrieved from |
| 298 |
|
|
the CD and installed in the /target area. During this step, you will |
| 299 |
|
|
presented a list of all available kernel images on the CD. Select the most |
| 300 |
|
|
suitable for your system and wait until the installation has finished. |
| 301 |
ley |
3981 |
|
| 302 |
joeyh |
10767 |
Now we are almost done. Select "Install GRUB on a hard disk" or |
| 303 |
|
|
"Install LILO on a hard disk" to make your harddisk bootable. You will |
| 304 |
|
|
be asked where GRUB/GRUB shall install the bootblock. A good idea is |
| 305 |
joeyh |
8424 |
the first hard drive in your system which should be in fact the |
| 306 |
ley |
3985 |
default selection. |
| 307 |
ley |
3981 |
|
| 308 |
|
|
If that last step has completed successfully select "Finish the |
| 309 |
joeyh |
3984 |
installation and reboot", eject your CD and wait until your computer |
| 310 |
ley |
3981 |
restarts. Make sure it boots from harddisk, cross your fingers and |
| 311 |
|
|
wait until base-config is started. |
| 312 |
|
|
|
| 313 |
|
|
Stepping through base-config is not within the scope of this document |
| 314 |
|
|
as it is not part of debian-installer. |
| 315 |
|
|
|
| 316 |
joeyh |
4779 |
|
| 317 |
ley |
3981 |
4. Installation Report |
| 318 |
|
|
|
| 319 |
|
|
If you successfully managed an installation with debian-installer, |
| 320 |
joeyh |
6318 |
please take time to provide us with a report. There is a template |
| 321 |
ley |
3981 |
named "install-report.template" in the /root directory of a freshly |
| 322 |
|
|
installed system. Please fill it out and file it as a bug against the |
| 323 |
|
|
package "installation-reports". See section 5 on how to file bugs. |
| 324 |
|
|
|
| 325 |
|
|
|
| 326 |
|
|
5. Reporting bugs |
| 327 |
|
|
|
| 328 |
|
|
If you did not reach base-config or ran into other trouble, you |
| 329 |
|
|
probably found a bug in debian-installer. To improve the installer it |
| 330 |
|
|
is necessary that we know about them, so please take your time and |
| 331 |
|
|
report them. |
| 332 |
|
|
|
| 333 |
joeyh |
3984 |
First, look here to see if your bug has already been reported: |
| 334 |
ley |
3981 |
http://bugs.qa.debian.org/cgi-bin/debian-installer.cgi?full=yes |
| 335 |
|
|
|
| 336 |
|
|
The page is sorted by packages which represent the individual |
| 337 |
joeyh |
3984 |
subsystems of debian-installer. File your bug against the respective |
| 338 |
ley |
3981 |
subsystem or, if you do not know which it is, against the package |
| 339 |
|
|
"install". Look here for an explanation of how to file bugs: |
| 340 |
|
|
http://www.debian.org/Bugs/Reporting |
| 341 |
|
|
|
| 342 |
|
|
|
| 343 |
|
|
6. Get involved |
| 344 |
|
|
|
| 345 |
|
|
The Debian-Installer Team always welcomes people who would like to |
| 346 |
|
|
work on the installer. We have plenty of work to do: fixing bugs, |
| 347 |
|
|
improve usability, create new modules and of course extensive |
| 348 |
|
|
testing. If you are interested to help, check out this page: |
| 349 |
ley |
4023 |
http://www.debian.org/devel/debian-installer/ |