I'm still learning Linux (slowly) and I have a server running Redhat 7.2 + Plesk 2.5. The problem I have is that the /usr partition is running out of space and I want to allocate some space from /home to /usr.
What command should I use? Is it safe to do so?
Thanks in advance!
bitserve
04-20-2002, 04:20 PM
You might just start doing some symlinking. Because that is actually quite difficult.
Good luck.
clocker1996
04-20-2002, 04:23 PM
ya
find out what dir or what files are taking up all the space
then symlink the dir to another place
The /usr has 4 GB space allocated and /home has 27 GB space. Is it possible to take 10 GB space off /home and add it to /usr? Some kind of changing the partition allocation? I used to use Partition Magic to do so in Windows but in Linux, I don't have any idea of how to do so :D
Yes it is but i say with strong emphasis on caution, that its possible. In theory all you have to do is move all the data on /home to the begining of the partition as so no data is near the end sectors of the partition. Then with a utility like parted , you can resize the /home partition and allocate whatever you free up, to a new partition or to an existing partition.
However this is all practicle and sound but it is Very easy to make a mistake and cause damage beyond your ability to repair.
previouse post came out twice :\
serve-you
04-21-2002, 02:06 AM
The safest way to do it is tar up the data from the partitions you wnat to alter, and move it elsewhere. Then delete the partitions, and recreate them with the sizez you want, then untar the data back into them. You would do this in single user mode of course.
As rxfn stated you can try and use a resizing tool, but there is a high risk of something going wrong if you go that route.
-Dan