Re: hardisk full

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

 



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

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

  Powered by Linux