PDA

View Full Version : [ubuntu] Moving an Installation onto USB:



tgarrido
May 29th, 2011, 07:53 PM
After quite some time and hassle, I was finally able to install Ubuntu 10 on my Dell 700m and get the graphics card to work.

I was wondering, though, would it be possible to copy the entire installation, now that it is working, to a USB disk, change some parameters, and get the system to be able to boot from USB as well, with the hard drive out of the system?

Herman
June 12th, 2011, 03:12 AM
Yes, you should be able to do that without any trouble at all, and you shouldn't even need to change any parameters.

sbraz
June 12th, 2011, 03:35 AM
yes. i did this after booting from a live distro with dd if=/dev/sdX of=/dev/sdX bs=4M (warning, this command might destroy data if used the wrong way).

keep in mind that there are better ways to do it (dd reads used AND empty sectors and doesn't care about drive sizes), and that by using this procedure your copied partitions will have the same UUIDs as the originals so maybe it's better to edit /etc/fstab to use /dev/sdX instead of UUID=XX..XX if you want to use this method for testing.

i've used this method to seamlessly upgrade my hdd and... it worked. :D