This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to create a backup as .img file
#1
Hey guys,
does anyone know how to backup/store the build on my sdcard so i get my own .img?

Usually it will work or could done with TWRP or CWM but not supported or released for TinkerBoard till now.
I found some TWRP and CWM .img for RK3288 devices on http://crewrktablets.arctablet.com/ but this won't work so far...

So maybe you have an idea how to do (but i don't want a backup of the whole sd card with more than 16gb and so on) so the range of the file size should be like the official .img's..

Thank's & Greets
Reply
#2
(01-02-2018, 10:33 AM)Locke Wrote: Hey guys,
does anyone know how to backup/store the build on my sdcard so i get my own .img?

Usually it will work or could done with TWRP or CWM but not supported or released for TinkerBoard till now.
I found some TWRP and CWM .img for RK3288 devices on http://crewrktablets.arctablet.com/ but this won't work so far...

So maybe you have an idea how to do (but i don't want a backup of the whole sd card with more than 16gb and so on) so the range of the file size should be like the official .img's..

Thank's & Greets

You could just use dd "dd if=/dev/mmcblk0p of=filename.img of course you'll need an external device at least as large as the drive you're imaging.
Reply
#3
(01-02-2018, 04:44 PM)n8xyn Wrote:
(01-02-2018, 10:33 AM)Locke Wrote: Hey guys,
does anyone know how to backup/store the build on my sdcard so i get my own .img?

Usually it will work or could done with TWRP or CWM but not supported or released for TinkerBoard till now.
I found some TWRP and CWM .img for RK3288 devices on http://crewrktablets.arctablet.com/ but this won't work so far...

So maybe you have an idea how to do (but i don't want a backup of the whole sd card with more than 16gb and so on) so the range of the file size should be like the official .img's..

Thank's & Greets

You could just use dd "dd if=/dev/mmcblk0p of=filename.img of course you'll need an external device at least as large as the drive you're imaging.
But then i get a backup which is as big as the sdcard size but i want it compressed like the .img file you can download on the ASUS hompage.
Reply
#4
(01-03-2018, 07:02 AM)Locke Wrote:
(01-02-2018, 04:44 PM)n8xyn Wrote:
(01-02-2018, 10:33 AM)Locke Wrote: Hey guys,
does anyone know how to backup/store the build on my sdcard so i get my own .img?

Usually it will work or could done with TWRP or CWM but not supported or released for TinkerBoard till now.
I found some TWRP and CWM .img for RK3288 devices on http://crewrktablets.arctablet.com/ but this won't work so far...

So maybe you have an idea how to do (but i don't want a backup of the whole sd card with more than 16gb and so on) so the range of the file size should be like the official .img's..

Thank's & Greets

You could just use dd "dd if=/dev/mmcblk0p of=filename.img of course you'll need an external device at least as large as the drive you're imaging.
But then i get a backup which is as big as the sdcard size but i want it compressed like the .img file you can download on the ASUS hompage.

The Android image from ASUS is not a disk image, I'm not sure what it is, but I know it can let Tinker boot up and restore with some magic way and resize the partition table and re-write the system bake in SD card.

Maybe you can try this? with compress?
Code:
dd if=/dev/sda bs=1M | gzip > out.gzip
gzip -d -c out.gzip | dd of=/dev/sda bs=1M

But...when restoring the SD card, it needs equals or larger than original.
Reply
#5
I asked "Tinker Board" who posted this Thread https://tinkerboarding.co.uk/forum/thread-840.html about the Release TinkerOS_Android V13.12.0.43.
He maybe could know how to create an bootable .img file with a size under 300 MB.

Greets
Reply
#6
I have a script to reduce Debian .img file size here:

https://github.com/mikerr/pihome/blob/ma...zeimage.pl

That works fine with tinkerOS .imgs
but would need altering slightly to work with android
Reply
#7
(01-03-2018, 09:17 AM)Mikerr Wrote: I have a script to reduce Debian .img file size here:

https://github.com/mikerr/pihome/blob/ma...zeimage.pl

That works fine with tinkerOS .imgs
but would need altering slightly to work with android

nice work : ) but i am not sure if i am able to modify the script in that way that it would work for android .img's  Cry will try it.

thank you
Reply
#8
You could try using GParted onthe SD Card to reduce the size of the partition to only the Used space on the userdata partition, Then use DD to create the img file, before finally gzip to compress it down.
https://gparted.org
Reply
#9
This worked. Thanks!
Reply
#10
(01-03-2018, 09:17 AM)Mikerr Wrote: I have a script to reduce Debian .img file size here:

https://github.com/mikerr/pihome/blob/ma...zeimage.pl

That works fine with tinkerOS .imgs
but would need altering slightly to work with android

Hello, Mikerr

I dumped TinkerOS via win32diskimager, it create a size of 14.5G. I tried your script, it reduced to 106MB. How terrific !!

How to restore backup image to TinkerBoard, just as same as the burning up procedure? Do I some extra steps such as expand space or something like a kind of restore in size? 

Thank you for your script!

TkBd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)