Debian: Create a booting USB Stick for Installation

How can we create a USB Memory Stick for Debian 7.1 (Wheezy) installation?
Well, it’s very easy compared to my thought. It takes several minutes to create a USB memory stick to install either Debian i386 or AMD-64. Here our example is i386 based.

Firstly we need a USB memory stick with a minimal size of 1GB, then it takes us two commands to finish the preparation.

Note: Before preparing a booting USB stick, make sure all the files on USB stick is backup-ed, as we need to format the stick.

Step One:

Copy the hd-media image file from a Debian mirror website, and write it to your USB memory stick.
The file we need is boot.img.gz. Make sure it’s downloaded from the right directory “hd-media“:

It’s 1GB in size after decompressing. Then you can use zcat to write this file to your USB stick:

zcat boot.img.gz > /dev/disk1

/dev/disk1 is the equipment name for your USB when you plug it into a laptop, it’s not something like /dev/disk1sX.

Step Two:

After command one, you can now mount the disk and copy the netinstall Debian ISO image there:

wget -O /dev/disk1s0/debian-7.1.0-i386-netinst.iso

Now the booting USB stick is ready. Have fun!

Share Button

Leave a comment

Your email address will not be published. Required fields are marked *