|
蓝森林 http://www.lslnet.com 2006年8月18日 15:18
[help] how to use ln
i install the some package in different partition, how can i use ln to link the files?
example:
root drive is "hda" and another driver "/mnt/cf1"
in root drive: /usr...............
in /mnt/cf1 drive: /mnt/cf1/usr................
I want to link both directory, sub-dir and files together, so there can share the files, because i run out space... |
[help] how to use ln
Mabye you can use $PATH. |
[help] how to use ln
ln -s / /mnt/cf1 |
[help] how to use ln
stargate:/mnt/cf1# ln -s / /mnt/cf1
ln: `/mnt/cf1//': cannot overwrite directory
it is a embedded system, i want to run apache, mysql, and php on it. the main host only has 32mb flash ram, and i want to install these web software in compact flash driver, but it is reqired some lib* which there are not install in main "/". I want to install them in compact flash driver too. and try to make a link to "/". |
[help] how to use ln
cd /
ln -s / /mnt/cft1
/mnt/cf1 must not be an exiting directory, and you must not be in the directory when you try to create a link onto it.
I think another solution is to use "mount", you can just mount the root partion on /mnt/cft1,but thus you cannot only mount the root partition and other mounted filesystem will not be able to be found at /mnt/cft1 |
| |