Home > autoposting, Debian, docs, GNU/Linux, install, lenny, Live USB, tips, usb > Installing Debian Lenny from a USB memory stick (USB HDD)

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


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

Advertisements
  1. June 22, 2009 at 9:43 pm

    duh…kok susah juga ya…hiks….

    thanx for share…

    keep move…

    once again thanx..

    • June 24, 2009 at 10:51 pm

      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

  2. July 3, 2009 at 12:08 am

    Nice howto.

    Another –maybe easier– way is:

    http://unetbootin.sourceforge.net/

    • July 3, 2009 at 2:34 am

      thanks guys 😎

    • xxx
      February 24, 2012 at 10:01 am

      Kaga jalan kalo pake Unetbootin

  3. August 20, 2009 at 12:18 pm

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

    • August 20, 2009 at 8:35 pm

      yup .. coba lilo na pake lilo linux live ,. begitu juga dengan syslinux na ..
      download di sini:
      ftp://ftp.slax.org/Linux-Live/

      pake versi yg terakhir ….

      semoga membantu..

  4. April 18, 2012 at 5:48 am

    info yang sangat bermanfaat..

  5. September 22, 2012 at 9:17 am

    mantap…. pertamax gan

  1. March 3, 2009 at 7:05 pm
  2. June 23, 2013 at 12:22 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s