免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 889 | 回复: 4
打印 上一主题 下一主题

[help] how to use ln [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-02 12:23 |只看该作者 |倒序浏览
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...

论坛徽章:
0
2 [报告]
发表于 2005-03-02 13:01 |只看该作者

[help] how to use ln

Mabye you can use $PATH.

论坛徽章:
0
3 [报告]
发表于 2005-03-02 13:15 |只看该作者

[help] how to use ln

ln     -s   /     /mnt/cf1

论坛徽章:
0
4 [报告]
发表于 2005-03-02 13:23 |只看该作者

[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 "/".

论坛徽章:
0
5 [报告]
发表于 2005-03-03 07:22 |只看该作者

[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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP