Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:ressources:astuces:netinstall_usb [2011/06/12 18:42] (current)
Line 1: Line 1:
 +====== Debian NetInstall from USB stick ======
 +
 +===== - Format the stick =====
 +<​code>​
 +# 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
 +</​code>​
 +
 +<​code>​
 +# mkfs.vfat -F 16 /dev/sdb1
 +</​code>​
 +
 +===== - Install the syslinux MBR =====
 +
 +<​code>​
 +# aptitude install syslinux
 +# dd if=/​usr/​lib/​syslinux/​mbr.bin of=/dev/sdb
 +</​code>​
 +
 +===== - Copy the install files into the USB stick =====
 +
 +For AMD64:
 +
 +<​code>​
 +# 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
 +</​code>​
 +
 +===== - Create the syslinux configuration file =====
 +
 +<​code>​
 +# vim /​mnt/​usb/​syslinux/​syslinux.cfg
 +
 +default vmlinuz
 +append initrd=initrd.gz ramdisk_size=12000 root=/​dev/​ram rw
 +
 +</​code>​
 +
 +===== - Unmount the disk and install the bootloader =====
 +
 +<​code>​
 +# umount /mnt
 +
 +# syslinux -d /syslinux /dev/sdb1
 +</​code>​
 +
 +
 +That's it :)
  
en/ressources/astuces/netinstall_usb.txt ยท Last modified: 2011/06/12 18:42 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0