QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: liang99314106

如何真正启动新的内核

[复制链接]
发表于 2003-5-12 22:25:38 | 显示全部楼层
yes, but if u have lvm, raid, scsi, then things will be different.
回复

使用道具 举报

发表于 2003-5-12 22:59:10 | 显示全部楼层
i 've solved the problem,thx
回复

使用道具 举报

发表于 2003-5-12 23:04:44 | 显示全部楼层
welcome, good luck.
回复

使用道具 举报

 楼主| 发表于 2003-5-13 22:40:08 | 显示全部楼层
班主们你们好
我编译了一个内核后要启动它
按照网上的文章中的方法改过了grub.conf文件
还建立了几个链接文件
但reboot之后那些OK都还没来就说:
warning:unable to open an initial console
kernel panic:No init found. Try passing init=option to Kernel
请问那个init是什么?
还有究竟是什么地方出了错?
回复

使用道具 举报

发表于 2003-5-13 22:46:04 | 显示全部楼层
u grub.conf has problem. u root partition is wrong. post u grub.conf file here.
回复

使用道具 举报

 楼主| 发表于 2003-5-14 10:07:03 | 显示全部楼层
我的问题和khf是一样的
grub.conf的内容是这样的:
boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Had Linux(2.4.18-14)
       root(hd0,6)
       kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
       initrd /initrd-2.4.18-14.img
title dos
       rootnocerify(hd0,0)
       chainloader +1
就是这样啦
我们就是搞不好那个initrd /initrd-2.4.18-14.img
我们下载了一个新的内核并编好了
但是那个.img文件搞不好不能生成相应的.img文件
而我的同学的机上装的是redhat7.2他的grub.conf里就没有
要那个initrd /initrd-2.4.18-14.img文件的
一下就搞好了
回复

使用道具 举报

发表于 2003-5-14 10:15:15 | 显示全部楼层
why u can not generate the initrd file? what is the error? u can use mkinitrd to generate it.

a way not to use initrd: if u have / on scsi disk, then compile scsi disk support and controler chip support in to kernel (choose Y, not M). and choose ext3, reiserfs, xfs (if u use them for u fs) into u kernel.

add simlar entry into u grub.conf file
title xxx
root(hd0,6)
kernel /vmlinuz-2.4.xx ro root=/dev/hdxx

change the xx text with correct content.
that hdxx should be hda6 i guess
回复

使用道具 举报

 楼主| 发表于 2003-5-14 15:48:23 | 显示全部楼层
谢谢斑竹
我的机子上没有scsi的盘
另外
想问一下斑竹
是不是版本较新一点的Linux系统就需要在grub.conf中搞initrd.img文件
旧的版本就不用呢?
最后问一下
我是在旧的版本2.4.18-14中下载解压和编译2.4.20的内核的
那样的话应该怎么用mkinitrd命令来生成名字为initrd-2.4.20.img的文件呢?
我的/lib/modules下的版本号是2.4.18-14能不能改成2.4.20啊?
回复

使用道具 举报

发表于 2003-5-14 21:41:14 | 显示全部楼层
no, initrd is not decided by u linux version. u can use it for 2.2.x while do not use it for 2.5.x. depends on u needs.

when u make modules modules_install. u will generate a dir like /lib/modules/24.20. u can not simply change the name of dir.
run mkinitrd, read help.
回复

使用道具 举报

 楼主| 发表于 2003-5-15 22:32:58 | 显示全部楼层
我的内核在大家的帮助下总算搞好了
现在也启动拉
真的是太谢谢大家拉
  
不过问题又出现拉,启动新的内核之后我
可以用ifconfig命令,并且看到了那里应该是支持ipv6拉
因为我看到了系统给的ipv6  的地址,我也能ping的通我们宿舍的
其他同学的机,网关的也可以通
但是就是不能上网(我们是ip和网卡地址绑定的但是我已经搞好拉)
回复

使用道具 举报

发表于 2003-5-15 22:36:33 | 显示全部楼层
as i know, common network only support ipv4. and at least internet is ipv4 based. so i do not think u can use ipv6 protocol to access normal network. u can setup a network with all ipv6 enable devices and communicate with them.
回复

使用道具 举报

 楼主| 发表于 2003-5-16 17:45:22 | 显示全部楼层
但是我用ficonfig看到的是两个ip地址啊
有ipv4的也有ipv6的
我想系统用的应该还是ipv4的地址的吧
要不怎么ping的通啊
回复

使用道具 举报

发表于 2003-5-16 21:35:54 | 显示全部楼层
yes, even u see an ipv6 address. it does not mean anything except an address. u still use u ipv4 to communicate.
once u setup a pure ipv6 network and an ipv6/ipv4 gateway, u can communicate with outside via gateway.
回复

使用道具 举报

 楼主| 发表于 2003-5-16 22:17:29 | 显示全部楼层
o
是这样啊
那我们怎么把ip和我的网卡的物理地址绑定啊
因为我们学校是要求这样才能上网的
而且我还要虚拟我的网卡的物理地址   
回复

使用道具 举报

发表于 2003-5-16 22:34:34 | 显示全部楼层
what ip? ipv4 ip? u need config it and choose static address mode instead of dhcp.

what u mean virtualize u mac? u want to use a fake mac? to cheat?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-18 13:06 , Processed in 0.169871 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

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