On Monday, February 09, 2015 11:05:08 PM Jonathan Callen wrote:
> On 02/09/2015 10:23 PM, Fernando Rodriguez wrote:
> > Hi,
> >
> > I need a way to manipulate a ext2 HD image as a regular user
> > (without mounting it). All I need is to copy a file to the image
> > (possibly overwritting an existing file). For FAT it can be done
> > with mtools, is there anything like it of ext?
> >
> >
> >
> 
> It is possible to do this with debugfs(8), although you probably want
> to run e2fsck(8) on the filesystem after modifying it via debugfs.
> Keeping a backup copy of the image might not be a bad idea as well.
> 
> --
> Jonathan Callen
> 

Thanks, that was helpful. Do you know how to open a partitioned image with it?
The only way I could get it to work was to split the image into one for each 
partition plus one for the partition table, then use debugfs to copy the files, 
and finally use dd to merge them into one image.

-- 
Fernando Rodriguez

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to