Using DD to Backup and Restore EMMC
#1
I have the Intel 660p NVME (SSDPEKNW512G8X1) installed in my pinebook pro.  I was attempting to backup the EMMC to the NVME drive as an .img and then restore that to the EMMC.  My intent was to find a way to do a backup and a restore for testing purposes. 

I used a process similar to this.  Don't recall exact details...


Backup:  dd if=/dev/mmcblk1 of=/NVME_Folder/emmc_Backup.img

Restore:  dd if=/NVME_Folder/emmc_Backup.img of=/dev/mmcblk1

After the restore I could boot to login screen but I could not log in with my user.  I CAN log in with root.

Any ideas what I missed or could be wrong with this process?
#2
Are you doing this booted from an SD?
#3
Yes. It should work this way right?
#4
Yes, it should. When you log in as root, can you still see the rock user account in /home or anywhere else? What happens when you try to login with the user account? Can you log in on a tty? Did you use sudo on your dd commands to preserve privileges?
#5
were you logged in as the user when you did this?
#6
I re-installed the default Debian image and re-tried the whole process again. For some reason it worked correctly the second time!

I wish this process was faster though...

At least I can make a backup now and restore when I break things.
#7
(02-01-2020, 01:38 PM)appdev46 Wrote: I re-installed the default Debian image and re-tried the whole process again.  For some reason it worked correctly the second time!

I wish this process was faster though...

At least I can make a backup now and restore when I break things.

Somehow I missed this thread before I started one about the same thing. Though after I dd my image I took it to a different pc to flash that image to another sdcard using balena etcher just to test if my back up worked by booting it off sdcard. Doing it that way had not been successful. I'm nervous to try what you did incase it didn't work. Would it be better to just have my sdcard already bootable with the stock image from the Wiki then just dd my image to that sdcard?


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 2,605 12-13-2023, 07:22 PM
Last Post: trillobite
  Manjaro 20.04 not loading from SD (with Manjaro on eMMC) zaius 1 630 12-07-2023, 03:11 PM
Last Post: wdt
  [Manjaro] u-boot won't boot from eMMC with (unbootable) SD card present zackw 1 2,169 08-21-2023, 09:08 PM
Last Post: vanessadonald
  Blank screen after Armbian 20.04 install to emmc? psychoacoustic 3 3,843 04-01-2023, 03:22 PM
Last Post: TRS-80
  Fix for Armbian not booting on PBP from eMMC agreenbhm 7 4,436 04-01-2023, 02:58 PM
Last Post: TRS-80
  My installation guide starting from messed up eMMC Besouro 0 978 12-19-2022, 01:01 PM
Last Post: Besouro
  newer ""emmc-installer" images (manjaro xfce) magistral 1 1,229 10-10-2022, 06:22 AM
Last Post: maxjrh
  6/22 run of PBPs - is reimaging eMMC with new OS possible still? elitegamercody 29 13,116 10-04-2022, 07:55 PM
Last Post: wdt
  Debian emmc installer db579 6 3,398 08-23-2022, 06:13 AM
Last Post: db579
  what is the magic dd incantation to copy the system from the sd card to the emmc? geokon 18 10,605 08-18-2022, 11:26 PM
Last Post: calinb

Forum Jump:


Users browsing this thread: 1 Guest(s)