FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Allocate more disk space





eudbase
Hi,

I am going to install a database into /usr/share/ but my partition there does not have enough diskspace... Can I install the database at other partition and then assign the address to direct to it? What command should I used for?
coreymanshack
What database are you installing.
Fire Boar
ln -sv /real/directory /dir/to/link/to

So if you want to have /usr/share/database on your /home partition, you'd do:

sudo mkdir /home/database
sudo ln -sv /home/database /usr/share/database

(sudo for if you have sudo installed, otherwise run the commands without sudo as root)

That creates a symbolic (s) link (ln) verbosely (v) at /usr/share/database, which is really just a pointer to the directory /home/database. In this way you can store directories on a different partition and make them appear elsewhere. I wouldn't use this too much though, if you can help it. Note that the new directory is owned by root. If the default location is /usr/share, you should probably keep it this way but if you must own it yourself you can always remove the sudo from the mkdir command and replace /home with ~ to make it appear in your home directory. Chances are everything will come out owned by root anyway though, so perhaps that's not such a bright idea.
ocalhoun
Fire Boar wrote:
Chances are everything will come out owned by root anyway though, so perhaps that's not such a bright idea.

You could just change the ownership later...
Related topics
Domain Disk Space
DISK Space
Low disk space
disk space
Disk space
Disk Space
Increase the disk space
Broken disk space moniter
Using Too Much Disk Space
Incorrect total disk space used (Solved)
3000 MB Disk Space
INCREASE YOUR DISK SPACE
What?it says the disk space and bandwidth is unlimited?
How much disk space is required for Linux?
Reply to topic    Frihost Forum Index -> Computers -> Operating Systems

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.