LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1077|回复: 7

编译完成内核,怎么会自动安装LILO?

[复制链接]
发表于 2005-3-17 23:27:03 | 显示全部楼层 |阅读模式
每次我在编译内核的时候(或者是pacman -Syu 升级内核后)make install之后它总是自动给我安装在LILO,而我习惯用GRUB。
发表于 2005-3-17 23:42:39 | 显示全部楼层
编译我没试过,水平菜。
不过pacman -Syu会自动安装LILO?没有啊。只是提示“如果你安装了lilo需要运行一下”。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-18 00:11:37 | 显示全部楼层
If you use the LILO bootloader, you should run 'lilo' after upgrading.
确实,确实!我粗心的可以!
不过,我自己编译内核的时候的确就给我自动安装了LILO,难道是因为我用SUSE的GRUB引导?
回复 支持 反对

使用道具 举报

发表于 2005-3-18 00:31:00 | 显示全部楼层
不会吧……我正在看文章学习编译,你这么说好吓人……

对了,请教一下,我想实现这个目的:
1、grub安装在hdb的mbr中。
2、grub的设置文件、stage1、stage2等安装在hdb1上,单独给个小分区。
3、linux的/boot单独一个分区,比如hdb2。

应该怎么实现?看了好多文章,都是讲grub的设置文件放在linux的/boot中的情况……
回复 支持 反对

使用道具 举报

发表于 2005-3-18 02:00:54 | 显示全部楼层
呼呼。完成了。
刚开始傻乎乎的直接做了个ext3分区,16M,把/boot/grub拷贝进去以为就好了。结果error 17。倒也在意料之中。拿livecd启动,又重新install了一遍grub才算完……之前看得文章全白瞎了,汗……啥都没记住,还是临时--help和man解决的。这次爽了,可以随便重装,完事儿了编辑一下menu.lst就好了。再也不用操心grub装在哪个地方了。
回复 支持 反对

使用道具 举报

发表于 2005-3-18 08:48:08 | 显示全部楼层
如果用grub的话,最好将lilo给卸载了。因为如果你自己编译内核的话,make install会自动调用lilo,一不小心,就苦了。
回复 支持 反对

使用道具 举报

发表于 2005-3-18 22:46:15 | 显示全部楼层
晕死了。我就是上当了。还好了,我直接root (hd1,0) setup (hd0)搞定了!但是我装的内核在那里,不是直接装的boot 吗
回复 支持 反对

使用道具 举报

发表于 2005-3-20 04:15:12 | 显示全部楼层
在arch wiki上的Kernel compilation中,有如下一段:
[php]
Compile it. Warning: Don't run make all if you use grub and still have lilo installed.
It will configure lilo in the end, and you may no longer boot your machine!
... ...
... ...
or, if you run lilo, let the install script copy the files and configure lilo. You are, of
course, free to change the name of the kernel, Kconfig, and System.map files.
The name-version-revision system is helpful for keeping track which of several
kernel compiles you have used. You could also try including a date or time, or stick
to a simpler naming system if you wish.

# cd /usr/src/linux-2.6.5/arch/i386/boot/
# sh ./install.sh
[/php]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表