[parted-devel] shrink partition and ext3 file-system on it from the beginning using parted
Martin T
m4rtntns at gmail.com
Tue Apr 24 19:28:56 UTC 2012
Hi Håkon,
yes, resize2fs does not support shrinking the file system starting
from the beginning.
I was fairly sure that parted is able to handle such operations, but
for my surprise it's heading away from operations related to file
systems.. In case one can't use Gparted, I guess the best option is
to:
1) shrink the file system(resize2fs) and then partition(fdisk) towards
the beginning
2) create a new partition(fdisk) and file system(mkfs.ext3) to the
space which was freed in the first step
3) copy(cp -a) content of first file system to the second file
system(the one which was created in step 2)
4) delete the first partition
5) associate the new partition with the correct mount point in /etc/fstab
Any other options/suggestions for shrinking the partition and
file-system in it starting from the beginning from the CLI?
regards,
martin
Kuupäeval 24. aprill 2012 1:34 kirjutas Håkon Løvdal <hlovdal at gmail.com>:
> The command to resize an ext3 file system is resize2fs (from
> http://e2fsprogs.sourceforge.net/), however I do not think it supports
> resizing with the end of the partition being the fixed reference point.
>
> BR Håkon Løvdal
More information about the parted-devel
mailing list