Hi Holden,

I just thought that parted can do it all, anyways I'm just finishing the
backup (in case I messed up) before I proceed with fdisk and ext2resize.

Thanks for the input though.

Jan

On Mon, Aug 4, 2008 at 6:46 PM, Holden Hao <[EMAIL PROTECTED]> wrote:

>
>
> On Mon, Aug 4, 2008 at 6:33 PM, jan gestre <[EMAIL PROTECTED]> wrote:
>
>> Hi Guys,
>>
>> I'm experiencing a partitioning issue with parted in CentOS 4.6, I have an
>> external drive that I want to resize using parted, it has two partitions
>> hdd1 and hdd2 and I want to resize hdd1 from 321GB to 700GB and reduced hdd2
>> from 321GB to 15GB. Here's what I did:
>>
>> # parted /dev/hdd
>> (parted) p
>> Disk geometry for /dev/hdd: 0.000-715404.867 megabytes
>> Disk label type: msdos
>> Minor    Start       End     Type      Filesystem  Flags
>> 1          0.031 333795.871  primary   ext3
>> 2     333795.872 715402.375  primary   ext3
>>
>> I removed partition 2:
>> (parted) rm 2
>>
>> I then created a new partition (shrunk the original partition 2 to make
>> way for partition 1 increase):
>> (parted) mkpart primary ext3 700000 715000
>>
>> (parted) print
>> Disk geometry for /dev/hdd: 0.000-715404.867 megabytes
>> Disk label type: msdos
>> Minor    Start       End     Type      Filesystem  Flags
>> 1          0.031 333795.871  primary   ext3
>> 2     699996.292 715002.319  primary
>>
>> As you can see I've freed some space, then I resize partition 1 with:
>> (parted) resize 1 0.031 698000
>> Error: Filesystem has incompatible feature enabled
>>
>> I've also tried another this:
>> (parted) mkpartfs primary ext3 700000.00 715402.375
>> No Implementation: Support for creating ext3 file systems is not
>> implemented yet.
>>
>> Am I doing it all wrong? Do any of you guys encountered this before? If
>> yes what is the workaround? I've already googled to no avail.
>>
>
> Changing the partition table is just half the story.  You need to resize
> the filesystem as well.  Parted can not resize ext3 filesystems
> automatically as the error says.  You need to do it manually from outside of
> parted.
>
> You need to convert to ext2. Then resize with ext2resize. Then convert back
> to ext3.
>
> I suggest Googling for more howtos on the matter as this is a delicate
> operation.  You might want to consider LVM + Raid in the future.  It will
> make your life easier.
>
>
> Holden
>
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph
>



-- 
http://jangestre.wordpress.com
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to