HOWTO create a Debian USB installation flash drive

Hi all,

a few days ago I had to install Debian (my favourite GNU/Linux distribution) on a friend’s laptop. One way to do this is using a small USB flash drive.

The required steps to create a Debian USB installation flash drive are the following:

  1. Get the boot image (boot.img.gz file) of your architecture (e.g. i386) from installer-i386_boot.img.gz. You many need another architecture look stable_main_architecture.
  2. Insert your USB stick.
  3. (Optional) Unmount your USB stick if it is automatically mounted.
  4. Prepare USB stick (will erase data): 
    1. $> zcat boot.img.gz > /dev/sdX
  5. Unplug and plug the usb stick (or just mount the disk:
    1. $> mount /dev/sdX /var/mytest
  6. Download the Net Install ISO image (size ~160 MB) from http://www.debian.org/CD/netinst/#netinst-stable (select netinst image) or the Businesscard image (size ~40 MB) from http://www.debian.org/CD/netinst/#businesscard-stable (select businesscard image)
  7. Copy the downloaded ISO image to your USB stick:
    1. $> mount /dev/sdX /var/mytest
    2. $> cp <path/to/iso/image> /var/mytest
    3. $> umount /dev/sdX
  8. Ready 🙂

Now you can plugin this usb stick to the computer on which you would like to install Debian stable and set the BIOS to boot from USB stick.

Regards,
Adrianos Dadis.

Democracy Requires Free Software.

Advertisement

About Adrianos Dadis

Building Big Data & Stream processing solutions in many business domains. Interested in distributed systems and enterprise integration.
This entry was posted in GNU/Linux and tagged . Bookmark the permalink.

Post your thought

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s