public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: charlyghislain <charlyghislain@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Resizing ext3
Date: Wed, 20 Jul 2005 16:26:15 +0200	[thread overview]
Message-ID: <op.st7ud1r3k1ymlo@localhost> (raw)
In-Reply-To: <5491fade05072005193e20fe85@mail.gmail.com>

On Wed, 20 Jul 2005 14:19:47 +0200, James Hiscock <boxroot@gmail.com>  
wrote:

>> Hi James
>
> Just for clarification, I'm not the one trying to resize an ext3
> partition: Bruno is...
>
> <snip>
>> You can make your ext3 an ext2 partition by
>> removing the "has_journal" feature (tune2fs -O ^has_journal
>> /dev/partition).
> </snip>
>
> ...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



  reply	other threads:[~2005-07-20 14:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-17 20:52 [gentoo-user] Resizing ext3 and burning cds Bruno Gola
2005-07-18  1:45 ` Zac Medico
2005-07-17 22:49   ` Bruno Gola
2005-07-18  1:59     ` Nick Rout
2005-07-18  2:09     ` Zac Medico
2005-07-18  2:42       ` Bruno Gola
2005-07-18  2:45         ` Bruno Gola
2005-07-18  9:23           ` [gentoo-user] Resizing ext3 Bruno Gola
2005-07-18 18:08             ` Zac Medico
2005-07-18 18:17             ` Richard Fish
2005-07-18 21:35             ` James Hiscock
2005-07-18 23:50               ` Bruno Gola
2005-07-19 12:24                 ` James Hiscock
2005-07-19 18:56                   ` Bruno Gola
2005-07-19 21:54                     ` James Hiscock
2005-07-20  5:00                       ` Richard Fish
2005-07-20  7:44                         ` charly ghislain
2005-07-20 12:19                           ` James Hiscock
2005-07-20 14:26                             ` charlyghislain [this message]
2005-07-20 14:36                             ` charlyghislain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.st7ud1r3k1ymlo@localhost \
    --to=charlyghislain@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox