Debian USB Install

From INIwiki
Jump to: navigation, search

Digg this!

We are assuming that your USB device is indicated by /dev/sdb, and that you are interested in Debian stable (other distributions are untested, but should work).

First unmount your memory stick.

sudo umount /dev/sdb

Now download the boot.img.gz, which is necessary to make your USB device bootable:

cd ~

For i386

wget ftp://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz

For x64

wget ftp://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/boot.img.gz

Extract this image and write it to your USB device:

sudo zcat ~/boot.img.gz > /dev/sdb 

Now mount the volume to /mnt:

sudo mount /dev/sdb /mnt

In this case a Debian Stable net-install image is used. You may also use a business card iso. Nevertheless, you should be sure to use the same version of the ISO-image as the image.tar.gz that was used before.

Download the ISO to the USB device:

cd /mnt/

For i386

wget http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-503-i386-netinst.iso

For x64

wget http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-503-amd64-netinst.iso

Now you can unmount the volume:

cd /
sudo umount /dev/sdb

You can remove the USB device, and plug it in your new system. Of course you should tell your BIOS to boot from USB.


Source: 
http://www.debian-administration.org/articles/446

Digg this!

Personal tools