Re: Resizing partition
2005/7/27, David Berg <drberg1000@gmail.com>:
> 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
>
>
The best solution is ot back up your partition
dd if=/dev/hda7 | gzip myfile.gz
good if your partition is almost full
or
tar czvf output.tar.gz /hda7_mountpoint
if partition is not so full (remember to unmount anything that is in a
child directory of /hda7_mountpoint)
then create new partition and restore
guznip -c myfile.gz | dd of=/dev/hda7
or
cd /hda7_mountpoint
tar xzvpf output.tar.gz
PAolo
Reply to: