~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to fi/install-methods/boot-usb-files.xml

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 25496 untranslated -->
 
3
 
 
4
 <sect1 condition="bootable-usb" id="boot-usb-files">
 
5
 <title>Preparing Files for USB Memory Stick Booting</title>
 
6
 
 
7
<para>
 
8
 
 
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.
 
16
 
 
17
</para><para>
 
18
 
 
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"/>).
 
21
 
 
22
</para>
 
23
 
 
24
  <sect2 id="usb-copy-easy">
 
25
  <title>Copying the files &mdash; the easy way</title>
 
26
<para arch="i386">
 
27
 
 
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:
 
32
 
 
33
<informalexample><screen>
 
34
# zcat boot.img.gz &gt; /dev/<replaceable>sda</replaceable>
 
35
</screen></informalexample>
 
36
 
 
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.
 
39
 
 
40
</para><para arch="powerpc">
 
41
 
 
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:
 
48
 
 
49
<informalexample><screen>
 
50
# zcat boot.img.gz &gt; /dev/<replaceable>sda2</replaceable>
 
51
</screen></informalexample>
 
52
 
 
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.
 
55
 
 
56
</para><para>
 
57
 
 
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.
 
67
 
 
68
</para>
 
69
  </sect2>
 
70
 
 
71
  <sect2 id="usb-copy-flexible">
 
72
  <title>Copying the files &mdash; the flexible way</title>
 
73
<para>
 
74
 
 
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.
 
77
 
 
78
</para>
 
79
 
 
80
&usb-setup-i386.xml;
 
81
&usb-setup-powerpc.xml;
 
82
 
 
83
   <sect3>
 
84
   <title>Adding an ISO image</title>
 
85
<para>
 
86
 
 
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>.
 
90
 
 
91
</para><para>
 
92
 
 
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
 
98
support.
 
99
 
 
100
</para><para>
 
101
 
 
102
When you are done, unmount the USB memory stick (<userinput>umount
 
103
/mnt</userinput>) and activate its write protection switch.
 
104
 
 
105
</para>
 
106
   </sect3>
 
107
 
 
108
   <!-- TODO: doesn't this section belong later? -->
 
109
   <sect3 arch="i386">
 
110
   <title>Booting the USB stick</title>
 
111
<warning><para>
 
112
 
 
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>:
 
117
 
 
118
<informalexample><screen>
 
119
# install-mbr /dev/<replaceable>sda</replaceable>
 
120
</screen></informalexample>
 
121
 
 
122
</para></warning>
 
123
   </sect3>
 
124
  </sect2>
 
125
 </sect1>