LinuxSir.cn,穿越时空的Linuxsir!

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

red hat 9.0进不去kernel panic:No init found Try passing init=option to kernel

[复制链接]
发表于 2005-12-8 10:30:59 | 显示全部楼层 |阅读模式
在IBM上装了red hat 9.0,一切ok!怕万一哪天硬盘坏了。故做ghost.(disk ----to image)
今天硬盘坏了。在cmos中发现不了。故找了另一块用ghost80还原,一切ok(disk---from image)。
但是启动时,却出现:kernel panic:No init found Try passing init=option to kernel且光标一直闪,等了好久也进不去。
mainboard:技嘉GPX-815EPT,CPU:p3,Dispaly Card:winfast S700,NIC:3COM.
mouse/keyboard:BENQ
请高手解决!!!!
 楼主| 发表于 2005-12-9 10:09:53 | 显示全部楼层
who do help me?
回复 支持 反对

使用道具 举报

发表于 2005-12-9 12:18:23 | 显示全部楼层
应该是恢复的时候把引导记录给破坏了,你要么重装(推荐),要么用redhat9的第一张光盘引导进入reseue模式,重新安装grub试试(这个方法不一定行)。这两天论坛把搜索功能关闭了,在做调试,你如果急的话,就重装吧。
回复 支持 反对

使用道具 举报

发表于 2005-12-9 18:14:30 | 显示全部楼层
这个对新手是有点麻烦。。。得用到修复模式 、单用户、或用第三方livecd 来修复也行;


首先看分区表是否变了,如果分区表变了,系统的/etc/fstab的内容肯定也变了;root分区也变了。

要做的有以下几点;
如同7dehao兄弟所说的,恢复GRUB ;但这个工作得在修改/etc/fstab完后才能进行;如果没变倒好说;

首先:要修改 /etc/fstab ;根据 fdisk -l 输出来查看;然后要修改/etc/grub.conf 或/boot/grub/menu.lst


二、安装grub到MBR上;
#grub-install /dev/hda

然后还得如下做;

#grub
grub>root (hdx,y)
grub>setup (hdx)
grub>quit

其中hdx和y 的值 ,要通过 fdisk -l 来查看;比如我的硬盘是/dev/hda5,则(hdx,y)应该是(hd0,4)

如果还出现 kernel 。。。。错误之类的;应该是丢了/initrd 目录,要创建一个;然后看启动信息,如果提示有错误。还得改变/initrd目录的 权限;

chmod 1777 /initrd



如果这样一来对新手来说,是有点麻烦,老手看了就明白的;但愿兄弟是老手;

涉及到的内容太多。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-16 11:54:57 | 显示全部楼层
现在进入linux不是可视化GUI界面。而是command-line.
grub>

information that I input as follows:
grub>root (hd0,0)
Filesystem type is ext2fs,partition type 0x83

grub>kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/hda1
File not found



PLs help me


thanks
回复 支持 反对

使用道具 举报

发表于 2005-12-17 00:23:12 | 显示全部楼层
按北南说的做就可以了,
grub>root (hd0,0)
grub>setup (hd0)
grub>quit
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-17 17:01:43 | 显示全部楼层
Post by 北南南北
这个对新手是有点麻烦。。。得用到修复模式 、单用户、或用第三方livecd 来修复也行;


首先看分区表是否变了,如果分区表变了,系统的/etc/fstab的内容肯定也变了;root分区也变了。

要做的有以下几点;
如同7dehao兄弟所说的,恢复GRUB ;但这个工作得在修改/etc/fstab完后才能进行;如果没变倒好说;

首先:要修改 /etc/fstab ;根据 fdisk -l 输出来查看;然后要修改/etc/grub.conf 或/boot/grub/menu.lst


二、安装grub到MBR上;
#grub-install /dev/hda

然后还得如下做;

#grub
grub>root (hdx,y)
grub>setup (hdx)
grub>quit

其中hdx和y 的值 ,要通过 fdisk -l 来查看;比如我的硬盘是/dev/hda5,则(hdx,y)应该是(hd0,4)

如果还出现 kernel 。。。。错误之类的;应该是丢了/initrd 目录,要创建一个;然后看启动信息,如果提示有错误。还得改变/initrd目录的 权限;

chmod 1777 /initrd



如果这样一来对新手来说,是有点麻烦,老手看了就明白的;但愿兄弟是老手;

涉及到的内容太多。。。。






I have login "linux rescue" modle.
But there  are two mesages "error mounting file system on hda1","You don't have any linux partitions"

sh-2.05b#cd etc   ------------"fstab" not found
sh-2.05b#fdisk -l
/dev/hda1          boot
/dev/hda2
/dev/hda3
sh-2.05b#cd etc   ----------------"grub.conf" not found and no "boot" direcotry
sh-2.05b#grub-install /dev/hda  --------------command not found



So I can not continue doing according to your  instruction!!

PLs tell me the resason!!
回复 支持 反对

使用道具 举报

发表于 2005-12-17 20:04:01 | 显示全部楼层
你的硬盘上还有什么操作系统?在此之前,你不会又做过什么格式化的事情了吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-19 21:12:53 | 显示全部楼层
Post by 7dehao
你的硬盘上还有什么操作系统?在此之前,你不会又做过什么格式化的事情了吧?


My hardware is only linux 9.0 .
When I first login and press "e button", I change "kernel /vm/linuz-2.4.20-8 ro root=LABEL=/" into "kernel /vm/linuz-2.4.20-8 ro root=/dev/hda1"

Then I reboot this os, there is the above situation!!!
回复 支持 反对

使用道具 举报

发表于 2005-12-20 00:37:20 | 显示全部楼层
Post by clarke
My hardware is only linux 9.0 .
When I first login and press "e button", I change "kernel /vm/linuz-2.4.20-8 ro root=LABEL=/" into "kernel /vm/linuz-2.4.20-8 ro root=/dev/hda1"

Then I reboot this os, there is the above situation!!!

root=后面要写你的/分区的位置,我看你上面写/dev/hda1是你/boot分区的位置,你的根分区和boot分区是在一块的吗?
要注意,在grub>后写的root (hd0,0)是指grub程序的所在位置,这个root和Linux系统的/root分区是不同的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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