1
<!-- retain these comments for translator revision tracking -->
2
<!-- original version: 25496 untranslated -->
4
<sect1 condition="bootable-usb" id="boot-usb-files">
5
<title>Preparing Files for USB Memory Stick Booting</title>
9
For preparing the USB stick you will need a system where GNU/Linux is
10
already running and where USB is supported. You should ensure that the
11
usb-storage kernel module is loaded (<userinput>modprobe
12
usb-storage</userinput>) and try to find out which SCSI device the USB
13
stick has been mapped to (in this example
14
<filename>/dev/sda</filename> is used). To write to your stick, you
15
will probably have to turn off its write protection switch.
19
Note, that the USB stick should be at least 128 MB in size (smaller
20
setups are possible if you follow <xref linkend="usb-copy-flexible"/>).
24
<sect2 id="usb-copy-easy">
25
<title>Copying the files — the easy way</title>
28
There is an all-in-one file <filename>hd-media/boot.img.gz</filename>
29
which contains all the installer files (including the kernel) as well
30
as <command>SYSLINUX</command> and its configuration file. You only
31
have to extract it directly to your USB stick:
33
<informalexample><screen>
34
# zcat boot.img.gz > /dev/<replaceable>sda</replaceable>
35
</screen></informalexample>
37
Of course this will destroy anything already on the device, so take
38
care that you use the correct device name for your USB stick.
40
</para><para arch="powerpc">
42
There is an all-in-one file <filename>hd-media/boot.img.gz</filename>
43
which contains all the installer files (including the kernel) as well
44
as <command>yaboot</command> and its configuration file. Create a
45
partition of type "Apple_Bootstrap" on your USB stick using
46
<command>mac-fdisk</command>'s <userinput>C</userinput> command and
47
extract the image directly to that:
49
<informalexample><screen>
50
# zcat boot.img.gz > /dev/<replaceable>sda2</replaceable>
51
</screen></informalexample>
53
Of course this will destroy anything already on the device, so take
54
care that you use the correct device name for your USB stick.
58
After that, mount the USB memory stick (<userinput>mount
59
<replaceable arch="i386">/dev/sda</replaceable>
60
<replaceable arch="powerpc">/dev/sda2</replaceable>
61
/mnt</userinput>), which will now have
62
<phrase arch="i386">a FAT filesystem</phrase>
63
<phrase arch="powerpc">an HFS filesystem</phrase>
64
on it, and copy a Debian netinst or businesscard ISO image to it.
65
Please note that the file name must end in <filename>.iso</filename>.
66
Unmount the stick (<userinput>umount /mnt</userinput>) and you are done.
71
<sect2 id="usb-copy-flexible">
72
<title>Copying the files — the flexible way</title>
75
If you like more flexibility or just want to know what's going on, you
76
should use the following method to put the files on your stick.
81
&usb-setup-powerpc.xml;
84
<title>Adding an ISO image</title>
87
Now you should put any Debian ISO image (businesscard, netinst or even
88
a full one) onto your stick (if it fits). The file name of such an
89
image must end in <filename>.iso</filename>.
93
If you want to install over the network, without using an ISO image,
94
you will of course skip the previous step. Moreover you will have to
95
use the initial ramdisk from the <filename>netboot</filename>
96
directory instead of the one from <filename>hd-media</filename>,
97
because <filename>hd-media/initrd.gz</filename> does not have network
102
When you are done, unmount the USB memory stick (<userinput>umount
103
/mnt</userinput>) and activate its write protection switch.
108
<!-- TODO: doesn't this section belong later? -->
110
<title>Booting the USB stick</title>
113
If your system refuses to boot from the memory stick, the stick may
114
contain an invalid master boot record (MBR). To fix this, use the
115
<command>install-mbr</command> command from the package
116
<classname>mbr</classname>:
118
<informalexample><screen>
119
# install-mbr /dev/<replaceable>sda</replaceable>
120
</screen></informalexample>