View Single Post
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#2698
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.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

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