From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8EF69138A1A for ; Thu, 12 Feb 2015 02:48:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77D2BE0912; Thu, 12 Feb 2015 02:48:50 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.232]) by pigeon.gentoo.org (Postfix) with ESMTP id 61953E08D9 for ; Thu, 12 Feb 2015 02:48:49 +0000 (UTC) Received: from [97.101.128.114] ([97.101.128.114:37405] helo=acer.localnet) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 0E/FE-31483-0941CD45; Thu, 12 Feb 2015 02:48:48 +0000 From: Fernando Rodriguez To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Manipulating ext2 image without root access. Date: Wed, 11 Feb 2015 21:46:58 -0500 Message-ID: <4585770.652NSeZnyy@acer> User-Agent: KMail/4.14.3 (Linux/3.18.6; KDE/4.14.3; x86_64; ; ) In-Reply-To: <54D98374.6060603@gentoo.org> References: <1658212.N5Zdq5i5CH@acer> <54D98374.6060603@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4834059.6CrhpTCaVI"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-Archives-Salt: 98d6e007-af3e-4306-a2c2-224d28195beb X-Archives-Hash: bd3a85d6c53d019efb8a36f9bb99328d --nextPart4834059.6CrhpTCaVI Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="us-ascii" 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? > > > > > > >=20 > 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. >=20 > -- > Jonathan Callen >=20 Thanks, that was helpful. Do you know how to open a partitioned image w= ith it? The only way I could get it to work was to split the image into one for= each=20 partition plus one for the partition table, then use debugfs to copy th= e files,=20 and finally use dd to merge them into one image. =2D-=20 Fernando Rodriguez --nextPart4834059.6CrhpTCaVI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABAgAGBQJU3BQoAAoJEPbOFX/5UlwctMMP+gPpoVEEmO9ABuTRTWy6rBbY Egoh8yz0HtTjlMfW0kYUFNNWTPwKJKAp60FQqBkE9tRsXvc3xgki0U/Sq9vHLtxy LltHDOwzwkLliVQ5WjXwcMX4t5ubhForIrrNTCDIqz7k1h5KY9SEr/AwujIoLk/O 26R7smmVPPJRQa8GIXlGrfA3tuW6RVKDBw3TEmx7VMOUzjSy7oTMCsSnIiNls8u9 uzpXgGnKDf1D4RYuk5C0zt7Jii44nE6iig3VCn1uqukdz4W0LVMv5rFthpPBue3v o+ZJcOO/oSvDMDq7s7LzvhW7cI7/DMD/+xmU3Qm/8NealBRiJd2TuqylHVmRzAZ2 k06zEvXRWIsfbB9eBCJ0QOj0B0YW6eBy5d1NLEpE5nf1JhFYDrdlzvlWSd8JmqY7 KNTwx0qWMBhM3t8R+a7hdpFn3E6OMgPF1T89AD0KuwIAWLNyHk9MY2L/Qc76byR5 C7jRcOrhWcM+QujCUKutd1c5xeNrzt9nF94UYtGppKAQO/bZ2cF1vNLUnrhzyDRn Q3jPasaqajQBHKMTzKI5bGyMlj9Pc+2vrny5j+kT483XYv3+mfPLM+pG6KBvKsbN hS+kzBUuW2kTs/tw7t1GhtIsaSjZeSGzkuGJXZpOY1raTIpE3b2Q+Vi7Dw4dPMam Kcb/QYbexzP8Gzs5rybb =7Sn2 -----END PGP SIGNATURE----- --nextPart4834059.6CrhpTCaVI--