Using DD to Backup and Restore EMMC - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: Using DD to Backup and Restore EMMC (/showthread.php?tid=8981) |
Using DD to Backup and Restore EMMC - appdev46 - 01-31-2020 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? RE: Using DD to Backup and Restore EMMC - tophneal - 01-31-2020 Are you doing this booted from an SD? RE: Using DD to Backup and Restore EMMC - appdev46 - 01-31-2020 Yes. It should work this way right? RE: Using DD to Backup and Restore EMMC - tophneal - 02-01-2020 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? RE: Using DD to Backup and Restore EMMC - xmixahlx - 02-01-2020 were you logged in as the user when you did this? RE: Using DD to Backup and Restore EMMC - appdev46 - 02-01-2020 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. RE: Using DD to Backup and Restore EMMC - FeMike - 02-05-2020 (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! 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? |