LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Soft Links (https://www.linuxquestions.org/questions/linux-newbie-8/soft-links-330225/)

varunbihani 06-04-2005 06:27 AM

Soft Links
 
I have just purchased a new server with single large partition (70gb out of 80gb).
That single partition is mounted on folder named "home".

rest of the space has been alocated to swap, root, var, usr etc..

Now my mysql database's data and email comes in folder "/var" .
Now /var has very less space. wat can I do so that my mails and database stores in that large partition..

May be creating a soft link ... I do not know what should I do actually..
Please help me what and how to do that

thx

Simon Bridge 06-04-2005 07:50 AM

OK - I guess you could delete /var and then create a link in / called var which points to /home/var ...

Or you could read through the mysql documentation to find out how to configure mysql so that it puts it's email et al in another directory.

varunbihani 06-04-2005 10:26 AM

well that is nice reply..
1 more query..
as I told u that there is only 1 partition mounted on "/home" now can I rename this folder "/home" to the folder "/data" and create a new folder named "/home" inside "/data"..

Simon Bridge 06-04-2005 11:42 PM

You do this the same way you'd normally do it.
You may need to unmount the volume to change the name of the mountpoint.
If you do, make sure you remount it on the newly renamed mountpoint before you add anything to it.
Remember to edit fstab to reflect the changes.

Yes it would be simpler just to list the steps - but you learn more if you have to figure it out. :)


All times are GMT -5. The time now is 06:51 AM.