Re: Creating a USB key to install debian
On Sat, 2009-11-28 at 18:20 +0100, Mathieu Malaterre wrote:
> I am still struggling to create a USB key to install debian. I am following:
> - Pull in the USB key : SanDisk Corp. SDCZ2 Cruzer Mini Flash Drive (thin)
> - Make sure it is not mounted (check status of 'df')
> - Check dmesg status and retrieve dev number (/dev/sdb1 in my case)
> - Clean partition:
> $ sudo mkdosfs /dev/sdb1
> - Copy boot.img.gz:
> $ wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz
> $ zcat boot.img.gz > /dev/sdb1
> - When command return, check status of disk:
> $ sudo cfdisk /dev/sdb1
You need to copy boot.img.gz to the disk /dev/sdb, not the
partition /dev/sdb1. I also don't see why mkdosfs would be needed as I
beleive boot.img.gz is a binary dump of a whole FAT file system.
I've just done this less than an hour ago, and have successfully
reinstalled Debian Testing on my netbook.
Note, the kernel in the boot.img.gz file has to be the same version as
in the iso file, otherwise you will get an error near the beginning of
the install about not being able to load kernel modules.