1
<!-- retain these comments for translator revision tracking -->
2
<!-- original version: 27345 untranslated -->
5
<title>USB stick partitioning on &arch-title;</title>
8
Most USB sticks do not come pre-configured in such a way that Open
9
Firmware can boot from them, so you will need to repartition the stick.
10
On Mac systems, run <userinput>mac-fdisk /dev/sda</userinput>,
11
initialise a new partition map using the <userinput>i</userinput>
12
command, and create a new partition of type Apple_Bootstrap using the
13
<userinput>C</userinput> command. (Note that the first "partition" will
14
always be the partition map itself.) Then type
16
<informalexample><screen>
17
$ hformat /dev/<replaceable>sda2</replaceable>
18
</screen></informalexample>
20
Take care that you use the correct device name for your USB stick. The
21
<command>hformat</command> command is contained in the
22
<classname>hfsutils</classname> Debian package.
26
In order to start the kernel after booting from the USB stick, we will
27
put a boot loader on the stick. The <command>yaboot</command> boot
28
loader can be installed on an HFS filesystem and can be reconfigured by
29
just editing a text file. Any operating system which supports the HFS
30
file system can be used to make changes to the configuration of the boot
35
The normal <command>ybin</command> tool that comes with
36
<command>yaboot</command> does not yet understand USB storage devices,
37
so you will have to install <command>yaboot</command> by hand using the
38
<classname>hfsutils</classname> tools. Type
40
<informalexample><screen>
42
$ hcopy -r /usr/lib/yaboot/yaboot :
43
$ hattrib -c UNIX -t tbxi :yaboot
46
</screen></informalexample>
48
Again, take care that you use the correct device name. The partition
49
must not be otherwise mounted during this procedure. This procedure
50
writes the boot loader to the partition, and uses the HFS utilities to
51
mark it in such a way that Open Firmware will boot it. Having done this,
52
the rest of the USB stick may be prepared using the normal Unix
57
Mount the partition (<userinput>mount /dev/sda2 /mnt</userinput>) and
58
copy the following files from the Debian archives to the stick:
63
<filename>vmlinux</filename> (kernel binary)
68
<filename>initrd.gz</filename> (initial ramdisk image)
73
<filename>yaboot.conf</filename> (yaboot configuration file)
78
<filename>boot.msg</filename> (optional boot message)
83
Optional kernel modules
90
The <filename>yaboot.conf</filename> configuration file should
91
contain the following lines:
93
<informalexample><screen>
102
initrd-size=10000<phrase condition="sarge">
103
append="devfs=mount,dall --"</phrase>
105
</screen></informalexample>
107
Please note that the <userinput>initrd-size</userinput> parameter
108
may need to be increased, depending on the image you are booting.