Ubuntu – Install persistent version of USB onto a hard drive

bootlive-usbpersistencesystem-installationusb

If this has been asked before, I am sorry ahead of time. It is extremely difficult to find what I am trying to ask because there are so many threads on installing persistent installations onto pen drives.

Right to the point:

I have a USB pen drive with a persistent installation of Ubuntu on it. I have it configured and have all my personal programs installed and all of the programs I do not use removed. It is perfect to my liking and took many hours getting it this way.

It took a long time to get it perfectly how I want it and I purchased a new laptop. Though, everytime I try to install Ubuntu from the pen drive it does not install any changes I have made, just the basic live version of it.

So, I was wondering is there a way to install the persistent version of the pen drive onto the laptop? That way all the programs added and changes I have made can transfer right into the new laptop as the main OS without having to do it all over again?

Thank you very much for your help and time!

Best Answer

You'll need to boot from a live USB (you might be able to use the same source USB).

Assuming your USB is located at /dev/sdb and that your hard drive is located at /dev/sda then you can simply run the following:

dd if=/dev/sdb of=/dev/sda

And that will copy bit for bit everything on the USB to your hard drive. You should be able to boot from it then. Once you boot into it, you can use various tools to expand your data partition to fill the entire drive.

Related Question