How to move from SD installation to hard drive

Asked by Eddie on 2020-10-17

I am a decently knowledgeable user of Windows (I learned to use computers running plain old PC DOS and MS DOS when I was in elementary school so have been using since Windows 3.1). I have been really interested in trying Linux so I created an SD card with Ubuntu 20.04.1 LTS and have been using it and enjoying it. I would like to have the option of dual boot from my hard drive and am pretty comfortable with making a partition etc. However is there anyway to copy the installation I have on the SD card to the hard drive so I can keep the same settings, installed packages (programs -- I am not sure if I am using the jargon correctly yet), etc? Basically I want to be able to boot from the hard drive with everything exactly the same as it is now, just running from the hard drive instead of the SD card. Thanks for any help.

EDIT: Also apologies if this is the wrong forum. I tend to get excited and jump right in.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2020-10-18
Last reply:
2020-10-19

You can use dd to copy the data bit by bit or you can use rsync to synchronise files between file systems. Both can be potentially destructive so tread very carefully.

Personally I'd suggest a clean install of the OS in a dual boot (remember to leave some space unpartitioned for Ubuntu) then restore your user data from the existing SD card.

Eddie (eddeemn) said : #2

What would I use to restore the data?

You can mount the SD Card as pure data and copy what you want with Nautilus. Ubuntu makes restoring settings easy as each application has a hidden folder of settings. Simply overwrite old with the settings you want (eg. Firefox settings live in ~/.mozilla) there are also some in ~/.config

Can you help with this problem?

Provide an answer of your own, or ask Eddie for more information if necessary.

To post a message you must log in.