[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Resizing partition



David Berg wrote:

> I have some dead space on my disk before logical partition hda7 that I
> want to add to hda7.  Parted is not letting me resize or move the
> partition to include the dead space.  Is there another utility that
> might or should I just plan on restoring from backup?
> 
> Does anyone know why parted could grow a partition from the end but
> not the beginning?
> 
> Thanks
> 
> Dave Berg

It's a filesystem issue.  From the parted documentation:
----------------------------------------------------
Parted has support for these operations:
# Filesystem detect create resize copy check
# ext2 * * *1 *2 *3
# ext3 * *1 *2 *3
# fat16 * * *4 *4 *
# fat32 * * * * *
# hfs *
# jfs *
# linux-swap * * * * *
# ntfs *
# reiserfs * *5 *1,5 *5 *3,5
# ufs *
# xfs * NOTES: (1) The start of the partition must stay fixed for ext2, ext3
and reiserfs. (2) The partition you copy to must be bigger (or exactly the
same size) as the partition you copy from. (3) Limited checking is done
when the file system is opened. This is the only checking at the moment.
All commands (including resize) will gracefully fail, leaving the file
system intact, if there are any errors in the file system (and the vast
majority of errors in general). (4) The size of the new partition, after
resizing or copying, is restricted by the cluster size for fat (mainly
affects FAT16). This is worse than you think, because you don't get to
choose your cluster size (it's a bug in Windows, but you want
compatibility, right?). So, in practise, you can always shrink your
partition (because Parted can shrink the cluster size), but you may not be
able to grow the partition to the size you want. If you don't have any
problems with using FAT32, you will always be able to grow the partition to
the size you want. Summary: you can always shrink your partition. If you
can't use FAT32 for some reason, you may not be able to grow your
partition. (5) Reiserfs support is enabled if you install libreiserfs,
available at http://reiserfs.osdn.org.ua. (It is likely to be availabe soon
from www.namesys.com... tell us if/when this happens!)
-----------------------------------------------------------------------




Reply to: