Debian NetInstall from USB stick

1 Format the stick

# fdisk /dev/sdb
d -> delete all partition
n -> create a new primary
t -> type '6' for vfat 16
a -> toggle bootable flag
w -> write and exit
# mkfs.vfat -F 16 /dev/sdb1

2 Install the syslinux MBR

# aptitude install syslinux
# dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb

3 Copy the install files into the USB stick

For AMD64:

# mount /dev/sdb1 /mnt
# mkdir /mnt/syslinux
# cd /mnt/syslinux
# wget http://ftp.de.debian.org/debian/dists/unstable/main/installer-amd64/current/images/hd-media/initrd.gz
# wget http://ftp.de.debian.org/debian/dists/unstable/main/installer-amd64/current/images/hd-media/vmlinuz
# wget http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-6.0.1a-amd64-netinst.iso

4 Create the syslinux configuration file

# vim /mnt/usb/syslinux/syslinux.cfg

default vmlinuz
append initrd=initrd.gz ramdisk_size=12000 root=/dev/ram rw

5 Unmount the disk and install the bootloader

# umount /mnt

# syslinux -d /syslinux /dev/sdb1

That's it :)

en/ressources/astuces/netinstall_usb.txt · Last modified: 2011/06/12 20:42 by julien
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0