Sorry for slow response.
Yes.
I am actually running my Ubuntu installation this way. You need to perform the installation with but a few changes:
Follow How do I install Ubuntu? up to the "Installation Type" prompt. Here, you must select "Something Else".
Find your external hard disk in the partition list, and click its partition. Click Edit. Change the size to leave some empty room, removing at least 20000 MB as a bare minimum(I recommend at least 100000MB).
Click OK, and allow it to apply changes. Now, click in the free space created, and click Add. Add an Ext4
partition with the default space available, and set the mount point to /
.
On the bottom, click in the dropdown for bootloader installation, and select your external hard disk.
Ensure that it isn't your internal hard disk!
Click install, and continue with the instructions.
To boot, ensure your hard disk is plugged in, and press the key for the boot menu(usually F10, esc, or F12), and select your hard disk to boot from, and proceed booting as normal.
The short answer is Yes. Once you install Ubuntu on the external USB drive, it will be like running it from an internal drive, providing you don't install any proprietary drivers. And since its has a USB connection, you can use it on any computer that can boot from USB. Also keep in mind that it might be a little slow.
Best Answer
Using dd to clone an Ubuntu installation
Yes, you can use dd to clone an installation, but it's not the fastest/easiest way to do it. It's better to do it via backup/restore with a live-tool such as Clonezilla.
If you wish to use dd, note that the target disk must be the same size or larger than the source.
Also, to make it bootable, you must copy from device-to-device (e.g.
/dev/sdX
), NOT from partition to partition (/media/...
)Use
sudo fdisk -l
orgparted
to find out which block devices your target internal hard disk (usually/dev/sda
) and external USB hard disk (usually/dev/sdb
) are.Then use
dd
with exactly the following syntax, wherex
is the letter for the USB drive and y the letter for the internal drive which you have determined in the previous step:and wait for it to complete.
To answer your other question, no, simply dd'ing to an ISO (or CD or DVD, etc.) will NOT work; it will be unbootable. For that, you need to use a tool such as remastersys. See this question for more information: