Re: Resize partitions urgent help
On Tue, Aug 03, 2004 at 11:44:48AM +0000, Vijaya S wrote:
> Vijaya S wrote:
> > Hi all,
> > I have a server with the following structure.
> > # df -hT
> > Filesystem Type Size Used Avail Use% Mounted on
> > /dev/hda2 unknown 8.3G 399M 7.5G 5% /
> > tmpfs tmpfs 252M 0 252M 0% /dev/shm
> > /dev/hda3 ext3 19G 1.8G 16G 11% /usr
> > /dev/hda5 ext3 9.2G 1.9G 6.9G 22% /var
> > /dev/hda6 ext3 12G 1.4G 9.1G 13% /home
> > /dev/hda7 ext3 19G 19G 0 100% /debian
> > /dev/hda8 ext3 6.9G 33M 6.6G 1% /work
> > The /dev/hda7 has been utilized 100% so i would like to increase it to
> > 22GB and /work to 2.6GB
> > Is it possible? If so how do i do it without data loss or
> > undestructively?
1) Copy /work to either /var, /home or /usr with "cp -r"
cp -vr /work/* /home/workback
2) Delete partition /dev/hda8 (YES!)
3) Use `parted' to increase the size of /dev/hda7
4) Recreate /dev/hda8 from the available disk space
5) Mount /dev/hda8 to /work and copy back the /workback
Life is cheap, but the accessories can kill you.
Random signature generated by Signify v1.07