Ubuntu – Create Ubuntu USB-Installer from Debian

live-usbsystem-installationUbuntu

I have Debian Squeeze and want to create USB flash drive for install Ubuntu 11.04. I've already tried many ways:

  1. boot.img.gz + mini.iso at drive's root + syslinux = installer "couldn't found installer iso"
  2. boot.img.gz + extract mini.iso to drive's root + syslinux + replace original syslinux.cfg by isolinux.cfg from mini.iso = "invalid keyword in syslinux.cfg" error
  3. extract normal CD iso to drive's root + grub = black screen with blinking cursor
  4. UnetBootIn from repos + normal CD iso = screen with many vertical color lines

At the moment I'm waiting until usb-creator.exe (launched from Windows) finish. Could you explain the right way to create Ubuntu USB-installer from Debian?

Best Answer

I did it like this:

$ wget http://archive.ubuntu.com/ubuntu/dists/karmic/main/\
installer-i386/current/images/netboot/boot.img.gz

Or to choose current Ubuntu Natty and amd64 architecture:

$ wget http://archive.ubuntu.com/ubuntu/dists/natty/main/\
installer-amd64/current/images/netboot/boot.img.gz

# zcat boot.img.gz > /dev/sdc
# eject /dev/sdc

On an old Thinkpad R40 the bios USB boot support was not that great - the bios wanted a mbr, thus I created the USB stick like this:

# cfdisk /dev/sdc
only one primary partition
file system type -> 06
bootable
write
# lilo -M /dev/sdc
# zcat boot.img.gz > /dev/sdc1
# eject /dev/sdc

Note that this method uses the text-based network installer.

Of course, you have to adjust the USB device name (/dev/sdc above), the Distribution name (Karmic is not 11.04) and architecture (x86 vs. amd64).

Related Question