Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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:/
share|improve this question

2 Answers 2

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 --
share|improve this answer
    
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. –  bdowning Jan 22 '12 at 21:31
up vote 0 down vote accepted
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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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