On 09 Oct 2002 11:35:50 -0400
Jake Colman <[EMAIL PROTECTED]> wrote:

> 
> I have a parition that, according to 'df', is only 50% occupied.  I
> would like to shrink the filesystem in that partition.  How do I
> specify the 'size' parameter to resize2fs so that it can do what I
> want?  No matter what value I give it, based on what I think is
> correct, it tells me I am wrong.
> 
> Here is my 'df' output:
> 
> Filesystem           1k-blocks      Used Available Use% Mounted on
> /dev/hda2             20158372   9030876  10103496  48% /home
> 
> I want to resize the parition so that it occupies a 10gb parition
> instead of a 19gb partition.
> 
> What is the magic "size" value for resize2fs and how did you figure
> it out?
> 
>
 From 'man resize2fs':

"The resize2fs program does not manipulate the size of par­
       titions.  If you wish to enlarge a  filesystem,  you  must
       first  make sure you can expand the size of the underlying
       partition first.  This  can  be  done  using  fdisk(8)  by
       deleting  the  partition  and  recreating it with a larger
       size.  When recreating the partition, make sure you create
       it with the same starting disk cylinder as before!  Other­
       wise, the resize operation will certainly  not  work,  and
       you may lose your entire filesystem.

       If  you  wish  to  shrink the an ext2 partition, first use
       resize2fs to shrink the size of filesystem.  Then you  may
       use  fdisk(8)  to  shrink the size of the partition.  When
       shrinking the size of the partition, make sure you do  not
       make  it smaller than the new size of the ext2 filesystem! "

   You need a utility such as parted to resize partitions. It is found
on the 2nd cd in RH 7.0.
    I've never used parted, but I'm sure that others on the List have,
and will guide you through the process.

                              Regards,

                               Tom



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to