How to Make a Debian Lenny USB Flash Install Medium

Want to install Debian Lenny from USB? Here's how! (Note that this ERASES any data on the USB stick)

  1. Get a USB stick and pop it into your existing Linux box. If it automatically mounts, unmount it.
  2. install-mbr /dev/device (Replace device with wherever the device is--mine was /dev/sdf)
  3. mkdosfs /dev/device1 (Replace device with wherever the device is--mine was /dev/sdf1)
  4. syslinux /dev/device1
  5. Copy a vmlinuz and an initrd.gz from the amd64 or i386 hd-media installer archive.
  6. Copy a reasonable netinstall ISO image from your friendly Debian mirror (note that this URL will change).
  7. Create a reasonable syslinux.cfg on the key.

That's it! Now just figure out how to get your system to boot from flash and you're set!