I'm making a bootable USB key for myself, and one function of it is to install Ubuntu.

I have downloaded the ubuntu-11.10-desktop-i386.iso file.

There is a pretty good method for installation of Red Hat from a USB drive, but the problem is, when it comes to Ubuntu, what should the syslinux.cfg file be?

I used syslinux -d /boot/syslinux /dev/sdb1 and put vmlinuz and initrd.img inside it.

Is the following item of syslinux.cfg correct?

LABEL InstallUbuntu
MENU LABEL Ubuntu 11.10 Install
KERNEL /boot/syslinux/vmlinuz
APPEND linux load_ramdisk=1 initrd=/boot/syslinux/initrd.img method=hd:sdb1:/

If you boot Ubuntu select "Try Ubuntu"

Open a terminal and run usb-creator-gtk, Ubuntu will copy itself to your USB with a complete syslinux install.

Ubuntu boots from the /casper/vmlinux

If you just wanted to edit an existing syslinux.cfg
These are the relevant lines Ubuntu uses after following the above procedure

kernel /casper/vmlinuz
append noprompt boot=casper integrity-check initrd=/casper/initrd.lz quiet splash --
  • Thanks for your answer, but I what I mean is that the bootable usb key is also a installer for ubuntu. I have found the solution, see syslinux.org/archives/2011-January/015991.html – NGY Jan 22 '12 at 18:03
  • This is the installer. If you follow the usb-creator the menu has all options but an "Install Ubuntu" icon is always on the desktop regardless. There are many ways to slice and dice this one. – bsd Jan 22 '12 at 21:31
LABEL InstallUbuntu
MENU LABEL Ubuntu 11.10 Install
LINUX /vmlinuz
INITRD /initrd.lz
APPEND boot=casper iso-scan/filename=/ubuntu-11.10-desktop-i386.iso

solved the problem.

See also there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.