Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Ubuntu, I want to install Debian Squeeze on my PC with a bootable USB stick. I found this tutorial:

Plug the usb key in order to find the device location:

$ df -k
/dev/sdb                244476    217968     26508  90% /media/xxx

It shows that /dev/sdb is my usb key. Then I unmount it

# umount /dev/sdb

Download these two files:

# cd /tmp/
# wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz
# wget http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso

Copy the first on the stick (it has to be umounted):

# zcat boot.img.gz > /dev/sdb

Then mount the stick and copy debian-testing-i386-netinst.iso onto it:

# mount /dev/sdb /mnt/
# cp /tmp/debian-testing-i386-netinst.iso /mnt/
# umount /mnt/

The USB key is now ready. Plug it on the computer to install, select in the BIOS USB for first boot device and start the Debian Squeeze installation.

In the step :

# cp /tmp/debian-testing-i386-netinst.iso /mnt/

the ISO file is just copied, not extracted - Is this correct?

share|improve this question
this question shows how i do it, a problem that arose, and how i fixed it: unix.stackexchange.com/questions/25339/… – ixtmixilix Nov 26 '11 at 11:13
yes it is correct, this is one of the methods Debian supports – enzotib Nov 26 '11 at 16:33
Where did you find this tutorial? – Gilles Nov 26 '11 at 22:57

That procedure has always worked for me. I tried using unetbootin with debian but for some reasons it never worked for me (strangely, it works without problems for other distros i've tried like Ubuntu, Finnix (both Debian based!) and CentOS).

But now, starting from Squeeze release, I found that the netinstall iso image works flawlessly from USB, too!

Download it and do

dd if=debian-*-netinst.iso of=/dev/sdX

where /dev/sdX is your USB stick.

share|improve this answer

Leave the stick unmounted and then as root:

cat XXXX.iso > /dev/sdX
share|improve this answer
you need not be root to be able to do this; in fact it would be a lot safer if u r not root – Tshepang Jun 13 '12 at 9:14
  1. If you are creating a bootable USB, for the purpose of doing an installation. You might want to check out http://unetbootin.sourceforge.net/ . Most distros have packages available, in the repos and possibly unofficial posting online. This tool automates a full ISO to bootable USB conversion. The USB must be partitioned and mounted first. read below to fix the partition, which you may have to do either way.

  2. I'm not familiar with that Debian particular script, but I have done many Grub2 multiboots via USB. For Grub2 to boot from an ISO, it must be completely defragmentated. Any fragments will render the ISO unbootable from grub. The USB should have only one partition, and it must be a primary. The boot flag must be set, and the partition should have a FAT32 FileSystem. If you have issue regarding the partitioning, you should redo the USB. Make sure to make a new msdos disk label, and MBR, in a tool such as parted. Create your primary partition, set the boot flag, and then use mkfs.

share|improve this answer

This link wont work anymore

$ wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz

It's now available at:

$ wget http://d-i.debian.org/daily-images/i386/daily/hd-media/boot.img.gz

Also unetbootin works fine for me, since Debian 7.x (tested with live-DVD ISO)

# apt-get install unetbootin
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.