Difference between revisions of "Debian netinstall-usb for x200s"

From ThinkWiki
Jump to: navigation, search
(Intro: Note that standard installer works fine with 5100 card)
(Intro)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=Intro=
 
=Intro=
 
This tutorial explains how to create an usb-stick with the debian netinstaller on it.
 
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.
+
 
 +
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 straightforward. 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 get a later kernel used for the install.
 +
 
 +
The x200s is an amd64 machine, so that is the natural architecture to install. However you may choose to install the i386 architecture instead for better compatibility with proprietary plugins (if you use such things), which sometimes aren't available in amd64 format.
  
 
=USB stick=
 
=USB stick=
Line 31: Line 34:
 
==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)<br>
 +
(AMD64 install)<br>
 +
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<br>
 +
(i386 install)<br>
 +
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<br>
 +
 +
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>
as you can see i use the i368 architecture, download the appropriate files if you want to use an other architecture
+
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:<br>
 
and here is a self compiled vanilla 2.6.27.7 kernel:<br>
Line 41: Line 53:
 
unzip the vmlinuz.bz2-file:
 
unzip the vmlinuz.bz2-file:
 
  foo:~# bunzip2 vmlinuz.bz2
 
  foo:~# bunzip2 vmlinuz.bz2
 
  
 
If you don't trust me compile your own kernel ^^
 
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, easy huh?
+
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?
  
  

Latest revision as of 20:26, 7 March 2009

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 straightforward. 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 get a later kernel used for the install.

The x200s is an amd64 machine, so that is the natural architecture to install. However you may choose to install the i386 architecture instead for better compatibility with proprietary plugins (if you use such things), which sometimes aren't available in amd64 format.

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 ^^