can I move the /usr directory to another partition?
I need to free up some space. I have a free linux partition. I don't have any data stored, the apps are taking up all the room.
Can I move the /usr directory to the free partition? The free partition is mounted on /temp. Can I just move everything in /usr to /temp. Then delete the old /usr and remane /temp /usr? The only problem that I can forsee is that the fstab may not mount the partition with /usr on it soon enough. |
You can do this. It's best to do it in single user mode so nothing is actually relying on the /usr partition. You more or less have the procedure correct: move everything over and then edit /etc/fstab so that the new partition is mounted as /usr, then reboot.
|
Why boot? :)
init 1 move umount /usr edit fstab mount /usr init 3 Cheers, Tink |
you can create a link
|
Okay, I moved it.
It was a cinche. Nothing to it. I did a cp -r, instead of a mv; just to make sure I wouldn't lose anything if there was a problem. After everything copied over, and the system worked just fine, I went ahead and deleted the original /usr directory, and freed up the space. Thanks for the help. |
All times are GMT -5. The time now is 10:43 PM. |