From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DvFcI-0007SS-IE for garchives@archives.gentoo.org; Wed, 20 Jul 2005 14:32:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6KEVB2I032552; Wed, 20 Jul 2005 14:31:11 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6KEQfYw025524 for ; Wed, 20 Jul 2005 14:26:41 GMT Received: by zproxy.gmail.com with SMTP id 16so1446600nzp for ; Wed, 20 Jul 2005 07:26:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:to:subject:references:from:content-type:mime-version:content-transfer-encoding:message-id:in-reply-to:user-agent; b=d1evc67f5ajff2m88ZWiZ+3nunwz/LhUsvHRH9528FQf21qxXzL57r+aIkktLo2H8OpVEd4xm8yf9hS2Cz0cx9sbSvqaeHpcpndYVEAJ2QNqL9JWa8nYtMeSJ2hnzSrB2MJXfFwVoFN/yM85QMxbjtpLPZN3ALcu65dMQ9oLHuA= Received: by 10.36.120.5 with SMTP id s5mr114718nzc; Wed, 20 Jul 2005 07:26:20 -0700 (PDT) Received: from localhost ([81.242.168.239]) by mx.gmail.com with ESMTP id c1sm260809nzd.2005.07.20.07.26.17; Wed, 20 Jul 2005 07:26:20 -0700 (PDT) Date: Wed, 20 Jul 2005 16:26:15 +0200 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Resizing ext3 References: <42DAC506.6090409@terra.com.br> <42DB17BF.8080309@terra.com.br> <42DB7512.7000109@terra.com.br> <5491fade05071814356486b6b0@mail.gmail.com> <42DC404D.6000301@terra.com.br> <5491fade05071905242568fb28@mail.gmail.com> <42DD4CF3.9070501@terra.com.br> <5491fade05071914543e9b2f6@mail.gmail.com> <42DDDA59.7080301@asmallpond.org> <5491fade05072005193e20fe85@mail.gmail.com> From: charlyghislain Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <5491fade05072005193e20fe85@mail.gmail.com> User-Agent: Opera M2/8.0 (Linux, build 1095) X-Archives-Salt: 2a025200-c520-4d1e-a7b8-e9af68c456f2 X-Archives-Hash: 7bdc09f7d136b3401b009b63600f4ba5 On Wed, 20 Jul 2005 14:19:47 +0200, James Hiscock wrote: >> Hi James > > Just for clarification, I'm not the one trying to resize an ext3 > partition: Bruno is... > > >> You can make your ext3 an ext2 partition by >> removing the "has_journal" feature (tune2fs -O ^has_journal >> /dev/partition). > > > ...and your advice was similar to the advice I gave him (but you > actually managed to write the command out correctly, whereas I didn't > ;), but he's still running into problems (parted is complaining that > there's an "unsupported filesystem feature enabled", which is why he > posted the output of tune2fs). > > I'm at a loss to help, but I've also been suggesting using parted > (which I've used successfully in the past)... maybe resize2fs will > work better as both you and Richard have suggested, but I've got no > experience with it... > I used to get trouble with parted (and qtparted), so i managed to find another solution. Its the resize2fs & fdisk one. DONT FORGET TO MAKE BACKUP. I will describe here the method i used (saw in the resize2fs manual) for everyone who want to know: 1 - remove the has_journal feature from your ext3 partition. It is now an ext2 partition and resize2fs can operate. # tune2fs -O ^has_journal /dev/partition 2 - a) If you want to shrink the partition, start by shrinking the filesystem as described in the resize2fs manual page. # resize2fs /dev/partition xxxs (s for 512bytes sectors) b) If you want to enlarge the partition, start by enlarging the partition itself with fdisk. You will have to delete the partition then recreate it STARTING FROM THE SAME CYLINDER. 3 - For this step, check several times what youre going to do before pressing enter! a) After having shrinked the filesystem, shrink the partition with fdisk. Start by deleting the partition then recreate it STARTING FROM THE SAME CYLINDER. Dont make the partition smaller than the filesystem. You can make fdisk print size in sectors (press u). You should keep a marge to be sure. b) After having enlarged the partition, enlarge the filesystem with resize2fs and DONT MAKE IT GREATER THAN THE PARTITION. You should make it 1 or 2 mo smaller to be sure. # resize2fs /dev/partition xxxs (s for sectors) 4 - You can now re-enable the 'has_journal' feature to convert your ext2 to ext3 back. # tune2fs -j /dev/partition. With this method, the first block of the partition cant be moved :( Hope this help. this is somewhat a manual method, but it works. Be sure to have a pen and paper next to you :) (and excuse my poor english) charly -- gentoo-user@gentoo.org mailing list