From 1ea73eea5ecc6a8ed901316049259aee737ee554 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 7 Oct 2005 19:51:38 +0000 Subject: move manual to top-level directory, split out of debian-installer package --- fi/install-methods/usb-setup/i386.xml | 101 ++++++++++++++++++++++++++++ fi/install-methods/usb-setup/powerpc.xml | 111 +++++++++++++++++++++++++++++++ 2 files changed, 212 insertions(+) create mode 100644 fi/install-methods/usb-setup/i386.xml create mode 100644 fi/install-methods/usb-setup/powerpc.xml (limited to 'fi/install-methods/usb-setup') diff --git a/fi/install-methods/usb-setup/i386.xml b/fi/install-methods/usb-setup/i386.xml new file mode 100644 index 000000000..cbeab6250 --- /dev/null +++ b/fi/install-methods/usb-setup/i386.xml @@ -0,0 +1,101 @@ + + + + + USB stick partitioning on &arch-title; + + +We will show how to setup the memory stick to use the first partition, +instead of the entire device. + + + +Since most USB sticks come pre-configured with a single FAT16 +partition, you probably won't have to repartition or reformat the +stick. If you have to do that anyway, use cfdisk +or any other partitioning tool for creating a FAT16 partition and then +create the filesystem using: + + +# mkdosfs /dev/sda1 + + +Take care that you use the correct device name for your USB stick. The +mkdosfs command is contained in the +dosfstools Debian package. + + + +In order to start the kernel after booting from the USB stick, we will +put a boot loader on the stick. Although any boot loader +(e.g. LILO) should work, it's convenient to use +SYSLINUX, since it uses a FAT16 partition and can +be reconfigured by just editing a text file. Any operating system +which supports the FAT file system can be used to make changes to the +configuration of the boot loader. + + + +To put SYSLINUX on the FAT16 partition on your USB +stick, install the syslinux and +mtools packages on your system, and do: + + +# syslinux /dev/sda1 + + +Again, take care that you use the correct device name. The partition +must not be mounted when starting SYSLINUX. This +procedure writes a boot sector to the partition and creates the file +ldlinux.sys which contains the boot loader code. + + + +Mount the partition (mount /dev/sda1 /mnt) and +copy the following files from the Debian archives to the stick: + + + + +vmlinuz (kernel binary) + + + + +initrd.gz (initial ramdisk image) + + + + +syslinux.cfg (SYSLINUX configuration file) + + + + +Optional kernel modules + + + + +If you want to rename the files, please note that +SYSLINUX can only process DOS (8.3) file names. + + + +The syslinux.cfg configuration file should +contain the following two lines: + + +default vmlinuz +append initrd=initrd.gz ramdisk_size=12000 root=/dev/rd/0 init=/linuxrc rw + + +Please note that the ramdisk_size parameter +may need to be increased, depending on the image you are booting. + +If the boot fails, you can try adding devfs=mount,dall +to the append line. + + + + diff --git a/fi/install-methods/usb-setup/powerpc.xml b/fi/install-methods/usb-setup/powerpc.xml new file mode 100644 index 000000000..36c572fa4 --- /dev/null +++ b/fi/install-methods/usb-setup/powerpc.xml @@ -0,0 +1,111 @@ + + + + + USB stick partitioning on &arch-title; + + +Most USB sticks do not come pre-configured in such a way that Open +Firmware can boot from them, so you will need to repartition the stick. +On Mac systems, run mac-fdisk /dev/sda, +initialise a new partition map using the i +command, and create a new partition of type Apple_Bootstrap using the +C command. (Note that the first "partition" will +always be the partition map itself.) Then type + + +$ hformat /dev/sda2 + + +Take care that you use the correct device name for your USB stick. The +hformat command is contained in the +hfsutils Debian package. + + + +In order to start the kernel after booting from the USB stick, we will +put a boot loader on the stick. The yaboot boot +loader can be installed on an HFS filesystem and can be reconfigured by +just editing a text file. Any operating system which supports the HFS +file system can be used to make changes to the configuration of the boot +loader. + + + +The normal ybin tool that comes with +yaboot does not yet understand USB storage devices, +so you will have to install yaboot by hand using the +hfsutils tools. Type + + +$ hmount /dev/sda2 +$ hcopy -r /usr/lib/yaboot/yaboot : +$ hattrib -c UNIX -t tbxi :yaboot +$ hattrib -b : +$ humount + + +Again, take care that you use the correct device name. The partition +must not be otherwise mounted during this procedure. This procedure +writes the boot loader to the partition, and uses the HFS utilities to +mark it in such a way that Open Firmware will boot it. Having done this, +the rest of the USB stick may be prepared using the normal Unix +utilities. + + + +Mount the partition (mount /dev/sda2 /mnt) and +copy the following files from the Debian archives to the stick: + + + + +vmlinux (kernel binary) + + + + +initrd.gz (initial ramdisk image) + + + + +yaboot.conf (yaboot configuration file) + + + + +boot.msg (optional boot message) + + + + +Optional kernel modules + + + + + + +The yaboot.conf configuration file should +contain the following lines: + + +default=install +root=/dev/ram + +message=/boot.msg + +image=/vmlinux + label=install + initrd=/initrd.gz + initrd-size=10000 + append="devfs=mount,dall --" + read-only + + +Please note that the initrd-size parameter +may need to be increased, depending on the image you are booting. + + + -- cgit v1.2.3