Re: how to resize partation

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

 



On Sat, 2006-07-15 at 08:30 -0400, Steven W. Orr wrote:
> On Saturday, Jul 15th 2006 at 13:43 +0530, quoth Ankush Grover:
> 
> =>On 7/15/06, yogesh@xxxxxxxxxxxxxxx <yogesh@xxxxxxxxxxxxxxx> wrote:
> =>> i have a one partation
> =>> 
> =>> /dev/hda1  10 GB  5 GB(used)  5 GB(free)
> =>> /dev/hda2  20 GB  7 GB(used)  13 GB(free)
> =>> 
> =>> i want to resize partion such that
> =>> /dev/hda1  15 GB  5 GB(used)  10 GB(free)
> =>> /dev/hda2  15 GB  7 Gb(used)  8 GB(free)
> =>> 
> =>hey,
> =>
> =>Somebody asked this before also here is the thread.
> =>
> =>http://www.redhat.com/archives/fedora-list/2006-May/msg02189.html
> 
> 
> I need to explain something. The resizefs utility doesn't work. It may 
> work in some sort of highly rarified environment, but the fact is that it 
> won't even try on ext2 filesystems when the fs has flags in use that are 
> used by everyone. IOW, if the filesystem were to be created without any of 
> the flags then it might work. But the presence of the flags prevents the 
> use of the utility and files in the filesystem prevent the removal of the 
> flags.

Umm, I think you are confusing the "resize2fs" utility and the various
derivatives of "parted"....  It is "parted" that cannot handle some of
the newer flags applied to ext3 filesystems, like "sparse_super"....
"resize2fs" is one of the utilities that we use to resize filesystems
with LVM (or "ext2online")....  It tends to work more often than not,
but does require a full e2fsck prior to "shrinking"....

The real problem for the OP, is to:

1) Shrink the second partition/filesystem
2) Move it to the end of the old range (leaving a gap between
partitions)
3) Grow the first partition/filesystem (utilizing the gap)

All of this is more involved than should be normally attempted,
particularly since the OP is confusing terms like "partition" and
"disk".  So I would agree with your later recommendation to backup,
recreate, restore....

--Rob



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux