Ubuntu on USB: direct boot to desktop

ubuntu_logo_81x81If you are just trying out Ubuntu for a taste of it or have decided to use it installed on USB, the long wait at “Install Ubuntu” or “Try Ubuntu” may be quite irritating. To bypass that and boot directly into the desktop, try┬áthe following (tested on Ubuntu Raring):

  • Mount the USB with Ubuntu installed in it
  • Backup the file isolinux/isolinux.cfg. We will modify it so we need to replace it back if something goes wrong.
  • Open the following files under isolinux directory: isolinux.cfg and txt.cfg.
  • Delete everything in isolinux.cfg.
  • The txt.cfg file has the default GRUB menu entries. Copy the live one to isolinux.cfg:
    default live
    label live
    menu label ^Try Ubuntu without installing
    kernel /casper/vmlinuz.efi
    append file=/cdrom/preseed/ubuntu.seed boot=casper cdrom-detect/try-usb=true persistent noprompt floppy.allowed_drive_mask=0 ignore_uuid initrd=/casper/initrd.lz quiet splash --
  • You can add any specific kernel parameters needed for your device in the append line.
  • Save isolinux.cfg and boot your system using the USB. It will boot straight to the desktop now.