please choosego to mobile | Continue to access the PC version
View: 7715|Reply: 11

Back up to sd card

[Copy link]

17

threads

83

posts

382

credits

Intermediate member

Rank: 3Rank: 3

credits
382
Published in 2016-2-25 03:01:13 | Show all floors |Read mode
hello eveyone .
I have installed debian jessie into my orange pi plus 2 EMMC by typing
  1. sudo install_to_emmc
Copy 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 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| Published in 2016-2-26 08:02:32 | Show all floors
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| Published in 2016-2-26 18:54:54 | Show all floors
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

991

credits

Senior member

Rank: 4

credits
991
Published in 2016-2-26 19:37:46 | Show all floors
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| Published in 2016-2-26 20:04:56 | Show all floors
thank you ! .
I did  
  1. dd if=/dev/mmcblk0  of=backup.img bs=1M count=4150
Copy 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

991

credits

Senior member

Rank: 4

credits
991
Published in 2016-2-26 20:14:11 | Show all floors
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| Published in 2016-2-26 20:42:21 | Show all floors
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

991

credits

Senior member

Rank: 4

credits
991
Published in 2016-2-26 21:17:40 | Show all floors
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| Published in 2016-2-26 21:25:06 | Show all floors
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| Published in 2016-2-27 21:10:21 | Show all floors
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
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list