Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

Thanks!

share|improve this question

1 Answer 1

Boot from your thumb drive.

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

sda1=swap
sda2=/

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
~#update-grub
~#grub-install /dev/sdX
~#reboot 

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

 
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.