PDA

View Full Version : [ubuntu] Ubiquity from existing system to USB without reboot



dsjstc
February 3rd, 2011, 03:23 AM
Is it theoretically possible to install to a USB target from my working desktop? I get crashes when I try, but before I try to figure it out, I'd like to know if anyone even thinks it ought to be possible.

Basically I'm looking for Wubi-like functionality... but from Maverick.

dsjstc
February 23rd, 2011, 08:03 PM
Thus far, it looks like unetbootin is the only solution. It doesn't do an install though, just creates a bootable live CD image on your USB device.

Contradictions welcome. ;-)

bcbc
February 23rd, 2011, 09:17 PM
Thus far, it looks like unetbootin is the only solution. It doesn't do an install though, just creates a bootable live CD image on your USB device.

Contradictions welcome. ;-)

You can migrate your working desktop to the usb and make it bootable. Like a clone, but it's bootable (from the USB).

Of course, it's the same release and the USB has to be big enough to hold all your desktop's files. (Though if you customized the script you could skip some stuff)

If you are interested I'll point you in the direction of the bash script.

dsjstc
February 23rd, 2011, 09:24 PM
If you are interested I'll point you in the direction of the bash script.

Yes please, and thanks very much! Even if I don't end up using it, I'm sure others who stumble onto this thread will.

bcbc
February 23rd, 2011, 09:48 PM
This is the link to the Howto: migrate Wubi install to partition (http://ubuntuforums.org/showthread.php?t=1519354) thread. The latest script there (wubi-move-2.0.sh) also supports migrating a normal Ubuntu install (it detects whether the current install is Wubi or not).

By default it will install the grub2 bootloader on the drive you migrate to, in your case the USB drive.

If you want to limit the data you copy, modify this line:

rsync -a --exclude="$root"host --exclude="$root"mnt/* --exclude="$root"home/*/.gvfs --exclude="$root"media/*/* --exclude="$root"tmp/* --exclude="$root"proc/* --exclude="$root"sys/* $root $target # let errors show


e.g. add --exclude="$root"home/Pictures/* to bypass the data in your Pictures folder

dsjstc
February 23rd, 2011, 09:50 PM
Cool, thanks for the link. As soon as I recover that laptop from the dreaded Toshiba bios block 3 corruption, I'll give it a whirl.

mErchamion
July 10th, 2011, 03:37 PM
Hey Guys I am trying to do the same! did this work for you?