Sunday, November 29, 2009

Boot Debian from an USB device

I have been struggling for the past days to prepare a USB Key for booting up debian. I was reading:

http://d-i.alioth.debian.org/manual/en.i386/ch04s03.html#ftn.id318505

Well the important part is :

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

This is completely different from:

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

One is writing to the disk (create the partition at the time), while the other one is simply copying to the 1st partition.

BTW, there is also a good link that never showed up on my google search:

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

1 comment:

malat said...

Go to:
http://www.debian.org/releases/lenny/debian-installer/

wget http://cdimage.debian.org/debian-cd/5.0.3/amd64/iso-cd/debian-503-amd64-netinst.iso
wget http://ftp.nl.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/boot.img.gz

make sure to umount the USB Stick

zcat boot.img.gz > /dev/sdd

make sure to re-mount the USB Stick (/media would not be populated otherwise)

cp debian-503-amd64-netinst.iso /media/Debian\ Inst