Gentoo /boot/boot用途解析~
来源:互联网 发布:python 余弦相似 编辑:程序博客网 时间:2024/06/05 09:28
安装Gentoo时无意中发现/boot/boot是一个指向本身的链接,于是跑到Gentoo的论坛上去问了一下,结果管理员大大很快就给出了答案,简而言之是为了使得grub保持简单,因为grub引导系统时,linux的文件系统树并没有集合起来,这个时候/下面是找不到/boot的,即使是“point root (hd,x,y) to / as /boot“也是不行的,所以解决方法就是一个symlink to itself(.)
帖子地址:http://forums.gentoo.org/viewtopic-p-6172018.html#6172018
内容如下:
hewig-ovens
发表于: Sat Feb 13, 2010 1:57 am 发表主题: why /boot/boot is a symbolic link?
I am very curious about why~
_________________
NeddySeagoon
Administrator
来自: 56N 3W 发表于: Sat Feb 13, 2010 5:35 am 发表主题:
hewig-ovens,
Its to keep the grub documentation simple.
When you do not have a boot partition and /boot is a directory on the / (root) partiton, the pathname to your kernel is
and the root (hdx,y) statement points to your / (root) partition.
Now everything works as expected.
When you have a real boot, the root (hdx,y) statement points to the boot partition and a kernel at /boot/kernel... will not be found as the path /boot does not exist.
As the filesystem tree is not assembled when grub boots the system, you can't point root (hd,x,y) to / as /boot is not attached.
The solution is a symlink called boot, pointing to itseld (.) so the kernel can still be at
but now, the symlink is used to satisfy the reference to /boot
_________________
Regards,
NeddySeagoon
- Gentoo /boot/boot用途解析~
- boot
- boot
- boot
- boot
- BOOT文件解析
- u-boot解析
- boot.img结构解析
- U-boot源码解析
- u-boot配置文件解析
- mt7620 u-boot解析
- U-boot环境变量解析
- u-boot详细解析
- spring boot 框架解析
- [Gentoo]安装运行后,/boot文件夹为什么是空的?
- Gentoo Linux的boot分区问题及其它
- U-boot 移植问题解析
- boot.ini的深度解析
- mssql里面的几个系统库的用途
- web性能测试需求单
- 标准的函数头注释,更加容易跟兄弟们分享自己的成果。
- 更正一个MSDN关于“在 ASP.NET 网页中不经过回发而实现客户端回调”的实例中的一个错误
- HTML在线编辑器(HTML+js)
- Gentoo /boot/boot用途解析~
- 一个C#毕业生如何才能找到一份适当的工作呢?
- sql2000学习笔记之子查询
- 我需要下载一个mrp手机游戏,唉,可惜积分不够啊
- Beej的网络编程入门教程 第一篇 版权与目录
- 再谈创业,再谈一个人,再谈一类人
- 就这样...过年了...
- String and StringBuffer
- pureftp性能测试记录