Installing Debian squeeze with a usb key

Well, all the howtos I could find about this were telling me to download boot.img.gz, zcat it to the usb key's device, then mount it and copy debian's ISO file in it.

It dosen't work [anymore] !

Here's a quick rectification howto on how to create a Debian squeeze installation USB key:

  1. download your preferred debian ISO file. I'll be dowloading the current stable netinstall cd (change the version # accordingly):

    wget http://cdimage.debian.org/cdimage/release/current/i386/iso-cd/debian-6.0.4-i386-netinst.iso
    
  2. Now, just write that directly to your usb key device (watch out here and make sure to choose the right device since you could be erasing everything from a disk in your computer:

    sudo sh -c 'cat debian-6.0.4-i386-netinst.iso > /dev/sdb'
    
  3. (Optional, depending on your hardware) I have a Realtek NIC on my Mini-ITX board... so annoyingly, I need to download an additional firmware. But, no sweat! Only need to create a 2nd partition on the key and download the firmware there:

    sudo fdisk /dev/sdb
    # n -> 2 -> [accept default starting block] -> [accept default to take up the rest of the key]
    # t -> 2 -> 6
    # w
    partprobe
    sudo mkfs.vfat /dev/sdb2
    sudo mount /dev/sdb2 /mnt
    $(cd /mnt; sudo wget 'http://ftp.us.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_0.35_all.deb')
    sync
    sudo umount /mnt
    

Done! you can now boot that key up and you'll have the installer with the right firmware available.

Comments

By far the best howto on adding non-free firmware to Debian USB sticks, all the other guides are ugly and complicated.

I haven't tested this yet, but thanks! :)

Add new comment

Markdown

  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
C
B
H
v
G
9
m
c
E
g
Enter the code without spaces.