Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12Next
Return to list New
View: 7348|Reply: 11

Back up to sd card

[Copy link]

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
Post time 2016-2-25 03:01:13 | Show all posts |Read mode
hello eveyone .
I have installed debian jessie into my orange pi plus 2 EMMC by typing
  1. sudo install_to_emmc
Copy the Code

And then I have updated and installed a lot of things , in emmc
Now I would like to make a back uo from emmc to sd card but
  1. sudo install_to_sdcard
Copy the Code
doesn't run.
How can I do ?
May I install the gparted or without it ?
Thanks

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-26 08:02:32 | Show all posts
Edited by xwalter at 2016-2-26 09:41

any idea ?  
Maybe I have to do something with gparter ?
For me also good to create an image such as the image we can download from this site , but already done for my job.
I have installed a lot of things and i did several configuration .
If I have a problem or I do some mistake I can get my sd card and restore all ...image , programs, files of configuration.

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-26 18:54:54 | Show all posts
nothing to do ....
Now from old sd card image the orange pi doesn't start ....it start just only from emmc
If I will have some troubles what to do , put orang epi in the trash ?
What to do if I have 1000 orange pi to program ?  Remake all the configuration and installation of programs
Why not has a back up ....?

2

Threads

144

Posts

985

Credits

Senior member

Rank: 4

Credits
985
Post time 2016-2-26 19:37:46 | Show all posts
I would help, but I do not have an Orange Pi with eMMC. In general, the steps would probably be to resize2fs your root-filesystem to shrink its size, then shrink the partition's size, reboot, mount root and boot read-only, use dd to copy eMMC to the sd-card and then look inside install_to_emmc and see what files it changes, then revert those changes on the sd-card.

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-26 20:04:56 | Show all posts
thank you ! .
I did  
  1. dd if=/dev/mmcblk0  of=backup.img bs=1M count=4150
Copy the Code

And now in /root  I have two files
backup.img and backup-img
Now I think I have to copy somewhere , maybe into sd card ...what do you think about ?

2

Threads

144

Posts

985

Credits

Senior member

Rank: 4

Credits
985
Post time 2016-2-26 20:14:11 | Show all posts
First of all: no.
Secondly: still no.

You're writing an image on the same device as you're reading from, that's a good way of producing a totally corrupted image!

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-26 20:42:21 | Show all posts
ok I have canceled the two image and also clean the trash .
Now it's all normally but without backup
May I try to create an image and send over the lan ?
Pratically my system is running on emmc , no sd card ...

2

Threads

144

Posts

985

Credits

Senior member

Rank: 4

Credits
985
Post time 2016-2-26 21:17:40 | Show all posts
Of course, if you wish. You could e.g. mount a Windows-share somewhere and make the image there. You still should remount root-filesystem as read-only temporarily while making the image, though, to avoid corruptions. (ie. mount / -o remount,ro)

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-26 21:25:06 | Show all posts
is that complex?
Now if I put sd card and then power on , the system doesn't start
It starts only without sd card , from emmc
I cannot install other OS or remake the installation ufffffff
The image backup is a big problem

17

Threads

83

Posts

382

Credits

Intermediate member

Rank: 3Rank: 3

Credits
382
 Author| Post time 2016-2-27 21:10:21 | Show all posts
I think the best solution is to install and configure the system and then create an image with dd if=.......
Later copy into an usb pen and to a pc .
At the end eliminate the image and clean the trash
12Next
Return to list New
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2022-5-17 17:56 GMT+8 , Processed in 0.032816 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list