hardisk full

Gertjan Vinkesteijn Fed19 at xs4all.nl
Sun Apr 11 11:10:18 UTC 2004


Bilal Dar wrote:

> Dear all,
>  
> I am having this problem, my harddrive got full so i added another one 
> to my machine. Now i don't know how to move my /home /var to the new 
> drive. Can someone guide me, i just made the partitions using fdisk.
>  
> Thanks.

What I do normally is:

# mkdir <newdrive>/var
# mv /home/var /home/var.old
# ln -s <newdrive>/var/home/var
# cd /home/var
# find . | cpio -dump <newdrive>/var
// you could also use tar nowadays for it
# reboot    // because of open file descriptors of /home/var
// then
// make a spare backup of /home/var.old, one never knows
# cd /home
# rm -rf var.old
// it should work now


-- 
Vink

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040411/2f9da561/attachment-0001.htm>


More information about the fedora-list mailing list