From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E3bw5-0001MX-Gc for qemu-devel@nongnu.org; Fri, 12 Aug 2005 11:59:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E3bw4-0001M0-BX for qemu-devel@nongnu.org; Fri, 12 Aug 2005 11:59:08 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E3bvJ-0000nw-HF for qemu-devel@nongnu.org; Fri, 12 Aug 2005 11:58:21 -0400 Received: from [128.8.10.163] (helo=po1.wam.umd.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E3bo3-0006XT-IH for qemu-devel@nongnu.org; Fri, 12 Aug 2005 11:50:51 -0400 Received: from jbrown.mylinuxbox.org (jma-box.student.umd.edu [129.2.237.180]) by po1.wam.umd.edu (8.12.10/8.12.10) with ESMTP id j7CFZiEG015316 for ; Fri, 12 Aug 2005 11:35:44 -0400 (EDT) Date: Fri, 12 Aug 2005 11:35:42 -0400 From: "Jim C. Brown" Subject: Re: [Qemu-devel] resize an image Message-ID: <20050812153542.GA1502@jbrown.mylinuxbox.org> References: <1E3TSq-1PqZhw0@fwd33.aul.t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1E3TSq-1PqZhw0@fwd33.aul.t-online.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Fri, Aug 12, 2005 at 08:56:24AM +0200, MichaelHoeller@t-online.de wrote: > Hello, > > I did create some time ago an 2GB image via dd. Now I have to realize > that I on ly ndeed 1,1 GB is there a way to shrink the sizes of my > image? > > Thanks a lot > Michael > This is unusual. Most people ask if they can enlarge them. The easy way, if you are using raw format, is just to use dd to make the smaller sized file and then fix the partition table. A defrag might be helpful. The hard way is to make a new blank disk image of the right size, and then to create the partition table and file systems in the new disk image, and then copy everything over. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.