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 71A24138A1A for ; Tue, 10 Feb 2015 04:05:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18657E0BB6; Tue, 10 Feb 2015 04:05:12 +0000 (UTC) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3ED46E0BA5 for ; Tue, 10 Feb 2015 04:05:10 +0000 (UTC) Received: by mail-vc0-f175.google.com with SMTP id hq12so3860250vcb.6 for ; Mon, 09 Feb 2015 20:05:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=8A1rYaw1iwgndcX4AJTUB3BPDfRs3oYAffFCoFZtrF0=; b=qmDlgDkiYjnic0miuBUt1Xn8bRWGx86kwTXHURuoiwAOfqC3pnJ3GDflTO8JcwFjHm VU+diZVPGS1ZdsuZzV3L1MBBZOhuPfm2Uctuv8DUiJH9K+BJnC9IQ965iMCCBsrmTVRq L0ZAQ8WMIPJ3KaBeXE+iwo5cFMHbcrrzMYAR3rxvz8JIfb2jhao/4ZkVmcQ8jgWEkI0l 2ZjALn4p9h1olcGnv7d8MVTzdtjrc5fPUnCD+JgilK9NwaFjK+pA6IEBnKuHsMOl396y eUn0oxO61UrjJkedOUzqXCxKYQRWZHG/IWUljpx8F6Ut7yk3yZeCdDlBzGFCa0k/QaQT 9eRg== X-Received: by 10.221.2.197 with SMTP id nv5mr13359347vcb.53.1423541109616; Mon, 09 Feb 2015 20:05:09 -0800 (PST) Received: from [192.168.1.3] (pool-72-86-48-96.clppva.fios.verizon.net. [72.86.48.96]) by mx.google.com with ESMTPSA id vp20sm159184vdb.22.2015.02.09.20.05.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 20:05:09 -0800 (PST) From: Jonathan Callen X-Google-Original-From: Jonathan Callen Message-ID: <54D98374.6060603@gentoo.org> Date: Mon, 09 Feb 2015 23:05:08 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 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 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: Manipulating ext2 image without root access. References: <1658212.N5Zdq5i5CH@acer> In-Reply-To: <1658212.N5Zdq5i5CH@acer> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1976182f-8d7e-43b7-9418-a7dc93d49fdd X-Archives-Hash: a34a046aa1478f1834860891e12035e0 -----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-----