Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I made a persistent LiveUSB drive that I've used for a while now, and I would like to install that LiveUSB environment to the harddrive of a computer.

I've tried simply installing it using the default method (Ubiquity), but it did not install any of the programs / files / settings that are stored on my casper-rw partition. Is there an easy way to install the full persistent environment from a LiveUSB drive onto a harddisk?


share|improve this question

Boot from your thumb drive.

Partition your drive so it looks like this or modify the directions accordingly:


Then do all this as root:

~#mkswap /dev/sda1
~#swapon /dev/sda1

~#echo 'This one is probably un-necessary'
~#mkdir /mnt/

~#mount /dev/sda2 /mnt/migrate/
~#cp --preserve -R /{bin,dev,home,root,usr,etc,lib,opt,sbin,var,boot} /mnt/migrate/ 
~#mkdir /mnt/migrate/{mnt,proc,sys,tmp}
~#mount --bind /dev/ /mnt/migrate/dev/
~#mount -t proc proc /mnt/migrate/proc/

~#chroot /mnt/migrate/ /bin/bash
~#grub-install /dev/sdX

Minimal modification from some old directions for installing BT3 here.

Also, you'll need to fix your /etc/fstab

Not the Ubuntu-ish way to do this, but it works.

@OP Nice work on the USRP by the way.

share|improve this answer
Thanks for the tip! I was hoping there was some hidden configuration option in Ubiquity, but scripting up a chroot isn't too awful, all things considered =) Also, thanks for the USRP nod ;) – HokieTux Mar 16 '12 at 23:29

Your Answer


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.