* [gentoo-user] Manipulating ext2 image without root access.
@ 2015-02-10 3:23 Fernando Rodriguez
2015-02-10 4:05 ` [gentoo-user] " Jonathan Callen
0 siblings, 1 reply; 3+ messages in thread
From: Fernando Rodriguez @ 2015-02-10 3:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
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?
--
Fernando Rodriguez
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: Manipulating ext2 image without root access.
2015-02-10 3:23 [gentoo-user] Manipulating ext2 image without root access Fernando Rodriguez
@ 2015-02-10 4:05 ` Jonathan Callen
2015-02-12 2:46 ` Fernando Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Callen @ 2015-02-10 4:05 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJU2YN0AAoJEEIQbvYRB3mg3DsQANCqRmtuMtlMfq8TbGfUhtPu
4nzMkVgDaWoVmWjh6aYnjEfvU44wayPAZB82mJiyorJxLSX4s3br0A5aZgILsXhw
hT3V/htSIjJCPEo86hq2KOuN0HBmqacEPbJu+CEEYgMIn1K3aUA8chFUKmNmr1UN
qvI+6JYcbj5Ik9SqtthSHtD9TqgiVobT1p4jAE9qOBl9CfHZo1kzzMmpJH28+2WM
Ae8zLje+ngZCzDkbk+IyCNeTBjArHnj/PADrxkOUuGBUV6+aS0QytzHhXrouqVVZ
2vxN92LRSh2SnhAfL98flobLTCwmRolwRwW0pMwYNFpZn91ED9N8cxyM3LE5WDTA
xp5ajHjiDXelxpkXzWdl1qFpZQ9KkSVxfKeblda6pgU6BwLsGIO77aXWNjKaCoRm
KJRtN5q0TSeGWUZvtG001r0Hfo8s5wbloUVk2cZ1owugjToy2+LzEdORSo1iA6eI
W4HV/AED13di6VNxg05osjf37iBnk284DLzF39B1PlmHbBx19GSSYgFulfB4+hrt
ub/8ML30NflhWAHqRio0FPtKs3Q9yvwfKNIZtrPL5QrfNI4bl5D8BRY3V6E4LsFE
TAbbZkHjUqaPLnUEbeoPJ7whoYi2JK9VfYDcfGqNojiOOK11Ql/MKV1Ft58oduSU
DZ3tlCW+AFtYLIGcNjfH
=BR1D
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Re: Manipulating ext2 image without root access.
2015-02-10 4:05 ` [gentoo-user] " Jonathan Callen
@ 2015-02-12 2:46 ` Fernando Rodriguez
0 siblings, 0 replies; 3+ messages in thread
From: Fernando Rodriguez @ 2015-02-12 2:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-12 2:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 3:23 [gentoo-user] Manipulating ext2 image without root access Fernando Rodriguez
2015-02-10 4:05 ` [gentoo-user] " Jonathan Callen
2015-02-12 2:46 ` Fernando Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox