View Single Post
Posts: 669 | Thanked: 433 times | Joined on May 2010
#2700
Originally Posted by Estel View Post
mount (empty) partition, mount image file as loopback (mount -o loop <imagefile>, if I recall correctly), then cp -a content of the latter to the former.

then, You need to modify .chroot file, pointing it to partition, instead of image file (refer to Easy Debian wiki for instructions about that).

/Estel

// edit

As for backing it up to image file, You just revert whole process - mount Your file (clear files there, if it's not empty), cp -a everything from partition into file.
After trying, i just remembered what was my problem in doing this the last time i tried to. here is what i did:

mounted the image with:
mount -t ext4 /home/user/MyDocs/debian-m5.ext4 /media/debiantemp -o loop,noatime

made sure that /media/debiantemp is empty

used 'mount | grep debi' to make sure MyDocs and mmc are not mounted (if they are then they are being copied too).

mount /dev/mmcblk1p2 /.debian

cp -a /media/debiantemp/* /.debian

the copy starts and i can see that the process goes well until something like 10 - 15 minutes of copying and then my device crashes.

i retried this for 3 times - it seems to crash everytime - probably at the same point.

checking space taken in /media/debiantemp ~1.9GB
checking space taken in /.debian (after restart after crash) ~500mb

Am i doing something wrong?

Last edited by impeham; 2012-05-02 at 07:49.
 

The Following User Says Thank You to impeham For This Useful Post: