1 |
On Monday, February 09, 2015 11:05:08 PM Jonathan Callen wrote: |
2 |
> On 02/09/2015 10:23 PM, Fernando Rodriguez wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > I need a way to manipulate a ext2 HD image as a regular user |
6 |
> > (without mounting it). All I need is to copy a file to the image |
7 |
> > (possibly overwritting an existing file). For FAT it can be done |
8 |
> > with mtools, is there anything like it of ext? |
9 |
> > |
10 |
> > |
11 |
> > |
12 |
> |
13 |
> It is possible to do this with debugfs(8), although you probably want |
14 |
> to run e2fsck(8) on the filesystem after modifying it via debugfs. |
15 |
> Keeping a backup copy of the image might not be a bad idea as well. |
16 |
> |
17 |
> -- |
18 |
> Jonathan Callen |
19 |
> |
20 |
|
21 |
Thanks, that was helpful. Do you know how to open a partitioned image with it? |
22 |
The only way I could get it to work was to split the image into one for each |
23 |
partition plus one for the partition table, then use debugfs to copy the files, |
24 |
and finally use dd to merge them into one image. |
25 |
|
26 |
-- |
27 |
Fernando Rodriguez |