Ubuntu – Putting A Full Installation of Lubuntu on a USB Drive

live-usblubuntusystem-installationusb

I am trying to install a full Lubuntu installation on a USB drive. I've tried a number of different methods, but they all seem to fail in some way or another.

First of all, I don't have a native Ubuntu computer; I have a netbook with 1gb of memory that I can boot in to Lubuntu from a live CD, as well as a Windows PC. I don't want a live installation of some sort; I want it to act like a normal installation, just it should be completely independent of it's host. I was thinking of trying to run a VM using the drive as it's hard drive and installing it like that, but the Lubuntu-able netbook doesn't have enough memory. My PC could do it, but I usually use Hyper-V for virtualization, and from what I remember I could never get it to register a USB drive in the VM.

Basically, is there a way to install Lubuntu to a specific drive and make sure it doesn't touch any other devices? If not, what's the best way to accomplish this with the equipment that I have available?

Best Answer

The easiest way to install Lubuntu on any USB pendrive is to boot your Lubuntu Live CD/DVD, enter the live session, and use the Installer icon present on the desktop. Make sure first that your Internet connection is up and running.

After you get to the window with the 3 options for installing Ubuntu/Lubuntu, choose the 3rd one which says Something else. This way you'll be able to access the partition table for both your hard disk and the USB pendrive. Choose the medium where you want to install Lubuntu, which of course has to be the USB device, and after that delete your entire USB partition if you haven't done it already.

Next you should create 2 new partitions on the USB pendrive: the first one will be the root partition formatted as linux ext4 with foreslash / as startup or mounting point, and the second one has to be a small Linux swap partition (around 1-2 GB in size). After you are finished with partitioning the USB select the root partition and press NEXT to start installing Lubuntu on the USB pendrive. DO not leave any free space on your pendrive, be it raw free space or fat32 formatted free space!!!

Most important thing is to choose to install the bootloader on your USB and not on your HDD device. While still facing the partition table for your USB, select from the drop-down menu at the bottom of window to place bootloader on the USB pendrive. Make sure you select the entire USB and not your new root partition for installing the bootloader / grub. This way your new bootable Lubuntu usb pendrive will be 'completely independent of it's host'.

I strongly recommend you download and burn on a CD/DVD Lubuntu 12.04.4 LTS iso image or Lubuntu 13.10 because lots of users have experienced nasty errors when trying to install this new Ubuntu 14.04 and all its derivatives, Lubuntu 14.04 included.

On a last note, to be able to boot from USB you have to either change your BIOS settings to do so or you can just press your default BIOS key for the boot menu (which is usually F12) and select to boot from the USB pendrive. I prefer to press F12 to get to the boot menu because I find it more convenient for me.

Related Question