Installing Debian Lenny from a USB memory stick (USB HDD)

January 23, 2009

Update 4 April 2009

needed things:

1. lilo
2. mbr package (optional)
3. syslinux download on here
4. vmlinuz, initrd.gz and boot.img.gz (optional). download on here (choose hd-media directory) . Thats i386 machine, for Others Machine try download on here
5. USB HDD (i use Kingston Data Traveler 2.0, 4G storage called USB HDD). maybe with USB key possible to install.
6. ISO can download on here
before do this, your lilo (or mbr package) and syslinux must installed (check first on your konsole with syslinux command. then, next step are:

1. creating fat filesystem:

mkdosfs /dev/sdb1

2. creating ldlinux.sys on your USB memory stick:

syslinux /dev/sdb1

3. open your favourite editor and fill:

default /vmlinuz vga language=791
append initrd language=/initrd.gz *

*erratum , should be

default /vmlinuz vga=791
append initrd=/initrd.gz

save as syslinux.cfg and copy syslinux.cfg, vmlinuz, initrd.gz to /mnt/sdb1:

cp {syslinux.cfg,vmlinuz,initrd.gz} /mnt/sdb1

4. also your lenny ISO:

cp /mnt/sda4/iso/debian-sid-lenny-cd/debian-testing-i386-CD-1.iso /mnt/sdb1/

5. then make bootable your USB memory stick, on konsole type:

lilo -S /dev/null -M /dev/sdb ext
lilo -S /dev/null -A /dev/sdb 1

for mbr package:

install-mbr /dev/sdb

your USB memory stick should be bootable now and possible to install debian lenny using USB memory stick :)

done.

Tips:

to install with graphical install you can ignore step 3 and copy all things on boot.img.gz ( gunzip && mount it with loop before or doing with zcat command).

with loop

mkdir tmp
gunzip boot.img.gz
mount boot.img tmp/ -o loop

copy all things on tmp to /mnt/sdb1

cp tmp/* /mnt/sdb1

other tips, u can using vmlinuz and kernel (initrd) from directory gtk . Replace vmlinuz and initrd on text mode based with it.

with zcat

zcat boot.img.gz >/dev/sdb1

using zcat, your usb stick will partitioned 250 M. so,you must use ISO smaller than 250 M. (netinst or etc)

and next step (step 4)

Reference:

1. Installing Debian Sarge from a USB memory stick (USB key)
2. Installing Debian from a USB Stick
3. Install GNU/Linux Debian Etch dari USB Flash Disk

Tags: , , , , , , ,

7 Responses to “Installing Debian Lenny from a USB memory stick (USB HDD)”


  1. [...] debian lenny using GRUB March 3, 2009 on previous post we can install debian lenny using USB memori stick. Now, we will try install debian lenny using [...]

  2. natanvoda Says:

    duh…kok susah juga ya…hiks….

    thanx for share…

    keep move…

    once again thanx..

    • deanet Says:

      susah gimna bro ?? kalo semua konfigurasi benar, kemungkinan vmlinuz sama initrd.gz gak match sama ISO na . pernah aq coba vmlinuz dan initrd.gz yang baru dengan ISO lenny yang lama (testing) .. gak bs jalan. coba dikoreksi dulu. n reply d sini klo ada kesulitan.

      yup sama2, join ke debian-id.org ya …

      thanks


  3. Nice howto.

    Another –maybe easier– way is:

    http://unetbootin.sourceforge.net/

  4. haris Says:

    harus pake lilo ya ? berarti harus install lilo dulu di system kita ?


Leave a Reply