How could I easily pack a directory to an ext4 loop partition image?
Posted
by
Alvin Wong
on Super User
See other posts from Super User
or by Alvin Wong
Published on 2012-06-28T14:57:56Z
Indexed on
2012/06/28
15:18 UTC
Read the original article
Hit count: 448
I would like to pack the content of a directory into an ext4 partition image easily, without mounting a loop device.
Background: I am building a version of Android which will mount system partitions as a loop device for ARM. Though I can create those partition images by hand using loop devices, it is very troublesome. I want to use an sh
script to automatically do the work, and without needing to loop mount the dd
-created image and use cp -rp
. The best is to directly pack the files into an image file.
Question: Is there any simple command-line tools without needing loop mount and root permission that can pack files into an ext4
partition image?
© Super User or respective owner