[默认] 在Linux中mount目录到另一个目录
转载本站文章请注明,转载自:扶凯[http://www.php-oa.com]
有个比较破,但又不得不用的软件.它的目录都没法修改,但是空间又太少了.本来想用ls -n软链接一个目录到他原来的目录,但不能启动,报错
Too many levels of symbolic links for directory
软链接不行就硬链接吧…也不行.nnd
ln: `/data/files/’: hard link not allowed for directory
没法子,只有出杀手锏了
mount –bind /data/files /files



















你这招太狠了
学习啦
今天我也遇到Too many levels of symbolic links for directory
呵呵
不错不错
似乎少了一个“-”。以下节选自man mount :
The bind mounts.
Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is
mount –bind olddir newdir
or fstab entry is:
/olddir /newdir none bind
After this call the same contents is accessible in two places. One can also remount a single file (on a single file).
This call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a second
place using
mount –rbind olddir newdir
Note that the filesystem mount options will remain the same as those on the original mount point, and cannot be changed by passing the -o option
along with –bind/–rbind.
抱歉,上文中除了-o 之外其他单个的“-”都应该是“–”。不知为何从man里直接粘贴过来就少了一个“-”
真郁闷。连续两个“-”一发布就变成了一个“-”。这什么破系统啊!
Enjoying reading the posts here, thanks.