User Tools

Site Tools


en:ressources:astuces:netinstall_usb

Debian NetInstall from USB stick

- 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

- Install the syslinux MBR

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

- 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

- Create the syslinux configuration file

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

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

- 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: 2024/04/17 10:19 by 127.0.0.1