Difference between revisions of "Debian netinstall-usb for x200s"
(→Get and copy Files: Add info for standard install) |
(→Get and copy Files) |
||
Line 31: | Line 31: | ||
==Get and copy Files== | ==Get and copy Files== | ||
You will need following files:<br> | You will need following files:<br> | ||
− | For standard install (5100 card) | + | For standard install (5100 card)<br> |
− | (AMD64 install) | + | (AMD64 install)<br> |
− | http://people.debian.org/~aba/d-i/images/daily/hd-media/initrd.gz | + | http://people.debian.org/~aba/d-i/images/daily/hd-media/initrd.gz<br> |
− | http://people.debian.org/~aba/d-i/images/daily/hd-media/vmlinuz | + | http://people.debian.org/~aba/d-i/images/daily/hd-media/vmlinuz<br> |
− | (i386 install) | + | (i386 install)<br> |
− | http://people.debian.org/~joeyh/d-i/images/daily/hd-media/initrd.gz | + | http://people.debian.org/~joeyh/d-i/images/daily/hd-media/initrd.gz<br> |
− | http://people.debian.org/~joeyh/d-i/images/daily/hd-media/vmlinuz | + | http://people.debian.org/~joeyh/d-i/images/daily/hd-media/vmlinuz<br> |
− | For updated-kernel install (5300 card) | + | For updated-kernel install (5300 card)<br> |
http://ftp.de.debian.org/debian/dists/unstable/main/installer-i386/current/images/hd-media/initrd.gz<br> | http://ftp.de.debian.org/debian/dists/unstable/main/installer-i386/current/images/hd-media/initrd.gz<br> | ||
http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso<br> | http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso<br> |
Revision as of 20:22, 7 March 2009
Contents
Intro
This tutorial explains how to create an usb-stick with the debian netinstaller on it. If you have a model containing the "Intel WiFi Link 5100" network card, then a standard Debian Lenny net install works fine and is entirely strightforward, however if you have the "Intel WiFi Link 5300" network card then the 2.6.26.x kernel used will not recognise it so you have to do extra work to do a netinstall.
USB stick
Partition and format the stick
Use
foo:~# fdisk -l
to look which device name your stick has. I will use /dev/sdb in this tutorial. Use fdisk oder cfdisk to create a partition of at least 200MB and format it in FAT16 like this:
foo:~# mkdosfs -F 16 /dev/sdb1
Don't forget to make the partition bootable. What looks like this if you use fdisk
foo:~# fdisk /dev/sdb Command (m for help): a Partition number (1-4): 1 Command (m for help): w The partition table has been altered!
Install MBR
You need the syslinux packet to do this
foo:~# aptitude install syslinux
then
foo:~# dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb 404 bytes (404 B) copied, 0.0275888 s, 14.6 kB/s
Get and copy Files
You will need following files:
For standard install (5100 card)
(AMD64 install)
http://people.debian.org/~aba/d-i/images/daily/hd-media/initrd.gz
http://people.debian.org/~aba/d-i/images/daily/hd-media/vmlinuz
(i386 install)
http://people.debian.org/~joeyh/d-i/images/daily/hd-media/initrd.gz
http://people.debian.org/~joeyh/d-i/images/daily/hd-media/vmlinuz
For updated-kernel install (5300 card)
http://ftp.de.debian.org/debian/dists/unstable/main/installer-i386/current/images/hd-media/initrd.gz
http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso
as you can see i use the i368 architecture, download the appropriate files if you want to use amd64 instead.
Sadly there is no guarantee that the daily-image you pick will work properly - some will, some won't.
and here is a self compiled vanilla 2.6.27.7 kernel:
http://www.congerro.net/pub/vmlinuz.bz2
unzip the vmlinuz.bz2-file:
foo:~# bunzip2 vmlinuz.bz2
If you don't trust me compile your own kernel ^^ Get the sources from kernel.org, untar them, cd into the kernel-source-directory and execute make (assuming you have a machine of the same architecture as the x200s handy), easy huh?
mount the usb stick
foo:~# mount /dev/sdb1 /mnt/usb
then create a directory named syslinux on it
foo:~# mkdir /mnt/usb/syslinux
copy all three files into the directory
foo:~# cp vmlinuz initrd.gz debian-testing-i386-netinst.iso /mnt/usb/syslinux
Now create a file named syslinux.cfg
foo:~# vim /mnt/usb/syslinux/syslinux.cfg
and paste following two lines into it
default vmlinuz append initrd=initrd.gz ramdisk_size=12000 root=/dev/ram rw
unmount the usb-stick
foo:~# cd && umount /mnt/usb
and install the syslinux boot loader
foo:~# syslinux -d /syslinux /dev/sdb1
Finished \o/
Press F12 during boot to select the usb-stick as boot device.
Note
It is not possible to install the 2.6.27.x kernel with the debian installer but you can copy the kernel from the usb-device afterwards ^^